mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-02 02:38:30 +02:00
9 lines
236 B
Python
9 lines
236 B
Python
import json
|
|
from pathlib import Path
|
|
|
|
|
|
language_data = json.loads(Path("./assets/language/en.json").read_text(encoding="utf8"))
|
|
|
|
|
|
def translate(*text):
|
|
return "".join([language_data["translation"].get(word, word) for word in text])
|