i18next
0.9.0, released 10 months ago by an unverified publisher
A localization formatter and parser based on the i18next standard for Flutter.
WASM-ready
What it does
Brings the i18next standard into Dart and Flutter applications. It handles variables, namespaces, contexts, plurals, fallbacks, and formatting within translation files.
AI-written summary of version 0.9.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are migrating an existing web or backend project using i18next to Flutter
- You prefer the i18next syntax for interpolation, nesting, plurals, and contexts
Skip it when
- You want a fully-fledged zero-boilerplate code-generation solution like slang
- You require features not yet supported such as resource caching or retrieving files directly from a server
Strengths
- Supports plural and context fallbacks, namespaces, and nested keys
- Integrates smoothly with Flutter's LocalizationsDelegate and AssetBundle data sources
Weaknesses
- Pre-1.0.0 package with potential for frequent breaking changes
- Missing some advanced features like sprintf support and resource caching
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Declare the dependency in pubspec.yaml and register I18NextLocalizationDelegate in your MaterialApp or CupertinoApp.
Widget build(BuildContext context) {
return Text(I18Next.of(context).t('key'));
}Alternatives
Packages that do the same job and could replace i18next.