Skip to content

Release v0.9.0

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Mar 01:40

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.