internationalization 2.0.0 internationalization: ^2.0.0 copied to clipboard
A project to easily implement internationalization on flutter projects
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:internationalization/internationalization.dart';
import 'usage.dart';
void main() async {
await Internationalization.loadConfigurations();
runApp(InternationalizationExampleApp());
}
class InternationalizationExampleApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
supportedLocales: suportedLocales,
localizationsDelegates: [
Internationalization.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
home: Usage(),
);
}
}