MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / set_i18n

Function set_i18n

plugin/app/cache/i18n.py:19–30  ·  view source on GitHub ↗

Set the i18n for the given plugin id and language. :param provider_id: provider id. :param lang: language. :param i18n: i18n dictionary. :return: None

(provider_id: str, lang: str, i18n: Dict[str, str])

Source from the content-addressed store, hash-verified

17
18
19def set_i18n(provider_id: str, lang: str, i18n: Dict[str, str]):
20 """
21 Set the i18n for the given plugin id and language.
22 :param provider_id: provider id.
23 :param lang: language.
24 :param i18n: i18n dictionary.
25 :return: None
26 """
27
28 for key, value in i18n.items():
29 i18n_key = f"{provider_id}:{lang}:{key}"
30 __i18n[i18n_key] = value
31
32
33def set_i18n_checksum():

Callers 1

load_bundle_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected