mirror of
https://github.com/nexus-stc/hyperboria
synced 2025-02-03 14:27:32 +01:00
a683e0ce18
- [nexus] Development GitOrigin-RevId: 5d5feedff7b70be4c788abeb22f89c6758431d33
20 lines
394 B
Python
20 lines
394 B
Python
from izihawa_configurator import Configurator
|
|
|
|
|
|
def get_translations():
|
|
return Configurator([
|
|
'nexus/translations/translations.yaml',
|
|
])
|
|
|
|
|
|
def t(label, language='en'):
|
|
if language in _translations and label in _translations[language]:
|
|
return _translations[language][label]
|
|
return _translations['en'][label]
|
|
|
|
|
|
_translations = get_translations()
|
|
|
|
|
|
__all__ = ['t']
|