Skip to main content

ds_i18n 0.2.0 copy "ds_i18n: ^0.2.0" to clipboard
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_i18n

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  ds_i18n: ^0.2.0

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:ds_i18n/ds_i18n.dart';
0
likes
160
points
51
downloads

Documentation

API reference

Publisher

verified publisherdragon-software.net

Weekly Downloads

Lightweight, JSON-based localization for Flutter. Drop translation files into assets/i18n/, call I18n.t('key'), switch languages at runtime. No codegen.

Repository (GitHub)
View/report issues

Topics

#i18n #l10n #localization #translation

License

BSD-3-Clause (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on ds_i18n