Translate json files
Jump to Section
GT4T File Translator can translate json files. You can specify keys that need to be translated.
Find files that need to be translated. Select them and drag and drop them to GT4T File Translator
Suppose you have a .json
file with the following content:
{
"node1": {
"name": "Hello",
"version": "1.0.0",
"description": "Hello world!"
},
"node2": {
"name": "Nice day",
"version": "1.0.0",
"description": "Great to know you!"
}
}
You want to get all the values of key name
and description
translated.
- Left-click the GT4T icon at the bottom right corner of the screen to bring up GT4T quick menu and click File Translator on the menu to start the GT4T File Translator.
- First confirm if the language pair is correct, if there is an error, click on the location as shown to change it. English to Spanish translation is taken as an example here.
- Select the file to be translated, hold down the left mouse button on the selected file, drag the mouse to the GT4T drag-and-drop area, and then release the left mouse button.
- “Specify key names” dialog appears. For our example, type “name” and “description” in the box.
Check “Translate all keys with text values” if you want to translate all text values. You can optionally provide keys that do not need to be translated.
- After the translation is finished, there will be an additional GT4T_translated_Spanish (EspaƱol) folder. The translated files are in that folder.
** Tips ** GT4T can translate folders. Drag and drop a folder into GT4T File Translator to translate all files of the selected type under that folder and subfolders.