All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Breaking: Simplify
Bundleconstructor to accept a single file path instead of a list. Changeftl_filenamesparameter toftl_filename. - Add support for Fluent message attributes via dot notation (e.g.,
bundle.get_translation("message.attribute")).
- Annotate
ftlfile source code when reporting parse errors to allow ergonomic debugging. - Support passing
pathlib.Pathinftl_filenames(in addition tostr) when creating aBundle. This allows using non-unicode paths on unix systems.
- Correct stringified name of ParserError exception.
- Support Python 3.13.
- Render dates in YYYY-MM-DD format.
- Add use_isolating flag.
- Raise TypeError if variable key is not a string.
- Fall back to displaying variable name if there is a type issue with a variable.
- Limited Fluent variable types to strings and integers.
- Fixed bug where integers could not be used as selectors.
- Changed error handling during
Bundleinstantiation. Now message errors will be ignored by default, overrideable by a newstrictparameter. In this mode, aParserErrorwill be raised instead of aValueErroras before. - Renamed the
namespaceargument tolanguage. - Fluent message variables are now no longer passed to
get_translationusing**kwargs; instead avariablesparameter is used.
- Added initial implementation.