Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 1.81 KB

File metadata and controls

51 lines (31 loc) · 1.81 KB

Changelog and Versioning

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.

[Unreleased]

  • Breaking: Simplify Bundle constructor to accept a single file path instead of a list. Change ftl_filenames parameter to ftl_filename.
  • Add support for Fluent message attributes via dot notation (e.g., bundle.get_translation("message.attribute")).

[0.1.0a8] - 2025-10-01

  • Annotate ftl file source code when reporting parse errors to allow ergonomic debugging.
  • Support passing pathlib.Path in ftl_filenames (in addition to str) when creating a Bundle. This allows using non-unicode paths on unix systems.

[0.1.0a7] - 2025-01-29

  • Correct stringified name of ParserError exception.
  • Support Python 3.13.

[0.1.0a6] - 2024-11-05

  • Render dates in YYYY-MM-DD format.

[0.1.0a5] - 2024-09-26

  • Add use_isolating flag.

[0.1.0a4] - 2024-09-25

  • Raise TypeError if variable key is not a string.
  • Fall back to displaying variable name if there is a type issue with a variable.

[0.1.0a3] - 2024-09-25

  • Limited Fluent variable types to strings and integers.
  • Fixed bug where integers could not be used as selectors.

[0.1.0a2] - 2024-09-23

  • Changed error handling during Bundle instantiation. Now message errors will be ignored by default, overrideable by a new strict parameter. In this mode, a ParserError will be raised instead of a ValueError as before.
  • Renamed the namespace argument to language.
  • Fluent message variables are now no longer passed to get_translation using **kwargs; instead a variables parameter is used.

[0.1.0a1] - 2024-09-13

  • Added initial implementation.