l10n_flutter 1.0.7 l10n_flutter: ^1.0.7 copied to clipboard
This single framework will help you localize your Flutter application without the headache.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add l10n_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
l10n_flutter: ^1.0.7
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:l10n_flutter/builder/builder.dart';
import 'package:l10n_flutter/examples/l10n_cupertino_demo_app.dart';
import 'package:l10n_flutter/examples/l10n_demo1_app.dart';
import 'package:l10n_flutter/examples/l10n_demo2_app.dart';
import 'package:l10n_flutter/examples/l10n_demo3_app.dart';
import 'package:l10n_flutter/examples/l10n_material_delegates.dart';
import 'package:l10n_flutter/examples/l10n_material_demo_app.dart';
import 'package:l10n_flutter/examples/l10n_widget_helper.dart';
import 'package:l10n_flutter/examples/models/demo3.dart';
import 'package:l10n_flutter/examples/models/l10n.dart';
import 'package:l10n_flutter/l10n_core.dart';
import 'package:l10n_flutter/l10n_cupertino_app.dart';
import 'package:l10n_flutter/l10n_material_app.dart';