0.9.0 (March 28, 2024)#
Added#
Added new utility
utils.translation_helper.TranslationHelper.Added several new
TypedDicttypes totranslator_typing.Added
Translator.translateoverloads. Catch-all overload forreverse=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()andgo_offline()now expose arguments (such asmaximal_untranslated_fraction) that were previously limited totranslate().Improve when a
maximal_untranslated_fractionis in use.The
Formatclass is now callable for convenience (keyword only).
Fixed#
Return copy in
TranslationMap.name_to_source- consistent with similar properties.Handle
dictnames properly inTranslator.fetch()andgo_offline().Untranslated IDs should now never be
None- ensure a validFormatis always available.Raise
ValueErrorwhen using positional placeholders inFormat. This used to be a silent error.