app_auto_localize 0.0.104 app_auto_localize: ^0.0.104 copied to clipboard
Localize Flutter Apps with one line of code.
app_auto_localize #
Localize Flutter Apps with one line of code.
Usage #
first create a new folder .../flutter_example/assets/app_auto_localize
class _MyHomePageState extends State<MyHomePage> {
@override
void initState() {
// call this method once
initAutoLocalize(
projectAbsolutePath: '.../flutter_example', // your project absolute path
locals: ['ar', 'en', 'fr'], // locals
baseLocal: 'en'); // default local
super.initState();
}
...
A new folder will be added at .../flutter_example/assets/app_auto_localize includs auto generated localization files
Important #
comment this code after creating the translation files