Home Assistant Unofficial Reference 2024.12.1
translation.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.helpers.translation._TranslationCache
 
class  homeassistant.helpers.translation._TranslationsCacheData
 

Namespaces

 homeassistant.helpers.translation
 

Functions

dict[str, dict[str, Any]] homeassistant.helpers.translation._async_get_component_strings (HomeAssistant hass, Iterable[str] languages, set[str] components, dict[str, Integration] integrations)
 
_TranslationCache homeassistant.helpers.translation._async_get_translations_cache (HomeAssistant hass)
 
dict[str, dict[str, Any]] homeassistant.helpers.translation._load_translations_files_by_language (dict[str, dict[str, pathlib.Path]] translation_files)
 
dict[str, str] homeassistant.helpers.translation.async_get_cached_translations (HomeAssistant hass, str language, str category, str|None integration=None)
 
str homeassistant.helpers.translation.async_get_exception_message (str translation_domain, str translation_key, dict[str, str]|None translation_placeholders=None)
 
dict[str, str] homeassistant.helpers.translation.async_get_translations (HomeAssistant hass, str language, str category, Iterable[str]|None integrations=None, bool|None config_flow=None)
 
None homeassistant.helpers.translation.async_load_integrations (HomeAssistant hass, set[str] integrations)
 
None homeassistant.helpers.translation.async_setup (HomeAssistant hass)
 
str homeassistant.helpers.translation.async_translate_state (HomeAssistant hass, str state, str domain, str|None platform, str|None translation_key, str|None device_class)
 
bool homeassistant.helpers.translation.async_translations_loaded (HomeAssistant hass, set[str] components)
 
dict[str, dict[str, Any]|str] homeassistant.helpers.translation.build_resources (dict[str, dict[str, dict[str, Any]|str]] translation_strings, set[str] components, str category)
 
dict[str, str] homeassistant.helpers.translation.recursive_flatten (str prefix, dict[str, dict[str, Any]|str] data)
 

Variables

 homeassistant.helpers.translation._LOGGER = logging.getLogger(__name__)
 
string homeassistant.helpers.translation.LOCALE_EN = "en"
 
string homeassistant.helpers.translation.TRANSLATION_FLATTEN_CACHE = "translation_flatten_cache"