A Godot plugin for importing JSON files for translations.
This is the Godot 4.x version of the plugin. If you want to use it on 3.x, head over to the 3.x branch.
- Install the plugin into your project and activate it.
- Add JSON translations files into your project in .json format.
- Make sure the JSON files are imported as "JSON Translation".
- Add your JSON files to translations using Project Settings > Localization > Translations > Add (Change "All Recognized" to "All files (*)" to see the JSON file)
The json data in file must be an object with locale and messages keys.
- "locale" field signify which locale the texts are in.
- "message" field must be an object that contains keys and corresponding text as string value.
{
"locale": "en",
"messages": {
"HELLOWORLD": "Hello world!",
"ANOTHERTEXT": "This is another text."
}
}