ds_i18n 0.2.0
ds_i18n: ^0.2.0 copied to clipboard
Lightweight, JSON-based localization for Flutter. Drop translation files into assets/i18n/, call I18n.t('key'), switch languages at runtime. No codegen.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add ds_i18nThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
ds_i18n: ^0.2.0Alternatively, 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:ds_i18n/ds_i18n.dart';