id_translation.Translator#
For an introduction to translation, see the Translation primer page.
The recommended way of initializing Translator instances is the from_config() method, unless your
setup is very simple. For configuration file details, please refer to the Configuration page.
Constructor#
|
End-user interface for all translation tasks. |
|
Create a |
Related attributes
Return |
Daily drivers#
You’ll be using these a lot.
|
Map names to translation sources. |
|
Translate IDs to human-readable strings. |
|
Fetch translations. |
Related methods
|
Returns raw match scores for name-to-source mapping. |
|
Return the names that were translated by the most recent |
Related attributes
Working offline#
|
Retrieve and store translations in memory. |
|
Restore a serialized |
|
Load or create a persistent |
Related attributes
Return a |
Configuration#
Most Translator attributes are read-only. To change the attributes below, use the copy method with attribute
overrides.
Methods
|
Make a copy of this |
Attributes
Main translation |
|
Alternative translation |
|
Improves matching when |
|
Get a dict |