l10n_languages
Provides language names translations (for 157 different locales).
2.0.3
24K downloads/mo
#2012 most downloaded on pub.dev
tsinis/sealed_world
What this package is like to depend on
Last release 1 months ago
07 Jul 2026
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 9 of 9 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
9 releases · first in 2025
5 releases in the last 12 months
see the full history below
Release timeline
9 releases · Jan 2025 to Jul 2026Releases
latest 9-
2.0.307 Jul 2026Release notes
Open source →- refactor(ci): update deploy permissions and steps for gh pages
- Changed permissions for contents to read.
- Added environment name for GitHub Pages deployment.
- Updated deployment steps to use actions/upload-pages-artifact and actions/deploy-pages.
- chore(deps): update flutter sdk version to ^3.44.5
- Updated the flutter sdk version in pubspec.yaml for the example app.
- Updated sdk version in tools/pubspec.yaml to ^3.12.2.
Release notes
Open source →TEST
- Integrated
dartdoc_testvalidation for code samples in documentation comments.
DOCUMENTATION
- Fixed the
LanguagesLocaleMapper.localizeexample code snippet to instantiate the mapper.
-
2.0.209 Feb 2026Release notes
Open source →DOCUMENTATION
Docs only, no code changes:
- Added FOSSA status badge to the README.
-
2.0.109 Feb 2026Release notes
Open source →DOCUMENTATION
Docs only, no code changes:
- Improved CHANGELOG for clarity.
- Added LLM agent instructions to the README.
-
2.0.031 Jan 2026Release notes
Open source →🎉 Third anniversary and new major release!
NEW FEATURES
- L10N values are now provided in sentence case!
- Tree-shakable via dart define flags.
- Optimized memory usage with lazy locale initialization - translations are now loaded on-demand instead of all at once.
- Reduced initial memory footprint by ~90% - only requested locales are instantiated.
- Added
availableLocalesgetter to query all supported locales without materializing them. - Single-use design: Mapper instances automatically free memory after
localize()is called and cannot be reused. This ensures optimal memory efficiency - create a new instance if you need to localize again.
BREAKING CHANGES
- Single-use design: Mapper instances automatically free memory after
localize()is called and cannot be reused. This ensures optimal memory efficiency - create a new instance if you need to localize again.
Previously, localized strings were provided in mixed lowercase (e.g., "inglés", in Spanish for
ENGcode) and sentence case. They are now unified and provided in sentence case only (e.g., "Inglés", in Spanish forENGcode) to preserve capitalization context for proper nouns and ensure immediate compatibility with independent UI labels.Justification: Capitalization is context-sensitive and cannot be reliably reconstructed from lowercase source strings. By providing values in sentence case, we ensure high-fidelity data for headers and labels. This was also part of discussion in the past.
Migration:
- If you use these values as standalone labels, no action is required (you can also remove your
formattercallback, if not needed). - If you require mid-sentence (inline) text, use the
formattercallback to strictly adapt the casing, rather than relying on direct string manipulation.
final localized = mapper.localize( isoCodes, mainLocale: locale, formatter: (_, l10n) => l10n.toLowerCase(), // <-- e.g., inline usage );CHORE
- The Dart SDK was bumped to v3.10.4.
-
1.3.004 Oct 2025Release notes
Open source →DOCUMENTATION
- Improved documentation in README.
CHORE
- The Dart SDK was bumped to v3.9.2.
-
1.2.026 Jul 2025 -
1.1.020 May 2025Release notes
Open source →NEW FEATURES
- Add formatter callback for custom translation logic.
CHORE
- The Dart SDK was bumped to v3.8.0.
- Code has been formatted with the new Dart formatter.
DOCUMENTATION
- Improved documentation in README.
-
1.0.024 Jan 2025Release notes
Open source →🎉 First stable release!
DOCUMENTATION
- Improved documentation and example.
- Fixed typos in the README.
-
0.1.018 Jan 2025