[messages_builder] Align translations with their template The generated code looks up messages by their index in the template and passes arguments in the order of the template's placeholders, but each data file was serialized on its own. So a translation which was missing a message, or had an extra one, returned the wrong messages, and a translation which reordered placeholders got the wrong arguments. Translations are now aligned with their template: missing messages fall back to the template, extra messages are dropped, and argument indices are remapped to the template's placeholder order. All data files of a context now share a hash of the template's message names and placeholders, so updating a translation does not change the generated code.
This repository is home to Dart internationalization (i18n) and localization (l10n) related packages.
| Package | Description | Issues | Version |
|---|---|---|---|
| intl | Contains code to deal with internationalized/localized messages, date and number formatting and parsing, bi-directional text, and other internationalization issues. | ||
| intl4x | A lightweight modular library for internationalization (i18n) functionality. | ||
| intl_translation | Contains code to deal with internationalized/localized messages, date and number formatting and parsing, bi-directional text, and other internationalization issues. | ||
| messages | A lightweight modular library for localization (l10n) functionality. | ||
| messages_builder | Build the messages for consumption by package:messages | ||
| messages_serializer | Serialization of messages for package:messages. | ||
| messages_shrinker | Removing unneeded messages from message data files for package:messages. |
Let us know about bugs and feature requests, file a pull request, or participate in the discussions!
For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.
For additional information about contributing, see our contributing page.