localization_lite 1.0.11
localization_lite: ^1.0.11 copied to clipboard
A lightweight and easy-to-use package for multilingual support using JSON files. Simplifies adding localization in Flutter apps with minimal setup and integration
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add localization_lite
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
localization_lite: ^1.0.11
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:localization_lite/simple_localization.dart';
import 'package:localization_lite/translate.dart';