0.9.0 (March 28, 2024)#

Added#

  • Added new utility utils.translation_helper.TranslationHelper.

  • Added several new TypedDict types to translator_typing.

  • Added Translator.translate overloads. Catch-all overload for reverse=True.

  • Added many new in-line examples to class, function, and module docstrings. Updated and corrected or clarified several docstrings which were poorly worded or outdated.

Changed#

  • Methods Translator.fetch() and go_offline() now expose arguments (such as maximal_untranslated_fraction) that were previously limited to translate().

  • Improve when a maximal_untranslated_fraction is in use.

  • The Format class is now callable for convenience (keyword only).

Fixed#

  • Return copy in TranslationMap.name_to_source - consistent with similar properties.

  • Handle dict names properly in Translator.fetch() and go_offline().

  • Untranslated IDs should now never be None - ensure a valid Format is always available.

  • Raise ValueError when using positional placeholders in Format. This used to be a silent error.