This app will help you manage you applications locals easily. group you locals, translate them and then export them ready to use in your project.
Export your local to GetX or Easy-localization
- launch the application
- add you first app
- The name of you app
- The path where to save the locals in form to reuse them later in localic (this should be in you repo files, so any update on you locals will be saved with the project). anyone have this file can use it with localic too.
- The path where to export the generated files.
- Open the app.
- Go.
- Navigate to the page.
- Open you app
- Add new app and the locals data will be save in the local storage so you can return to them again and you can download then at any time.
- Import an app from the downloaded file you have.
- Go
The data schema in the application is like json schema. Items and Nodes. Every item has key and value. the value here is the translations in all defined languages. Every Node can have many items and many node.
you can translate the locales using google translation. you need to set the google apiKey to use it. Only Local items can be translated. and this will translate only the empty locals for the selected item.
After adding all the data and translate them. you can export it and use it with GetX or EasyLocalization In the AppBar click on Export and Export dialog will appear.
You can pick the directory where the files should be exported to.
The exported files will be downloaded.
To export the data to file that matches translations schema
- Chose GetX
- Pick the folder to export the class to.
- A file with name
locals.g.dart
will be generated in the folder and ready to use.
To export the data to json files with this structure
- Chose easyLocalization
- Pick the folder to export the files to.
- Json files will be generated every file has the name of language and contains the translations for this language.