generate-translation-vscode icon indicating copy to clipboard operation
generate-translation-vscode copied to clipboard

Add support for Flatten JSON format + Restrict translations to default language

Open phcollignon opened this issue 2 years ago • 2 comments

Hello,

Update 1 :

Some i18n files use a flatten format : i.e.

{
"user.name": "Doe",
"user.firstname": "John"
}

instead of :

{ "user": 
   { "name": "Doe",
     "firstname": "John"
  }
}

I added support for those files with an option generate-translation.flatten in the settings to select the preferred format.

Update 2 :

Developers are usually not the same team as translators, so I add a option to generate only the i18n configuration for the default language. This is optional through a setting : generate-translation.restrictToDefaultLanguage. If left empty translation is done in all languages.

Feel free to merge,

Regards, Philippe

phcollignon avatar Jun 20 '22 09:06 phcollignon