stringlocale 0.3.0
stringlocale: ^0.3.0 copied to clipboard
Declare strings with typed params, compile to offline locale bundles with an LLM, and resolve by locale at runtime. Axis-model i18n for Dart and Flutter.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate stringlocaleUse it
The package has the following executables:
$ stringlocale
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add stringlocaleThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
stringlocale: ^0.3.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:stringlocale/stringlocale.dart';