localize_and_translate 4.1.2-dev copy "localize_and_translate: ^4.1.2-dev" to clipboard
localize_and_translate: ^4.1.2-dev copied to clipboard

outdated

Flutter localization in easy steps, simple ways to localize and translate your app

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:localize_and_translate/localize_and_translate.dart';
import 'package:localize_and_translate_example/views/entry_point.dart';

Future<void> main() async {
  // if your flutter > 1.7.8 :  ensure flutter activated
  WidgetsFlutterBinding.ensureInitialized();

  await translator.init(
    localeType: LocalizationDefaultType.device,
    languagesList: <String>['ar', 'en'],
    assetsDirectory: 'assets/lang/',
  );

  runApp(
    const LocalizedApp(
      child: MyApp(),
    ),
  );
}
131
likes
0
pub points
94%
popularity

Publisher

verified publishermsayed.net

Flutter localization in easy steps, simple ways to localize and translate your app

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_localizations, shared_preferences

More

Packages that depend on localize_and_translate