Sketch i18n enables you to generate translation files for a page and translate it. It acts in a non-destructive way so you can easily undo your changes later.
This fork provides a way to generate text entries only for those need to be translated. You can do this by setting a layer name prefixed with "str_" for each text layer you want to translate. The text layer names will also be the keys in the translation files. This makes it easier for further processing the translation files to use in iOS and Android projects.
- Download the repository from this link.
- Grab the
Sketch i18n
folder from the ZIP. - In Sketch 3, select
Plugins > Reveal Plugins Folder...
from the menu bar, and put theSketch i18n
folder in this folder.
- Select a page in your Sketch file.
- Run
1. Generate translation file
from the plugins menu. - The contents of your translation file is now in your clipboard.
- Paste the contents of your clipboard in your favorite editor.
- Save the file as a JSON file for example:
en-US.json
.
- Select a page in your Sketch file you wish to translate.
- Run
2. Translate page
. - Select the JSON translation file for that page.
- The current page has been copied and translated.
To propose changes, fork the repository and submit a pull request!
All credit goes to Kristof Houben (kristof) and Florian Schulz (getflourish)