mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 03:18:09 +00:00
b8ea21d24a
Co-authored-by matejcik <ja@matejcik.cz>
20 lines
465 B
Mako
20 lines
465 B
Mako
# generated from trezortranslate_keys.pyi.mako
|
|
# (by running `make templates` in `core`)
|
|
# do not edit manually!
|
|
<%
|
|
import json
|
|
from pathlib import Path
|
|
|
|
THIS = Path(local.filename).resolve()
|
|
CORE_DIR = THIS.parent.parent
|
|
|
|
en_file = CORE_DIR / "embed" / "rust" / "src" / "translations" / "en.json"
|
|
en_data = json.loads(en_file.read_text())["translations"]
|
|
|
|
%>\
|
|
class TR:
|
|
% for name, text in sorted(en_data.items()):
|
|
${name}: str = ${json.dumps(text)}
|
|
% endfor
|
|
|
|
|