This is a Flutter app that is localized to use English and Afrikaans using Easy Localizations & Provider packages. The app basically allows you to switch Languages inside the app without changing the device locale.
We used the following services and packages for this project:
- Google Translate - Used to translate English to Afrikaans
- Locale Code - Used to find locale code, however you can basically google locale codes
- Locale Codes Alternative - Alternative locale codes that you can use
- easy_localization - this package is used to translate languages easily
- provider - this package is used for easy state management
Inorder to update content you have to update files inside assets/translations/
- Create a key and provide its value e.g "title": "Localized App" in en-US.json
- Use same key and provide a translated value e.g "title": "Gelokaliseerde App" in af-ZA.json
Happy Coding!