mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 03:08:29 +02:00
9 lines
No EOL
272 B
Python
9 lines
No EOL
272 B
Python
import json
|
|
|
|
def translate(self, text):
|
|
with open("./translation.json") as f:
|
|
translation = json.load(f)
|
|
if self.language in translation:
|
|
_lang_trad = translation[self.language]
|
|
if text in _lang_trad: return _lang_trad[text]
|
|
return text |