- Set Dart 3 as minimum constraint
- Using csv parsing logic from arb_generator
- First official 2.0.0 release as excel is now also officially released.
- Ignore non_constant_identifier_names lint in generated code.
- Fix typo in success message.
- Adds ability to generate comments with localization details.
- When no value (or empty) is given for default language, then the key is used as localization value.
- Fixes an issue where certain analyzer warnings would be triggered in the generated code when using lint package.
- Updates example.
- Adds null safety support
- Breaking change: input file path can no longer be given as command line argument
- Logs an error when a locale is invalid
- Logs an warning when a locale is not supported by Flutter
- Improved test coverage
- Adds support to generate localization resources from Excel files (XLSX)
- Removes dependency on Flutter and increases Dart SDK constraint to >= 2.7
- Fixes a bug where a variable named
text
would not be correctly processed - Fixes a bug where variables named as dart keywords would crash code generation
- Updates the example to be compatible with newer versions of flutter
- The getter
locaStrings
(map of key-locastring for the current locale) can now be generated depending on the input settingexpose_loca_strings
- The getter
localeMaps
(map of loca maps per locale) can now be generated depending on the input settingexpose_locale_maps
- The method
getString(String key)
can now be generated depending on the input settingexpose_get_string
- Variable names are now checked if they are valid (i.e. myVar is valid, both my-Var and MyVar aren't)
- To avoid generated code triggering warnings, certain rules are now ignored. This is a temporary solution until v2.0.0
- Fix issue on Locale written in camelCase
- Make sure that snake_case countries like
de_CH
are written in camelCase in generated file
- Add setting to handle "no break" spaces by replacing them by normal spaces
- Add lot of configurations in pubspec.yaml :
- Ability to define generated filename and classname
- Ability to use other delimiter than ","
- Ability to have other columns between keys and values (one for description for example)
- No need for BuildContext
- Ability to use double or simple quotes on generated file
- Additionally :
- All generated parameters are now @required
- Added currentLocale to generated file
- Better Readme.md
- Handle possibility to have multiple languages for one country
- Fix error on CSV not well formed
- Fix error when using Dart reserved keywords
- Fix template by handling a String instead of file
- Fix documentation
- Fix template's file path
- Initial Release