This PNX plugin is a port of the TranslationManager made for PMMP.
Create a folder named “locale-data” in plugin data of the plugin you will use with TM's 'TL API'. Then add the languages you want to support with their locale codes to this folder (e.g.: en_US.json, tr_TR.json). You can fill it as follows (i18n):
{
"language": {
"en_US": "English (US)",
"tr_TR": "Turkish"
},
"tests": {
"welcome": "Welcome {{player}}!",
"coins": "You have {{amount}} coins.",
"wins": "Total Wins: {{wins}}"
},
"errors": {
"no_permission": "You do not have permission to perform this action."
}
}Additionally, you can add your project using TranslationManager.getTlInstance().addProject("projectName", PluginBase registrant);