A Flutter application which uses intl_translation for translating text in app on locale change. I have created widget "Trans", which translates the text given to it on locale change and also gives support for plural and gender.
To run this app :
- Download or clone this app then open your ide (with flutter configured).
- Run packages get in pubspec.yaml file
- Run main.dart
On locale change:
- Uses text as key to find translation
- If translation for given key is not found then tranlate it using google translator and notify it to the developer by logging it to the console.
- Currently I have given translation for only three languages i.e. English, Hindi and French.
- However one can give translation for any other language by going to "converted_text.dart" class.
Screenshots of app :-
- Localisation :-
- Plural :-