0.14.0 (June 08, 2025)#
This release is a mostly focused on adding documentation and removing things to make the project less cumbersome to
maintain. Concrete implementations for things like caching are being dropped and replaced by generic interfaces (the
CacheAccess pattern). This is part of the process of getting ready to release 1.0.0 sometime this year.
Added#
Methods
MagicDict.real_getandreal_contains.New typehint
translator_typing.AbstractFetcherParams.Added concurrency and thread-safety table to the documentation.
Changed#
Make some
Transformermethod parameterspositional-only.The
TranslatorFactorycan now discard optional fetchers that raise when imported or initialized. SetID_TRANSLATION_SUPPRESS_OPTIONAL_FETCHER_INIT_ERRORS=trueto enable (not recommended).The
AbstractFetcher.map_placeholdersmethod no longer uses caching.Renamed init args:
Mapper.unmapped_values_action->on_unmappedMapper.unknown_user_override_action->on_unknown_user_overrideMultiFetcher.duplicate_source_discovered_action->on_source_conflictMultiFetcher.optional_fetcher_discarded_log_level->fetcher_discarded_log_level
Replaced
ActionLevelwithtyping.Literalin several places.
Fixed#
The docs no longer incorrectly state that
max_failsstops working whendefault_fmt_placeholdersare in use.Fix
max_failscheck when transformers are in use.The
BitmaskTransformerno longer uses missing IDs in decomposed bitmask translations.Fix
SqlFetcher.__init__: Suppress exceptions fromcreate_engine()if optional.
Removed#
The
TransformerStopclass and associated functionality (it wasn’t very useful).The
AbstractFetcher.get_placeholdersmethod.The
AbstractFetcher.concurrent_operation_actionoption.The
AbstractFetcher.fetch_all_unmapped_values_actionoption; manage automatically whenselective_fetch_all=True.The
MultiFetcher.duplicate_translation_actionoption; now managed automatically (fetch=warn, fetch_all=ignore).The
PandasFetcher(online)init arg.Dropped deprecated
Translator.translateargumentsinplaceandmaximal_untranslated_fraction.