FangEngine.store.language_store
This module manages language and translations
Function get_system_lang() -> str
Returns the LCID (Locale Identifier)
A full list can be found here:
https://www.science.co.il/language/Locale-codes.php
Class LanguageStore
This singleton stores the game translations
Translations should be stored in assets/lang in JSON format
__init__(self)
__getitem__(self, item) -> str
__iter__(self)
__len__(self)
__new__(cls, args, kwargs)
__repr__(self)
reload_lang_file(self)
Reloads the language translations
set_lang(self, code: str = None)
Sets the language translations to use
Parameter code: the LCID to load. Default is the OS' LCID