Translations From JSON (Godot 4.x)'s icon

Translations From JSON (Godot 4.x) 2.0 Misc 4.0 Community

Submitted by user AliYil; MIT; 2023-03-10

A Godot plugin for importing JSON files for translations.

Usage:
1. Install the plugin into your project and activate it.
2. Add JSON translations files into your project in .json format.
3. Make sure the JSON files are imported as "JSON Translation".
4. Add your JSON files to translations using Project Settings > Localization > Translations > Add (Change "All Recognized" to "All files (*)" to see the JSON file)

JSON Format
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.

Example JSON
{
"locale": "en",
"messages": {
"HELLOWORLD": "Hello world!",
"ANOTHERTEXT": "This is another text."
}
}


View files Download Submit an issue Recent Edits