Created
January 9, 2019 21:41
-
-
Save jesusrp98/dc664288d943b955def2ce299abc3b47 to your computer and use it in GitHub Desktop.
Example of flutter_i18n pacakge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// assets/flutter_i18n/en.json | |
// { | |
// "foo": { | |
// "bar": "Sample", | |
// // ... | |
// }, | |
// // ... | |
// } | |
Text( | |
FlutterI18n.translate( | |
context, | |
'foo.bar', | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment