id_translation.Translator.from_config#
- classmethod Translator.from_config(path, extra_fetchers=())[source]#
Create a
Translatorfrom TOML inputs.See Configuration for help.
- Parameters:
path – Path to the main TOML configuration file.
extra_fetchers – Paths to fetching configuration TOML files. If multiple fetchers are defined, they are ranked by input order. If a fetcher defined in the main configuration, it will be prioritized (rank=0).
- Returns:
A new
Translatorinstance with aconfig_metadataattribute.