Upload your .json files to SimpleLocalize, add languages, auto-translate and download one .json file per language in seconds.
{
"appName": {
"message": "My Extension",
"description": "The name of the extension"
},
"greeting": {
"message": "Hello, $USER$!",
"description": "Greets the user",
"placeholders": {
"user": {
"content": "$1",
"example": "John"
}
}
}
}The _locales/xx/messages.json format used by Chrome, Firefox and Edge extensions. Every key holds a message and an optional description for translators.
It is used by Chrome extensions, Firefox add-ons, Edge extensions. SimpleLocalize reads and writes it natively, so you keep your existing project structure. Format value for the CLI and API: browser-extension-json. Read the format documentation.
Add a simplelocalize.yml to the repository and run simplelocalize upload and simplelocalize download in your pipeline or GitHub Action:
# simplelocalize.yml
apiKey: YOUR_PROJECT_API_KEY
uploadFormat: browser-extension-json
uploadPath: ./locales/{lang}.json
downloadFormat: browser-extension-json
downloadPath: ./locales/{lang}.jsonThe same project can export translations in more than 30 formats, and the free online converter works without an account: