chore(core): remove unused translation tools
What changed, and why it matters
This commit simply deletes a set of old Python helper scripts and JSON data files used for managing device UI translations. The files were described by the developer as unmaintained and unused. Removing them does not change any firmware code that runs on the Trezor device, nor does it alter how the device handles secrets, signatures, or user confirmations. There is no security vulnerability being fixed or introduced here.
No security action required. This is a routine repository cleanup of unused tooling. Reviewers may verify that no active build or CI step references the deleted files.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit removes seven files under core/tools/translations/: five Python scripts (check_missing_rust.py, check_missing_upy.py, flatten_json.py, translate_missing.py, validate_strings.py) and two JSON data files (font_widths.json, rules.json). These were offline development/maintenance utilities for extracting translatable strings, validating translation lengths, and flattening translation JSON. They are not part of the device firmware build, runtime, or any shipped product code. The diff shows only deletions; no functional code is modified, added, or replaced.
Changed components
core/tools/translations/check_missing_rust.pycore/tools/translations/check_missing_upy.pycore/tools/translations/flatten_json.pycore/tools/translations/font_widths.jsoncore/tools/translations/rules.jsoncore/tools/translations/translate_missing.pycore/tools/translations/validate_strings.pyInspect captured patch +0 / −2184
diff --git a/core/tools/translations/check_missing_rust.py b/core/tools/translations/check_missing_rust.py
deleted file mode 100644
index d8798e97..00000000
--- a/core/tools/translations/check_missing_rust.py
+++ /dev/null
@@ -1,80 +0,0 @@
-from __future__ import annotations
-
-import json
-import re
-from pathlib import Path
-
-HERE = Path(__file__).parent
-CORE = HERE.parent.parent
-
-RUST_DIR = CORE / "embed" / "rust" / "src" / "ui"
-MAPPING_FILE = HERE / "mapping_rust.json"
-
-IGNORE_FILES = ["cs.rs", "en.rs", "fr.rs", "general.rs", "fido_icons.rs"]
-IGNORE_DIRS = ["bootloader"]
-
-
-def extract_strings(file_path: Path) -> list[str]:
- with open(file_path, "r") as file:
- strings: list[str] = []
- line_starts_break = ["mod tests"]
- line_starts_pause = ["fn trace"]
- line_starts_continue = ["#[cfg", "//"]
- in_line_continue = [
- "Err(",
- "assert_if_debugging_ui",
- "panic!(",
- "value_error!(",
- "unwrap!(",
- ]
- is_paused = False
- for line in file:
- if is_paused:
- if line.startswith("}"):
- is_paused = False
- continue
- if any([line.strip().startswith(start) for start in line_starts_break]):
- break
- if any([line.strip().startswith(start) for start in line_starts_pause]):
- is_paused = True
- continue
- if any([line.strip().startswith(start) for start in line_starts_continue]):
- continue
- if any([substr in line for substr in in_line_continue]):
- continue
- if "//" in line:
- line = line[: line.index("//")]
- new = re.findall(r'"(.*?)"', line)
- strings.extend(new)
- return strings
-
-
-def ignore_string(string: str) -> bool:
- if string.endswith(".toif"):
- return True
- if string.startswith("model_"):
- return True
- if string.startswith("ui_"):
- return True
- if len(string) < 4:
- return True
- if "__" in string:
- return True
- return False
-
-
-if __name__ == "__main__":
- all_rust_files = list(RUST_DIR.glob("**/*.rs"))
- all_strings: dict[str, list[str]] = {}
- for file_path in all_rust_files:
- if file_path.name in IGNORE_FILES:
- continue
- if any([ignore_dir in str(file_path) for ignore_dir in IGNORE_DIRS]):
- continue
- strings = extract_strings(file_path)
- strings = list(set(strings))
- strings = [s for s in strings if s]
- strings = [string for string in strings if not ignore_string(string)]
- if strings:
- all_strings[str(file_path)] = strings
- MAPPING_FILE.write_text(json.dumps(all_strings, indent=4))
diff --git a/core/tools/translations/check_missing_upy.py b/core/tools/translations/check_missing_upy.py
deleted file mode 100644
index 219e5033..00000000
--- a/core/tools/translations/check_missing_upy.py
+++ /dev/null
@@ -1,276 +0,0 @@
-# pyright: reportAttributeAccessIssue=false, reportArgumentType=false
-
-from __future__ import annotations
-
-import ast
-import json
-from pathlib import Path
-
-HERE = Path(__file__).parent
-CORE = HERE.parent.parent
-CORE_SRC = CORE / "src"
-KEY_PREFIX = ""
-
-MAPPING_FILE = HERE / "mapping_upy.json"
-IGNORE_FILE = HERE / "ignore_upy.json"
-
-if IGNORE_FILE.exists():
- content = json.loads(IGNORE_FILE.read_text())
- IGNORE_SET: set[str] = set(content.keys())
-else:
- IGNORE_SET = set()
-
-
-def find_all_strings(filename: str | Path) -> list[str]:
- with open(filename, "r") as file:
- file_content = file.read()
-
- tree = ast.parse(file_content)
- strings: list[str] = []
-
- class StringVisitor(ast.NodeVisitor):
-
- def visit_Constant(self, node: ast.Constant) -> None:
- if isinstance(node.value, str):
- strings.append(node.value)
-
- def visit_JoinedStr(self, node: ast.JoinedStr) -> None:
- for value in node.values:
- if isinstance(value, ast.Constant) and isinstance(value.value, str):
- strings.append(value.value)
-
- visitor = StringVisitor()
- visitor.visit(tree)
-
- return strings
-
-
-def find_strings_to_ignore(filename: str | Path) -> list[str]:
- with open(filename, "r") as file:
- file_content = file.read()
-
- tree = ast.parse(file_content)
- strings: list[str] = []
-
- def ignore_func(func_name: str) -> bool:
- if not func_name:
- return True
- substrs = ["Error", "Exception", "wire.", "log.", "ensure", "mem_trace"]
- if any(substr in func_name for substr in substrs):
- return True
- if func_name in (
- "_log",
- "info",
- "warning",
- "debug",
- "Success",
- "SdCardUnavailable",
- "NotInitialized",
- "ActionCancelled",
- "UnexpectedMessage",
- "NotEnoughFunds",
- "Failure",
- "PinCancelled",
- "TypeVar",
- "getattr",
- "_validate_public_key",
- "check_mem",
- "halt",
- "pack",
- "mem_trace",
- ):
- return True
- return False
-
- def get_final_attribute_name(node: ast.AST) -> str:
- """Recursively extracts the final attribute name from a nested attribute expression."""
- if isinstance(node, ast.Name):
- return node.id
- elif isinstance(node, ast.Attribute):
- return get_final_attribute_name(node.value) + "." + node.attr
- return ""
-
- def include_all_strings(arg: ast.expr) -> None:
- if isinstance(arg, ast.Constant) and isinstance(arg.value, str):
- strings.append(arg.value)
- elif isinstance(arg, ast.JoinedStr):
- for value in arg.values:
- if isinstance(value, ast.Constant) and isinstance(value.value, str):
- strings.append(value.value)
- elif isinstance(value, ast.FormattedValue):
- # This part is an expression inside an f-string
- expr_as_str = ast.dump(value.value, annotate_fields=False)
- strings.append(expr_as_str)
-
- class IgnoreStringVisitor(ast.NodeVisitor):
-
- def visit_Call(self, node: ast.Call) -> None:
- func_name = get_final_attribute_name(node.func)
- if ignore_func(func_name):
- for arg in node.args + [kw.value for kw in node.keywords]:
- include_all_strings(arg)
- # Continue visiting the children of this node (!!!Necessary!!!)
- self.generic_visit(node)
-
- def visit_Assert(self, node: ast.Assert) -> None:
- error_message = node.msg
- if error_message:
- include_all_strings(error_message)
- self.generic_visit(node)
-
- def visit_Assign(self, node: ast.Assign) -> None:
- ignore_variables = [
- "msg_wire",
- "msg_type",
- ]
- for target in node.targets:
- if isinstance(target, ast.Name) and target.id in ignore_variables:
- value = node.value
- include_all_strings(value)
- self.generic_visit(node)
-
- def visit_FunctionDef(self, node: ast.FunctionDef) -> None:
- for arg in node.args.args:
- annotation = arg.annotation
- if annotation:
- include_all_strings(annotation)
- return_annotation = node.returns
- if return_annotation:
- include_all_strings(return_annotation)
- self.generic_visit(node)
-
- def visit_AsyncFunctionDef(self, node: ast.AsyncFunctionDef) -> None:
- for arg in node.args.args:
- annotation = arg.annotation
- if annotation:
- include_all_strings(annotation)
- return_annotation = node.returns
- if return_annotation:
- include_all_strings(return_annotation)
- self.generic_visit(node)
-
- def visit_AnnAssign(self, node: ast.AnnAssign) -> None:
- annotation = node.annotation
- include_all_strings(annotation)
- self.generic_visit(node)
-
- visitor = IgnoreStringVisitor()
- visitor.visit(tree)
-
- # get all the top-level string comments
- for node in tree.body:
- if isinstance(node, ast.Expr) and isinstance(
- node.value, (ast.Str, ast.JoinedStr)
- ):
- strings.append(node.value.s)
-
- return strings
-
-
-def find_docstrings(filename: str | Path) -> list[str]:
- with open(filename, "r") as file:
- file_content = file.read()
-
- tree = ast.parse(file_content)
-
- functions = [
- f
- for f in ast.walk(tree)
- if isinstance(f, (ast.FunctionDef, ast.AsyncFunctionDef))
- ]
- function_docs = [ast.get_docstring(f) for f in functions]
-
- classes = [c for c in ast.walk(tree) if isinstance(c, ast.ClassDef)]
- class_docs = [ast.get_docstring(c) for c in classes]
-
- all_docstrings = function_docs + class_docs
-
- module_docstring = ast.get_docstring(tree)
- if module_docstring:
- all_docstrings.append(module_docstring)
-
- return [doc for doc in all_docstrings if doc]
-
-
-def check_file(file: str | Path) -> list[str]:
- all_strings = find_all_strings(file)
-
- def is_docstring(string: str) -> bool:
- return "\n " in string or (string.startswith("\n") and string.endswith("\n"))
-
- all_strings = [string for string in all_strings if not is_docstring(string)]
- ignore_strings = find_strings_to_ignore(file)
- docstrings = find_docstrings(file)
-
- # Remove duplicates
- all_strings = list(set(all_strings))
- ignore_strings = set(ignore_strings)
- docstrings = set(docstrings)
-
- to_ignore = ignore_strings | docstrings
-
- # Remove strings that are passed to error and other non-translatable functions
- return [s for s in all_strings if s not in to_ignore]
-
-
-def check_file_report(file: str | Path) -> None:
- all_files = {str(file): check_file(file)}
- report_all_files(all_files)
-
-
-def check_folder_resursive_report(
- folder: str | Path, ignore_files: list[str] | None = None
-) -> None:
- if ignore_files is None:
- ignore_files = []
- all_files: dict[str, list[str]] = {}
- for file in Path(folder).rglob("*.py"):
- if file.name in ignore_files:
- continue
- file_strings = check_file(file)
- all_files[str(file)] = file_strings
- report_all_files(all_files)
-
-
-def report_all_files(all_files: dict[str, list[str]]) -> None:
- str_mapping: dict[str, str] = {}
- for _file, strings in all_files.items():
- for string in strings:
- if "_" in string:
- continue
- str_id = (
- string.lower()
- .strip()
- .replace(" ", "_")
- .replace("-", "_")
- .replace(":", "")
- .replace("?", "")
- )
- if KEY_PREFIX:
- str_id = f"{KEY_PREFIX}__{str_id}"
- if str_id in IGNORE_SET:
- continue
- str_mapping[str_id] = string
- MAPPING_FILE.write_text(json.dumps(str_mapping, indent=4))
-
-
-if __name__ == "__main__":
- ignore_files = [
- "coininfo.py",
- "nem_mosaics.py",
- "knownapps.py",
- "networks.py",
- "tokens.py",
- "workflow_handlers.py",
- "messages.py",
- "errors.py",
- ]
-
- # folder = CORE_SRC / "apps"
- # folder = CORE_SRC / "trezor"
- folder = CORE_SRC
- check_folder_resursive_report(folder, ignore_files=ignore_files)
-
- # file = CORE_SRC / "trezor/ui/layouts/tt_v2/reset.py"
- # KEY_PREFIX = "TR.reset"
- # check_file_report(file)
diff --git a/core/tools/translations/flatten_json.py b/core/tools/translations/flatten_json.py
deleted file mode 100644
index 1f32b407..00000000
--- a/core/tools/translations/flatten_json.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# pyright: reportMissingImports=false
-from __future__ import annotations
-
-import json
-
-from helpers import ALL_LANGUAGES, TRANSLATIONS_DIR
-
-
-def flatten_data(data: dict[str, dict[str, str]]) -> dict[str, str]:
- items: list[tuple[str, str]] = []
- for section_name, section in data.items():
- for k, v in section.items():
- name = f"{section_name}__{k}"
- items.append((name, v))
- items.sort(key=lambda x: x[0])
- return dict(items)
-
-
-for lang in ALL_LANGUAGES:
- lang_file = TRANSLATIONS_DIR / f"{lang}.json"
- lang_data = json.loads(lang_file.read_text())
- translations_data = lang_data["translations"]
- lang_data["translations"] = flatten_data(translations_data)
-
- lang_file.write_text(
- json.dumps(lang_data, indent=2, sort_keys=True, ensure_ascii=False) + "\n"
- )
diff --git a/core/tools/translations/font_widths.json b/core/tools/translations/font_widths.json
deleted file mode 100644
index 4dda552c..00000000
--- a/core/tools/translations/font_widths.json
+++ /dev/null
@@ -1,666 +0,0 @@
-{
- "TT": {
- "normal": {
- " ": 5,
- "!": 5,
- "\"": 7,
- "#": 14,
- "$": 13,
- "%": 16,
- "&": 13,
- "'": 4,
- "(": 7,
- ")": 7,
- "*": 10,
- "+": 11,
- ",": 4,
- "-": 9,
- ".": 4,
- "/": 7,
- "0": 14,
- "1": 7,
- "2": 11,
- "3": 12,
- "4": 11,
- "5": 12,
- "6": 12,
- "7": 10,
- "8": 12,
- "9": 12,
- ":": 4,
- ";": 4,
- "<": 11,
- "=": 11,
- ">": 11,
- "?": 11,
- "@": 19,
- "A": 14,
- "B": 13,
- "C": 15,
- "D": 15,
- "E": 12,
- "F": 12,
- "G": 16,
- "H": 15,
- "I": 5,
- "J": 8,
- "K": 12,
- "L": 11,
- "M": 19,
- "N": 15,
- "O": 16,
- "P": 13,
- "Q": 16,
- "R": 13,
- "S": 13,
- "T": 12,
- "U": 14,
- "V": 14,
- "W": 21,
- "X": 13,
- "Y": 12,
- "Z": 12,
- "[": 7,
- "\\": 7,
- "]": 7,
- "^": 9,
- "_": 9,
- "`": 5,
- "a": 11,
- "b": 12,
- "c": 11,
- "d": 12,
- "e": 12,
- "f": 7,
- "g": 12,
- "h": 12,
- "i": 5,
- "j": 6,
- "k": 10,
- "l": 5,
- "m": 18,
- "n": 12,
- "o": 12,
- "p": 12,
- "q": 12,
- "r": 7,
- "s": 10,
- "t": 7,
- "u": 12,
- "v": 11,
- "w": 17,
- "x": 10,
- "y": 10,
- "z": 9,
- "{": 7,
- "|": 7,
- "}": 7,
- "~": 12,
- "¿": 11,
- "À": 14,
- "Á": 14,
- "Â": 14,
- "Ä": 14,
- "Æ": 20,
- "Ç": 15,
- "È": 12,
- "É": 12,
- "Ê": 12,
- "Ë": 12,
- "Í": 5,
- "Î": 6,
- "Ï": 6,
- "Ñ": 15,
- "Ó": 16,
- "Ô": 16,
- "Ö": 16,
- "Ù": 14,
- "Ú": 14,
- "Û": 14,
- "Ü": 14,
- "Ý": 12,
- "ß": 12,
- "à": 11,
- "á": 11,
- "â": 11,
- "ä": 11,
- "æ": 19,
- "ç": 11,
- "è": 12,
- "é": 12,
- "ê": 12,
- "ë": 12,
- "í": 5,
- "î": 6,
- "ï": 6,
- "ñ": 12,
- "ó": 12,
- "ô": 12,
- "ö": 12,
- "ù": 12,
- "ú": 12,
- "û": 12,
- "ü": 12,
- "ý": 10,
- "ÿ": 10,
- "Č": 15,
- "č": 11,
- "Ď": 15,
- "ď": 13,
- "Ě": 12,
- "ě": 12,
- "Ň": 15,
- "ň": 12,
- "Œ": 23,
- "œ": 20,
- "Ř": 13,
- "ř": 7,
- "Š": 13,
- "š": 10,
- "Ť": 12,
- "ť": 8,
- "Ů": 14,
- "ů": 12,
- "Ÿ": 12,
- "Ž": 12,
- "ž": 9
- },
- "bold": {
- " ": 5,
- "!": 5,
- "\"": 8,
- "#": 13,
- "$": 11,
- "%": 14,
- "&": 11,
- "'": 4,
- "(": 7,
- ")": 7,
- "*": 8,
- "+": 10,
- ",": 5,
- "-": 8,
- ".": 5,
- "/": 7,
- "0": 12,
- "1": 7,
- "2": 10,
- "3": 10,
- "4": 10,
- "5": 10,
- "6": 10,
- "7": 9,
- "8": 10,
- "9": 10,
- ":": 5,
- ";": 5,
- "<": 10,
- "=": 10,
- ">": 10,
- "?": 9,
- "@": 16,
- "A": 13,
- "B": 11,
- "C": 12,
- "D": 12,
- "E": 10,
- "F": 10,
- "G": 13,
- "H": 12,
- "I": 5,
- "J": 7,
- "K": 11,
- "L": 10,
- "M": 16,
- "N": 13,
- "O": 13,
- "P": 11,
- "Q": 13,
- "R": 12,
- "S": 11,
- "T": 10,
- "U": 12,
- "V": 12,
- "W": 17,
- "X": 12,
- "Y": 12,
- "Z": 11,
- "[": 7,
- "\\": 7,
- "]": 7,
- "^": 8,
- "_": 8,
- "`": 5,
- "a": 10,
- "b": 11,
- "c": 10,
- "d": 11,
- "e": 10,
- "f": 7,
- "g": 10,
- "h": 10,
- "i": 5,
- "j": 6,
- "k": 9,
- "l": 5,
- "m": 15,
- "n": 10,
- "o": 10,
- "p": 11,
- "q": 11,
- "r": 7,
- "s": 9,
- "t": 7,
- "u": 10,
- "v": 9,
- "w": 14,
- "x": 10,
- "y": 10,
- "z": 9,
- "{": 7,
- "|": 7,
- "}": 7,
- "~": 10,
- "¿": 9,
- "À": 13,
- "Á": 13,
- "Â": 13,
- "Ä": 13,
- "Æ": 17,
- "Ç": 12,
- "È": 10,
- "É": 10,
- "Ê": 10,
- "Ë": 10,
- "Í": 5,
- "Î": 6,
- "Ï": 6,
- "Ñ": 13,
- "Ó": 13,
- "Ô": 13,
- "Ö": 13,
- "Ù": 12,
- "Ú": 12,
- "Û": 12,
- "Ü": 12,
- "Ý": 12,
- "ß": 10,
- "à": 10,
- "á": 10,
- "â": 10,
- "ä": 10,
- "æ": 15,
- "ç": 10,
- "è": 10,
- "é": 10,
- "ê": 10,
- "ë": 10,
- "í": 5,
- "î": 6,
- "ï": 6,
- "ñ": 10,
- "ó": 10,
- "ô": 10,
- "ö": 10,
- "ù": 10,
- "ú": 10,
- "û": 10,
- "ü": 10,
- "ý": 10,
- "ÿ": 10,
- "Č": 12,
- "č": 10,
- "Ď": 12,
- "ď": 13,
- "Ě": 10,
- "ě": 10,
- "Ň": 13,
- "ň": 10,
- "Œ": 18,
- "œ": 16,
- "Ř": 12,
- "ř": 7,
- "Š": 11,
- "š": 9,
- "Ť": 10,
- "ť": 9,
- "Ů": 12,
- "ů": 10,
- "Ÿ": 12,
- "Ž": 11,
- "ž": 9
- }
- },
- "TS3": {
- "normal": {
- " ": 4,
- "!": 4,
- "\"": 6,
- "#": 7,
- "$": 6,
- "%": 8,
- "&": 6,
- "'": 4,
- "(": 6,
- ")": 6,
- "*": 6,
- "+": 6,
- ",": 4,
- "-": 5,
- ".": 4,
- "/": 4,
- "0": 6,
- "1": 6,
- "2": 6,
- "3": 6,
- "4": 6,
- "5": 6,
- "6": 6,
- "7": 6,
- "8": 6,
- "9": 6,
- ":": 4,
- ";": 4,
- "<": 4,
- "=": 5,
- ">": 4,
- "?": 6,
- "@": 8,
- "A": 6,
- "B": 6,
- "C": 6,
- "D": 6,
- "E": 6,
- "F": 6,
- "G": 6,
- "H": 6,
- "I": 4,
- "J": 6,
- "K": 6,
- "L": 6,
- "M": 8,
- "N": 6,
- "O": 6,
- "P": 6,
- "Q": 6,
- "R": 6,
- "S": 6,
- "T": 6,
- "U": 6,
- "V": 6,
- "W": 8,
- "X": 6,
- "Y": 6,
- "Z": 6,
- "[": 6,
- "\\": 4,
- "]": 6,
- "^": 6,
- "_": 4,
- "`": 4,
- "a": 6,
- "b": 6,
- "c": 6,
- "d": 6,
- "e": 6,
- "f": 5,
- "g": 6,
- "h": 6,
- "i": 4,
- "j": 6,
- "k": 6,
- "l": 4,
- "m": 8,
- "n": 6,
- "o": 6,
- "p": 6,
- "q": 6,
- "r": 6,
- "s": 6,
- "t": 5,
- "u": 6,
- "v": 6,
- "w": 8,
- "x": 6,
- "y": 6,
- "z": 6,
- "{": 6,
- "|": 4,
- "}": 6,
- "~": 7,
- "¿": 6,
- "À": 6,
- "Á": 6,
- "Â": 6,
- "Ä": 6,
- "Æ": 10,
- "Ç": 6,
- "È": 6,
- "É": 6,
- "Ê": 6,
- "Ë": 6,
- "Í": 4,
- "Î": 4,
- "Ï": 4,
- "Ñ": 6,
- "Ó": 6,
- "Ô": 6,
- "Ö": 6,
- "Ù": 6,
- "Ú": 6,
- "Û": 6,
- "Ü": 6,
- "Ý": 6,
- "ß": 6,
- "à": 6,
- "á": 6,
- "â": 6,
- "ä": 6,
- "æ": 10,
- "ç": 6,
- "è": 6,
- "é": 6,
- "ê": 6,
- "ë": 6,
- "í": 4,
- "î": 4,
- "ï": 4,
- "ñ": 6,
- "ó": 6,
- "ô": 6,
- "ö": 6,
- "ù": 6,
- "ú": 6,
- "û": 6,
- "ü": 6,
- "ý": 6,
- "ÿ": 6,
- "Č": 6,
- "č": 6,
- "Ď": 6,
- "ď": 11,
- "Ě": 6,
- "ě": 6,
- "Ň": 6,
- "ň": 6,
- "Œ": 10,
- "œ": 10,
- "Ř": 6,
- "ř": 6,
- "Š": 6,
- "š": 6,
- "Ť": 6,
- "ť": 10,
- "Ů": 6,
- "ů": 6,
- "Ÿ": 6,
- "Ž": 6,
- "ž": 6
- },
- "bold": {
- " ": 4,
- "!": 5,
- "\"": 6,
- "#": 8,
- "$": 8,
- "%": 13,
- "&": 7,
- "'": 5,
- "(": 7,
- ")": 7,
- "*": 6,
- "+": 7,
- ",": 5,
- "-": 5,
- ".": 5,
- "/": 5,
- "0": 7,
- "1": 7,
- "2": 7,
- "3": 7,
- "4": 7,
- "5": 7,
- "6": 7,
- "7": 7,
- "8": 7,
- "9": 7,
- ":": 5,
- ";": 5,
- "<": 5,
- "=": 5,
- ">": 5,
- "?": 7,
- "@": 8,
- "A": 7,
- "B": 7,
- "C": 7,
- "D": 7,
- "E": 7,
- "F": 7,
- "G": 7,
- "H": 7,
- "I": 5,
- "J": 7,
- "K": 7,
- "L": 7,
- "M": 8,
- "N": 7,
- "O": 7,
- "P": 7,
- "Q": 7,
- "R": 7,
- "S": 7,
- "T": 7,
- "U": 7,
- "V": 7,
- "W": 8,
- "X": 7,
- "Y": 7,
- "Z": 7,
- "[": 7,
- "\\": 5,
- "]": 6,
- "^": 7,
- "_": 4,
- "`": 5,
- "a": 7,
- "b": 7,
- "c": 7,
- "d": 7,
- "e": 7,
- "f": 6,
- "g": 7,
- "h": 7,
- "i": 5,
- "j": 7,
- "k": 7,
- "l": 5,
- "m": 8,
- "n": 7,
- "o": 7,
- "p": 7,
- "q": 7,
- "r": 7,
- "s": 7,
- "t": 6,
- "u": 7,
- "v": 7,
- "w": 8,
- "x": 7,
- "y": 7,
- "z": 7,
- "{": 6,
- "|": 5,
- "}": 6,
- "~": 8,
- "¿": 7,
- "À": 7,
- "Á": 7,
- "Â": 7,
- "Ä": 7,
- "Æ": 11,
- "Ç": 7,
- "È": 7,
- "É": 7,
- "Ê": 7,
- "Ë": 7,
- "Í": 5,
- "Î": 5,
- "Ï": 5,
- "Ñ": 7,
- "Ó": 7,
- "Ô": 7,
- "Ö": 7,
- "Ù": 7,
- "Ú": 7,
- "Û": 7,
- "Ü": 7,
- "Ý": 7,
- "ß": 7,
- "à": 7,
- "á": 7,
- "â": 7,
- "ä": 7,
- "æ": 11,
- "ç": 7,
- "è": 7,
- "é": 7,
- "ê": 7,
- "ë": 7,
- "í": 5,
- "î": 5,
- "ï": 5,
- "ñ": 7,
- "ó": 7,
- "ô": 7,
- "ö": 7,
- "ù": 7,
- "ú": 7,
- "û": 7,
- "ü": 7,
- "ý": 7,
- "ÿ": 7,
- "Č": 7,
- "č": 7,
- "Ď": 7,
- "ď": 13,
- "Ě": 7,
- "ě": 7,
- "Ň": 7,
- "ň": 7,
- "Œ": 11,
- "œ": 11,
- "Ř": 7,
- "ř": 7,
- "Š": 7,
- "š": 7,
- "Ť": 7,
- "ť": 11,
- "Ů": 7,
- "ů": 7,
- "Ÿ": 7,
- "Ž": 7,
- "ž": 7
- }
- }
-}
diff --git a/core/tools/translations/rules.json b/core/tools/translations/rules.json
deleted file mode 100644
index eed1d486..00000000
--- a/core/tools/translations/rules.json
+++ /dev/null
@@ -1,821 +0,0 @@
-{
- "addr_mismatch__contact_support_at": "text,2",
- "addr_mismatch__key_mismatch": "text,1",
- "addr_mismatch__mismatch": "text,1",
- "addr_mismatch__support_url": "text,1",
- "addr_mismatch__wrong_derivation_path": "text,2",
- "addr_mismatch__xpub_mismatch": "text,1",
- "address__public_key": "text,1",
- "address__title_cosigner": "title,1",
- "address__title_receive_address": "title,1",
- "address__title_yours": "title,1",
- "address_details__derivation_path": "text,1",
- "address_details__title_receive_address": "title,1",
- "address_details__title_receiving_to": "title,1",
- "authenticate__confirm_template": "text,3",
- "authenticate__header": "text,1",
- "auto_lock__change_template": "text,3",
- "auto_lock__title": "title,1",
- "backup__can_back_up_anytime": "text,3",
- "backup__it_should_be_backed_up": "text,2",
- "backup__it_should_be_backed_up_now": "text,2",
- "backup__new_wallet_created": "text,2",
- "backup__new_wallet_successfully_created": "text,2",
- "backup__recover_anytime": "text,3",
- "backup__title_backup_wallet": "title,1",
- "backup__title_skip": "title,1",
- "backup__want_to_skip": "text,3",
- "bitcoin__commitment_data": "text,1",
- "bitcoin__confirm_locktime": "text,1",
- "bitcoin__create_proof_of_ownership": "text,2",
- "bitcoin__high_mining_fee_template": "text,3",
- "bitcoin__locktime_no_effect": "text,2",
- "bitcoin__locktime_set_to": "text,1",
- "bitcoin__locktime_set_to_blockheight": "text,2",
- "bitcoin__lot_of_change_outputs": "text,3",
- "bitcoin__multiple_accounts": "text,1",
- "bitcoin__new_fee_rate": "text,1",
- "bitcoin__simple_send_of": "text,1",
- "bitcoin__ticket_amount": "text,1",
- "bitcoin__title_confirm_details": "title,1",
- "bitcoin__title_finalize_transaction": "title,2",
- "bitcoin__title_high_mining_fee": "title,1",
- "bitcoin__title_meld_transaction": "title,1",
- "bitcoin__title_modify_amount": "title,1",
- "bitcoin__title_payjoin": "title,1",
- "bitcoin__title_proof_of_ownership": "title,1",
- "bitcoin__title_purchase_ticket": "title,1",
- "bitcoin__title_update_transaction": "title,1",
- "bitcoin__unknown_path": "text,1",
- "bitcoin__unknown_transaction": "text,1",
- "bitcoin__unusually_high_fee": "text,2",
- "bitcoin__unverified_external_inputs": "text,3",
- "bitcoin__valid_signature": "text,1",
- "bitcoin__voting_rights": "text,1",
- "buttons__abort": "button,1",
- "buttons__access": "button,1",
- "buttons__again": "button,1",
- "buttons__allow": "button,1",
- "buttons__back": "button,1",
- "buttons__back_up": "button,1",
- "buttons__cancel": "button,1",
- "buttons__change": "button,1",
- "buttons__check": "button,1",
- "buttons__check_again": "button,1",
- "buttons__close": "button,1",
- "buttons__confirm": "button,1",
- "buttons__continue": "button,1",
- "buttons__details": "button,1",
- "buttons__enable": "button,1",
- "buttons__enter": "button,1",
- "buttons__enter_share": "button,1",
- "buttons__export": "button,1",
- "buttons__format": "button,1",
- "buttons__go_back": "button,1",
- "buttons__hold_to_confirm": "button,1",
- "buttons__info": "button,1",
- "buttons__install": "button,1",
- "buttons__more_info": "button,1",
- "buttons__ok_i_understand": "button,1",
- "buttons__purchase": "button,1",
- "buttons__quit": "button,1",
- "buttons__restart": "button,1",
- "buttons__retry": "button,1",
- "buttons__select": "button,1",
- "buttons__set": "button,1",
- "buttons__show_all": "button,1",
- "buttons__show_details": "button,1",
- "buttons__show_words": "button,1",
- "buttons__skip": "button,1",
- "buttons__try_again": "button,1",
- "buttons__turn_off": "button,1",
- "buttons__turn_on": "button,1",
- "cardano__addr_base": "text,1",
- "cardano__addr_enterprise": "text,1",
- "cardano__addr_legacy": "text,1",
- "cardano__addr_pointer": "text,1",
- "cardano__addr_reward": "text,1",
- "cardano__address_no_staking": "text,2",
- "cardano__amount_burned_decimals_unknown": "text,2",
- "cardano__amount_minted_decimals_unknown": "text,2",
- "cardano__amount_sent_decimals_unknown": "text,2",
- "cardano__anonymous_pool": "text,2",
- "cardano__asset_fingerprint": "text,1",
- "cardano__auxiliary_data_hash": "text,1",
- "cardano__block": "text,1",
- "cardano__catalyst": "text,1",
- "cardano__certificate": "text,1",
- "cardano__change_output": "text,1",
- "cardano__check_all_items": "text,2",
- "cardano__choose_level_of_details": "text,1",
- "cardano__collateral_input_id": "text,1",
- "cardano__collateral_input_index": "text,1",
- "cardano__collateral_output_contains_tokens": "text,2",
- "cardano__collateral_return": "text,1",
- "cardano__confirm": "text,1",
- "cardano__confirm_signing_stake_pool": "text,3",
- "cardano__confirm_transaction": "text,1",
- "cardano__confirming_a_multisig_transaction": "text,2",
- "cardano__confirming_a_plutus_transaction": "text,2",
- "cardano__confirming_pool_registration": "text,2",
- "cardano__confirming_transaction": "text,2",
- "cardano__cost": "text,1",
- "cardano__credential_mismatch": "text,3",
- "cardano__datum_hash": "text,1",
- "cardano__delegating_to": "text,1",
- "cardano__for_account_and_index_template": "text,2",
- "cardano__for_account_template": "text,1",
- "cardano__for_key_hash": "text,1",
- "cardano__for_script": "text,1",
- "cardano__inline_datum": "text,1",
- "cardano__input_id": "text,1",
- "cardano__input_index": "text,1",
- "cardano__intro_text_change": "text,3",
- "cardano__intro_text_owned_by_device": "text,3",
- "cardano__intro_text_registration_payment": "text,4",
- "cardano__key_hash": "text,1",
- "cardano__margin": "text,1",
- "cardano__multisig_path": "text,1",
- "cardano__nested_scripts_template": "text,2",
- "cardano__network": "text,1",
- "cardano__no_output_tx": "text,3",
- "cardano__nonce": "text,1",
- "cardano__other": "text,1",
- "cardano__path": "text,1",
- "cardano__pledge": "text,1",
- "cardano__pointer": "text,1",
- "cardano__policy_id": "text,1",
- "cardano__pool_metadata_hash": "text,1",
- "cardano__pool_metadata_url": "text,1",
- "cardano__pool_owner": "text,1",
- "cardano__pool_reward_account": "text,1",
- "cardano__reference_input_id": "text,1",
- "cardano__reference_input_index": "text,1",
- "cardano__reference_script": "text,1",
- "cardano__required_signer": "text,1",
- "cardano__reward": "text,1",
- "cardano__reward_address": "text,2",
- "cardano__reward_eligibility_warning": "text,4",
- "cardano__rewards_go_to": "text,1",
- "cardano__script": "text,1",
- "cardano__script_all": "text,1",
- "cardano__script_any": "text,1",
- "cardano__script_data_hash": "text,1",
- "cardano__script_hash": "text,1",
- "cardano__script_invalid_before": "text,1",
- "cardano__script_invalid_hereafter": "text,1",
- "cardano__script_key": "text,1",
- "cardano__script_n_of_k": "text,1",
- "cardano__script_reward": "text,1",
- "cardano__sending": "text,1",
- "cardano__show_simple": "text,1",
- "cardano__sign_tx_path_template": "text,2",
- "cardano__stake_delegation": "text,1",
- "cardano__stake_deregistration": "text,2",
- "cardano__stake_pool_registration": "text,1",
- "cardano__stake_pool_registration_pool_id": "text,2",
- "cardano__stake_registration": "text,1",
- "cardano__staking_key_for_account": "text,1",
- "cardano__to_pool": "text,1",
- "cardano__token_minting_path": "text,1",
- "cardano__total_collateral": "text,1",
- "cardano__transaction": "text,1",
- "cardano__transaction_contains_minting_or_burning": "text,3",
- "cardano__transaction_contains_script_address_no_datum": "text,5",
- "cardano__transaction_id": "text,1",
- "cardano__transaction_no_collateral_input": "text,4",
- "cardano__transaction_no_script_data_hash": "text,4",
- "cardano__transaction_output_contains_tokens": "text,3",
- "cardano__ttl": "text,1",
- "cardano__unknown_collateral_amount": "text,2",
- "cardano__unusual_path": "text,1",
- "cardano__valid_since": "text,1",
- "cardano__verify_script": "text,1",
- "cardano__vote_key_registration": "text,2",
- "cardano__vote_public_key": "text,1",
- "cardano__voting_purpose": "text,1",
- "cardano__warning": "text,1",
- "cardano__weight": "text,1",
- "cardano__withdrawal_for_address_template": "text,2",
- "cardano__x_of_y_signatures_template": "text,2",
- "coinjoin__access_account": "text,3",
- "coinjoin__do_not_disconnect": "text,2",
- "coinjoin__max_mining_fee": "text,1",
- "coinjoin__max_rounds": "text,1",
- "coinjoin__title": "title,1",
- "coinjoin__title_progress": "title,1",
- "coinjoin__waiting_for_others": "text,1",
- "confirm_total__fee_rate_colon": "text,1",
- "confirm_total__sending_from_account": "text,1",
- "confirm_total__title_fee": "title,1",
- "confirm_total__title_sending_from": "title,1",
- "debug__loading_seed": "text,1",
- "debug__loading_seed_not_recommended": "text,2",
- "device_name__change_template": "text,3",
- "device_name__title": "title,1",
- "entropy__send": "text,2",
- "entropy__title_confirm": "title,1",
- "eos__about_to_sign_template": "text,2",
- "eos__action_name": "text,1",
- "eos__arbitrary_data": "text,1",
- "eos__buy_ram": "text,1",
- "eos__bytes": "text,1",
- "eos__cancel_vote": "text,1",
- "eos__checksum": "text,1",
- "eos__code": "text,1",
- "eos__contract": "text,1",
- "eos__cpu": "text,1",
- "eos__creator": "text,1",
- "eos__delegate": "text,1",
- "eos__delete_auth": "text,1",
- "eos__from": "text,1",
- "eos__link_auth": "text,1",
- "eos__memo": "text,1",
- "eos__name": "text,1",
- "eos__net": "text,1",
- "eos__new_account": "text,1",
- "eos__owner": "text,1",
- "eos__parent": "text,1",
- "eos__payer": "text,1",
- "eos__permission": "text,1",
- "eos__proxy": "text,1",
- "eos__receiver": "text,1",
- "eos__refund": "text,1",
- "eos__requirement": "text,1",
- "eos__sell_ram": "text,1",
- "eos__sender": "text,1",
- "send__sign_transaction": "text,1",
- "eos__threshold": "text,1",
- "eos__to": "text,1",
- "eos__transfer": "text,1",
- "eos__type": "text,1",
- "eos__undelegate": "text,1",
- "eos__unlink_auth": "text,1",
- "eos__update_auth": "text,1",
- "eos__vote_for_producers": "text,1",
- "eos__vote_for_proxy": "text,1",
- "eos__voter": "text,1",
- "ethereum__amount_sent": "text,1",
- "ethereum__contract": "text,1",
- "ethereum__data_size_template": "text,1",
- "ethereum__gas_limit": "text,1",
- "ethereum__gas_price": "text,1",
- "ethereum__max_gas_price": "text,1",
- "ethereum__name_and_version": "text,1",
- "ethereum__new_contract": "text,1",
- "ethereum__no_message_field": "text,1",
- "ethereum__priority_fee": "text,1",
- "ethereum__show_full_array": "text,1",
- "ethereum__show_full_domain": "text,1",
- "ethereum__show_full_message": "text,1",
- "ethereum__show_full_struct": "text,1",
- "ethereum__sign_eip712": "text,2",
- "ethereum__title_input_data": "title,1",
- "ethereum__title_confirm_domain": "title,1",
- "ethereum__title_confirm_message": "title,1",
- "ethereum__title_confirm_struct": "title,1",
- "ethereum__title_confirm_typed_data": "title,1",
- "ethereum__title_signing_address": "title,1",
- "ethereum__units_template": "text,1",
- "ethereum__unknown_token": "text,1",
- "ethereum__valid_signature": "text,1",
- "experimental_mode__enable": "text,2",
- "experimental_mode__only_for_dev": "text,2",
- "experimental_mode__title": "title,1",
- "fido__already_registered": "text,1",
- "fido__device_already_registered": "text,3",
- "fido__device_already_registered_with_template": "text,2",
- "fido__device_not_registered": "text,3",
- "fido__does_not_belong": "text,4",
- "fido__erase_credentials": "text,1",
- "fido__export_credentials": "text,4",
- "fido__not_registered": "text,1",
- "fido__not_registered_with_template": "text,3",
- "fido__please_enable_pin_protection": "text,2",
- "fido__title_authenticate": "title,1",
- "fido__title_import_credential": "title,1",
- "fido__title_list_credentials": "title,1",
- "fido__title_register": "title,1",
- "fido__title_remove_credential": "title,1",
- "fido__title_reset": "title,1",
- "fido__title_u2f_auth": "title,1",
- "fido__title_u2f_register": "title,1",
- "fido__title_verify_user": "title,1",
- "fido__unable_to_verify_user": "text,2",
- "fido__wanna_erase_credentials": "text,2",
- "firmware_update__title": "title,1",
- "firmware_update__title_fingerprint": "title,1",
- "homescreen__click_to_connect": "text,1",
- "homescreen__click_to_unlock": "text,1",
- "homescreen__title_backup_failed": "title,1",
- "homescreen__title_backup_needed": "title,1",
- "homescreen__title_coinjoin_authorized": "title,1",
- "homescreen__title_experimental_mode": "title,1",
- "homescreen__title_hold_to_lock": "title,1",
- "homescreen__title_no_usb_connection": "title,1",
- "homescreen__title_pin_not_set": "title,1",
- "homescreen__title_seedless": "title,1",
- "homescreen__title_set": "title,1",
- "inputs__back": "text,1",
- "inputs__cancel": "text,1",
- "inputs__delete": "text,1",
- "inputs__enter": "text,1",
- "inputs__previous": "text,1",
- "inputs__return": "text,1",
- "inputs__show": "text,1",
- "inputs__space": "text,1",
- "joint__title": "title,1",
- "joint__to_the_total_amount": "text,2",
- "joint__you_are_contributing": "text,2",
- "language__change_to_template": "text,2",
- "language__changed": "text,2",
- "language__progress": "text,1",
- "language__title": "text,1",
- "lockscreen__tap_to_connect": "text,1",
- "lockscreen__tap_to_unlock": "text,1",
- "lockscreen__title_locked": "title,1",
- "lockscreen__title_not_connected": "title,1",
- "misc__decrypt_value": "text,1",
- "misc__encrypt_value": "text,1",
- "misc__title_suite_labeling": "title,1",
- "modify_amount__decrease_amount": "text,1",
- "modify_amount__increase_amount": "text,1",
- "modify_amount__new_amount": "text,1",
- "modify_amount__title": "title,1",
- "modify_fee__decrease_fee": "text,1",
- "modify_fee__fee_rate": "text,1",
- "modify_fee__increase_fee": "text,1",
- "modify_fee__new_transaction_fee": "text,1",
- "modify_fee__no_change": "text,1",
- "modify_fee__title": "title,1",
- "modify_fee__transaction_fee": "text,1",
- "monero__confirm_export": "text,1",
- "monero__confirm_ki_sync": "text,1",
- "monero__confirm_refresh": "text,1",
- "monero__confirm_unlock_time": "text,1",
- "monero__hashing_inputs": "text,1",
- "monero__payment_id": "text,1",
- "monero__postprocessing": "text,1",
- "monero__processing": "text,1",
- "monero__processing_inputs": "text,1",
- "monero__processing_outputs": "text,1",
- "monero__signing": "text,1",
- "monero__signing_inputs": "text,1",
- "monero__unlock_time_set_template": "text,2",
- "monero__wanna_export_tx_der": "text,3",
- "monero__wanna_export_tx_key": "text,2",
- "monero__wanna_export_watchkey": "text,3",
- "monero__wanna_start_refresh": "text,2",
- "monero__wanna_sync_key_images": "text,2",
- "nem__absolute": "text,1",
- "nem__activate": "text,1",
- "nem__add": "text,1",
- "nem__confirm_action": "text,1",
- "nem__confirm_address": "text,1",
- "nem__confirm_creation_fee": "text,1",
- "nem__confirm_mosaic": "text,1",
- "nem__confirm_multisig_fee": "text,1",
- "nem__confirm_namespace": "text,1",
- "nem__confirm_payload": "text,1",
- "nem__confirm_properties": "text,1",
- "nem__confirm_rental_fee": "text,1",
- "nem__confirm_transfer_of": "text,1",
- "nem__convert_account_to_multisig": "text,2",
- "nem__cosign_transaction_for": "text,1",
- "nem__cosignatory": "text,1",
- "nem__create_mosaic": "text,1",
- "nem__create_namespace": "text,1",
- "nem__deactivate": "text,1",
- "nem__decrease": "text,1",
- "nem__description": "text,1",
- "nem__divisibility_and_levy_cannot_be_shown": "text,3",
- "nem__encrypted": "text,1",
- "nem__final_confirm": "text,1",
- "nem__immutable": "text,1",
- "nem__increase": "text,1",
- "nem__initial_supply": "text,1",
- "nem__initiate_transaction_for": "text,1",
- "nem__levy_divisibility": "text,1",
- "nem__levy_fee": "text,1",
- "nem__levy_fee_of": "text,2",
- "nem__levy_mosaic": "text,1",
- "nem__levy_namespace": "text,1",
- "nem__levy_recipient": "text,1",
- "nem__levy_type": "text,1",
- "nem__modify_supply_for": "text,1",
- "nem__modify_the_number_of_cosignatories_by": "text,2",
- "nem__mutable": "text,1",
- "nem__of": "text,1",
- "nem__percentile": "text,1",
- "nem__raw_units_template": "text,1",
- "nem__remote_harvesting": "text,1",
- "nem__remove": "text,1",
- "nem__set_minimum_cosignatories_to": "text,2",
- "nem__sign_tx_fee_template": "text,3",
- "nem__supply_change": "text,1",
- "nem__supply_units_template": "text,2",
- "nem__transferable": "text,1",
- "nem__under_namespace": "text,1",
- "nem__unencrypted": "text,1",
- "nem__unknown_mosaic": "text,1",
- "passphrase__access_wallet": "text,1",
- "passphrase__always_on_device": "text,4",
- "passphrase__from_host_not_shown": "text,5",
- "passphrase__wallet": "title,1",
- "passphrase__hide": "text,3",
- "passphrase__next_screen_will_show_passphrase": "text,3",
- "passphrase__please_enter": "text,2",
- "passphrase__revoke_on_device": "text,3",
- "passphrase__title_confirm": "title,1",
- "passphrase__title_enter": "title,1",
- "passphrase__title_hide": "title,1",
- "passphrase__title_settings": "title,1",
- "passphrase__title_source": "title,1",
- "passphrase__turn_off": "text,3",
- "passphrase__turn_on": "text,3",
- "pin__change": "text,2",
- "pin__changed": "text,2",
- "pin__cursor_will_change": "text,4",
- "pin__diff_from_wipe_code": "text,3",
- "pin__disabled": "text,3",
- "pin__enabled": "text,3",
- "pin__enter": "text,1",
- "pin__enter_new": "text,1",
- "pin__entered_not_valid": "text,3",
- "pin__info": "text,3",
- "pin__invalid_pin": "text,1",
- "pin__last_attempt": "text,1",
- "pin__mismatch": "text,2",
- "pin__pin_mismatch": "text,1",
- "pin__please_check_again": "text,2",
- "pin__reenter_new": "text,1",
- "pin__reenter_to_confirm": "text,3",
- "pin__should_be_long": "text,3",
- "pin__title_check_pin": "title,1",
- "pin__title_settings": "title,1",
- "pin__title_wrong_pin": "title,1",
- "pin__tries_left": "text,1",
- "pin__turn_off": "text,3",
- "pin__turn_on": "text,2",
- "pin__wrong_pin": "text,1",
- "plurals__contains_x_keys": "text,1",
- "plurals__lock_after_x_hours": "text,1",
- "plurals__lock_after_x_milliseconds": "text,2",
- "plurals__lock_after_x_minutes": "text,1",
- "plurals__lock_after_x_seconds": "text,1",
- "plurals__sign_x_actions": "text,1",
- "plurals__transaction_of_x_operations": "text,1",
- "plurals__x_groups_needed": "text,1",
- "plurals__x_shares_needed": "text,1",
- "progress__authenticity_check": "text,1",
- "progress__done": "text,1",
- "progress__loading_transaction": "text,1",
- "progress__locking_device": "text,1",
- "progress__one_second_left": "text,1",
- "progress__please_wait": "text,1",
- "progress__processing": "text,1",
- "progress__refreshing": "text,1",
- "progress__signing_transaction": "text,1",
- "progress__syncing": "text,1",
- "progress__x_seconds_left_template": "text,1",
- "reboot_to_bootloader__restart": "text,3",
- "reboot_to_bootloader__title": "title,1",
- "reboot_to_bootloader__just_a_moment": "title,1",
- "reboot_to_bootloader__version_by_template": "text,2",
- "recovery__cancel_dry_run": "text,2",
- "recovery__check_dry_run": "text,2",
- "recovery__cursor_will_change": "text,4",
- "recovery__dry_run_bip39_valid_match": "text,4",
- "recovery__dry_run_bip39_valid_mismatch": "text,4",
- "recovery__dry_run_slip39_valid_match": "text,4",
- "recovery__dry_run_slip39_valid_mismatch": "text,4",
- "recovery__enter_any_share": "text,2",
- "recovery__enter_backup": "text,2",
- "recovery__enter_different_share": "text,2",
- "recovery__enter_share_from_diff_group": "text,2",
- "recovery__group_num_template": "text,1",
- "recovery__group_threshold_reached": "text,2",
- "recovery__invalid_wallet_backup_entered": "text,3",
- "recovery__invalid_share_entered": "text,3",
- "recovery__more_shares_needed": "text,2",
- "recovery__num_of_words": "text,2",
- "recovery__only_first_n_letters": "text,4",
- "recovery__progress_will_be_lost": "text,2",
- "recovery__share_already_entered": "text,2",
- "recovery__share_from_another_multi_share_backup": "text,3",
- "recovery__share_num_template": "text,1",
- "recovery__title": "title,1",
- "recovery__title_cancel_dry_run": "title,1",
- "recovery__title_cancel_recovery": "title,1",
- "recovery__title_dry_run": "title,1",
- "recovery__title_recover": "title,1",
- "recovery__title_remaining_shares": "title,1",
- "recovery__type_word_x_of_y_template": "text,1",
- "recovery__wallet_recovered": "text,3",
- "recovery__wanna_cancel_dry_run": "text,3",
- "recovery__wanna_cancel_recovery": "text,3",
- "recovery__word_count_template": "text,1",
- "recovery__word_x_of_y_template": "text,1",
- "recovery__x_more_items_starting_template_plural": "text,2",
- "recovery__x_more_shares_needed_template_plural": "text,2",
- "recovery__x_of_y_entered_template": "text,2",
- "recovery__you_have_entered": "text,1",
- "reset__advanced_group_threshold_info": "text,4",
- "reset__all_x_of_y_template": "text,1",
- "reset__any_x_of_y_template": "text,1",
- "reset__button_create": "button,1",
- "reset__button_recover": "button,1",
- "reset__by_continuing": "text,3",
- "reset__check_backup_title": "title,1",
- "reset__check_group_share_title_template": "title,1",
- "reset__check_wallet_backup_title": "title,1",
- "reset__check_share_title_template": "title,1",
- "reset__continue_with_next_share": "text,2",
- "reset__continue_with_share_template": "text,2",
- "reset__finished_verifying_group_template": "text,4",
- "reset__finished_verifying_wallet_backup": "text,4",
- "reset__finished_verifying_shares": "text,4",
- "reset__group_description": "text,2",
- "reset__group_info": "text,7",
- "reset__group_share_checked_successfully_template": "text,2",
- "reset__group_share_title_template": "title,1",
- "reset__more_info_at": "text,1",
- "reset__need_all_share_template": "text,2",
- "reset__need_any_share_template": "text,2",
- "reset__needed_to_form_a_group": "text,2",
- "reset__needed_to_recover_your_wallet": "text,2",
- "reset__never_make_digital_copy": "text,4",
- "reset__num_of_share_holders_template": "text,3",
- "reset__num_of_shares_advanced_info_template": "text,7",
- "reset__num_of_shares_basic_info": "text,6",
- "reset__num_shares_for_group_template": "text,3",
- "reset__number_of_shares_info": "text,3",
- "reset__one_share": "text,1",
- "reset__only_one_share_will_be_created": "text,2",
- "reset__recovery_wallet_backup_title": "title,1",
- "reset__recovery_share_title_template": "title,1",
- "reset__required_number_of_groups": "text,3",
- "reset__select_correct_word": "text,3",
- "reset__select_word_template": "text,1",
- "reset__select_word_x_of_y_template": "text,1",
- "reset__set_it_to_count_template": "text,2",
- "reset__share_checked_successfully_template": "text,2",
- "reset__share_words_title": "title,1",
- "reset__slip39_checklist_num_groups": "text,1",
- "reset__slip39_checklist_num_shares": "text,1",
- "reset__slip39_checklist_set_num_groups": "text,1",
- "reset__slip39_checklist_set_num_shares": "text,1",
- "reset__slip39_checklist_set_sizes": "text,2",
- "reset__slip39_checklist_set_sizes_longer": "text,2",
- "reset__slip39_checklist_set_threshold": "text,1",
- "reset__slip39_checklist_title": "title,1",
- "reset__slip39_checklist_write_down": "text,2",
- "reset__slip39_checklist_write_down_recovery": "text,2",
- "reset__the_threshold_sets_the_number_of_shares": "text,2",
- "reset__threshold_info": "text,3",
- "reset__title_backup_is_done": "title,1",
- "reset__title_create_wallet": "title,1",
- "reset__title_group_threshold": "title,1",
- "reset__title_number_of_groups": "title,1",
- "reset__title_number_of_shares": "title,1",
- "reset__title_set_group_threshold": "title,1",
- "reset__title_set_number_of_groups": "title,2",
- "reset__title_set_number_of_shares": "title,2",
- "reset__title_set_threshold": "title,1",
- "reset__to_form_group_template": "text,2",
- "reset__tos_link": "text,1",
- "reset__total_number_of_shares_in_group_template": "text,2",
- "reset__use_your_backup": "text,3",
- "reset__write_down_words_template": "text,2",
- "reset__wrong_word_selected": "text,2",
- "reset__you_need_one_share": "text,2",
- "reset__your_backup_is_done": "text,1",
- "ripple__confirm_tag": "text,1",
- "ripple__destination_tag_template": "text,2",
- "rotation__change_template": "text,3",
- "rotation__east": "text,1",
- "rotation__north": "text,1",
- "rotation__south": "text,1",
- "rotation__title_change": "title,1",
- "rotation__west": "text,1",
- "safety_checks__approve_unsafe_always": "text,4",
- "safety_checks__approve_unsafe_temporary": "text,4",
- "safety_checks__enforce_strict": "text,4",
- "safety_checks__title": "title,1",
- "safety_checks__title_safety_override": "title,1",
- "sd_card__all_data_will_be_lost": "text,3",
- "sd_card__card_required": "text,1",
- "sd_card__disable": "text,4",
- "sd_card__disabled": "text,3",
- "sd_card__enable": "text,4",
- "sd_card__enabled": "text,3",
- "sd_card__error": "text,1",
- "sd_card__format_card": "text,1",
- "sd_card__insert_correct_card": "text,4",
- "sd_card__please_insert": "text,3",
- "sd_card__please_unplug_and_insert": "text,4",
- "sd_card__problem_accessing": "text,3",
- "sd_card__refresh": "text,4",
- "sd_card__refreshed": "text,4",
- "sd_card__restart": "text,3",
- "sd_card__title": "title,1",
- "sd_card__title_problem": "title,1",
- "sd_card__unknown_filesystem": "text,2",
- "sd_card__unplug_and_insert_correct": "text,4",
- "sd_card__use_different_card": "text,4",
- "sd_card__wanna_format": "text,3",
- "sd_card__wrong_sd_card": "text,1",
- "send__address_path": "text,1",
- "send__confirm_sending": "text,1",
- "send__from_multiple_accounts": "text,2",
- "send__including_fee": "text,1",
- "send__maximum_fee": "text,1",
- "send__receiving_to_multisig": "text,2",
- "send__title_confirm_sending": "title,1",
- "send__title_joint_transaction": "title,1",
- "send__title_receiving_to": "title,1",
- "send__title_sending": "title,1",
- "send__title_sending_amount": "title,1",
- "send__title_sending_to": "title,1",
- "send__to_the_total_amount": "text,1",
- "send__total_amount_colon": "text,1",
- "send__transaction_id": "text,1",
- "send__you_are_contributing": "text,1",
- "share_words__words_in_order": "text,2",
- "share_words__wrote_down_all": "text,2",
- "sign_message__bytes_template": "text,1",
- "sign_message__confirm_address": "title,1",
- "sign_message__confirm_message": "title,1",
- "sign_message__message_size": "text,1",
- "sign_message__verify_address": "text,1",
- "solana__account_index": "text,1",
- "solana__associated_token_account": "text,2",
- "solana__confirm_multisig": "text,1",
- "solana__expected_fee": "text,1",
- "solana__instruction_accounts_template": "text,3",
- "solana__instruction_data": "text,1",
- "solana__instruction_is_multisig": "text,3",
- "solana__is_provided_via_lookup_table_template": "text,2",
- "solana__lookup_table_address": "text,1",
- "solana__multiple_signers": "text,1",
- "solana__token_mint": "text,1",
- "solana__transaction_contains_unknown_instructions": "text,2",
- "solana__transaction_requires_x_signers_template": "text,3",
- "stellar__account_merge": "text,1",
- "stellar__account_thresholds": "text,1",
- "stellar__add_signer": "text,1",
- "stellar__add_trust": "text,1",
- "stellar__all_will_be_sent_to": "text,1",
- "stellar__allow_trust": "text,1",
- "stellar__asset": "text,1",
- "stellar__balance_id": "text,1",
- "stellar__bump_sequence": "text,1",
- "stellar__buying": "text,1",
- "stellar__claim_claimable_balance": "text,2",
- "stellar__clear_data": "text,1",
- "stellar__clear_flags": "text,1",
- "stellar__confirm_issuer": "text,1",
- "stellar__confirm_memo": "text,1",
- "stellar__confirm_network": "text,1",
- "stellar__confirm_operation": "text,1",
- "stellar__confirm_stellar": "text,1",
- "stellar__confirm_timebounds": "text,1",
- "stellar__create_account": "text,1",
- "stellar__debited_amount": "text,1",
- "stellar__delete": "text,1",
- "stellar__delete_passive_offer": "text,1",
- "stellar__delete_trust": "text,1",
- "stellar__destination": "text,1",
- "stellar__exchanges_require_memo": "text,3",
- "stellar__final_confirm": "text,1",
- "stellar__hash": "text,1",
- "stellar__high": "text,1",
- "stellar__home_domain": "text,1",
- "stellar__inflation": "text,1",
- "stellar__initial_balance": "text,1",
- "stellar__initialize_signing_with": "text,1",
- "stellar__issuer_template": "text,1",
- "stellar__key": "text,1",
- "stellar__limit": "text,1",
- "stellar__low": "text,1",
- "stellar__master_weight": "text,1",
- "stellar__medium": "text,1",
- "stellar__new_offer": "text,1",
- "stellar__new_passive_offer": "text,1",
- "stellar__no_memo_set": "text,1",
- "stellar__no_restriction": "text,1",
- "stellar__on_network_template": "text,1",
- "stellar__path_pay": "text,1",
- "stellar__path_pay_at_least": "text,1",
- "stellar__pay": "text,1",
- "stellar__pay_at_most": "text,1",
- "stellar__preauth_transaction": "text,1",
- "stellar__price_per_template": "text,1",
- "stellar__private_network": "text,1",
- "stellar__remove_signer": "text,1",
- "stellar__revoke_trust": "text,1",
- "stellar__selling": "text,1",
- "stellar__set_data": "text,1",
- "stellar__set_flags": "text,1",
- "stellar__set_sequence_to_template": "text,1",
- "stellar__sign_tx_count_template": "text,2",
- "stellar__sign_tx_fee_template": "text,2",
- "stellar__source_account": "text,1",
- "stellar__testnet_network": "text,1",
- "stellar__trusted_account": "text,1",
- "stellar__update": "text,1",
- "stellar__valid_from": "text,1",
- "stellar__valid_to": "text,1",
- "stellar__value_sha256": "text,1",
- "stellar__wanna_clean_value_key_template": "text,2",
- "stellar__your_account": "text,1",
- "tezos__baker_address": "text,1",
- "tezos__balance": "text,1",
- "tezos__ballot": "text,1",
- "tezos__confirm_delegation": "text,1",
- "tezos__confirm_origination": "text,1",
- "tezos__delegator": "text,1",
- "tezos__proposal": "text,1",
- "tezos__register_delegate": "text,1",
- "tezos__remove_delegation": "text,1",
- "tezos__submit_ballot": "text,1",
- "tezos__submit_proposal": "text,1",
- "tezos__submit_proposals": "text,1",
- "tutorial__middle_click": "text,4",
- "tutorial__press_and_hold": "text,4",
- "tutorial__ready_to_use": "text,3",
- "tutorial__scroll_down": "text,8",
- "tutorial__sure_you_want_skip": "text,4",
- "tutorial__title_hello": "title,1",
- "tutorial__title_screen_scroll": "title,1",
- "tutorial__title_skip": "title,1",
- "tutorial__title_tutorial_complete": "title,1",
- "tutorial__use_trezor": "text,5",
- "tutorial__welcome_press_right": "text,4",
- "u2f__get": "text,2",
- "u2f__set_template": "text,2",
- "u2f__title_get": "title,1",
- "u2f__title_set": "title,1",
- "wipe__info": "text,2",
- "wipe__title": "title,1",
- "wipe__want_to_wipe": "text,3",
- "wipe_code__change": "text,2",
- "wipe_code__changed": "text,2",
- "wipe_code__diff_from_pin": "text,3",
- "wipe_code__disabled": "text,2",
- "wipe_code__enabled": "text,2",
- "wipe_code__enter_new": "text,1",
- "wipe_code__info": "text,3",
- "wipe_code__invalid": "text,1",
- "wipe_code__mismatch": "text,2",
- "wipe_code__reenter": "text,1",
- "wipe_code__reenter_to_confirm": "text,2",
- "wipe_code__title_check": "title,1",
- "wipe_code__title_invalid": "title,2",
- "wipe_code__title_settings": "title,1",
- "wipe_code__turn_off": "text,2",
- "wipe_code__turn_on": "text,2",
- "wipe_code__wipe_code_mismatch": "text,1",
- "word_count__title": "title,1",
- "words__account": "text,1",
- "words__account_colon": "text,1",
- "words__address": "text,1",
- "words__amount": "text,1",
- "words__are_you_sure": "text,1",
- "words__array_of": "text,1",
- "words__blockhash": "text,1",
- "words__buying": "text,1",
- "words__confirm": "text,1",
- "words__confirm_fee": "text,1",
- "words__contains": "text,1",
- "words__continue_anyway": "text,1",
- "words__continue_anyway_question": "text,1",
- "words__continue_with": "text,1",
- "words__error": "text,1",
- "words__fee": "text,1",
- "words__from": "text,1",
- "words__keep_it_safe": "text,2",
- "words__know_what_your_doing": "text,4",
- "words__my_trezor": "text,1",
- "words__no": "text,1",
- "words__outputs": "text,1",
- "words__please_check_again": "text,2",
- "words__please_try_again": "text,1",
- "words__really_wanna": "text,1",
- "words__recipient": "text,1",
- "words__sign": "text,1",
- "words__signer": "text,1",
- "words__title_check": "title,1",
- "words__title_group": "title,1",
- "words__title_information": "title,1",
- "words__title_remember": "title,1",
- "words__title_share": "title,1",
- "words__title_shares": "title,1",
- "words__title_success": "title,1",
- "words__title_summary": "title,1",
- "words__title_threshold": "title,1",
- "words__unknown": "text,1",
- "words__warning": "text,1",
- "words__writable": "text,1",
- "words__yes": "text,1"
-}
diff --git a/core/tools/translations/translate_missing.py b/core/tools/translations/translate_missing.py
deleted file mode 100644
index b100779f..00000000
--- a/core/tools/translations/translate_missing.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# pyright: reportMissingImports=false
-import json
-from typing import Any, Dict
-
-from googletrans import Translator
-from helpers import FOREIGN_LANGUAGES, TRANSLATIONS_DIR
-
-MISSING_VALUE = "TODO:missing"
-
-
-def translate_dict(
- d: Dict[str, Any], translator: Translator, from_lang: str, to_lang: str
-) -> Dict[str, Any]:
- new_dict: dict[str, Any] = {}
- for key, value in d.items():
- if isinstance(value, dict):
- new_dict[key] = translate_dict(value, translator, from_lang, to_lang)
- else:
- try:
- translated_text = translator.translate(
- value, src=from_lang, dest=to_lang
- ).text
- new_dict[key] = translated_text
- except Exception as e:
- print(f"Error translating {value}: {e}")
- new_dict[key] = MISSING_VALUE
- return new_dict
-
-
-def update_nested_dict(target: dict, source: dict) -> None:
- for key, value in target.items():
- if key in source:
- if isinstance(value, dict):
- update_nested_dict(value, source[key])
- else:
- target[key] = source[key]
-
-
-def extend_nested_dict(bigger: dict, smaller: dict) -> None:
- for key, value in smaller.items():
- if key in bigger:
- if isinstance(value, dict) and isinstance(bigger[key], dict):
- extend_nested_dict(bigger[key], value)
- else:
- bigger[key] = value
- else:
- bigger[key] = value
-
-
-if __name__ == "__main__":
- translator = Translator()
- TRANSLATE = True
-
- with open(TRANSLATIONS_DIR / "en.json", "r") as f:
- en_dict = json.load(f)["translations"]
- en_keys = set(en_dict.keys())
-
- for language in FOREIGN_LANGUAGES:
- lang_file = TRANSLATIONS_DIR / f"{language}.json"
- lang_data = json.loads(lang_file.read_text())
- translations = lang_data["translations"]
- lang_keys = set(translations.keys())
-
- print(f"Translating to {language}")
- missing = en_keys - lang_keys
- print("missing", missing)
- missing_dict = {key: MISSING_VALUE for key in missing}
- if TRANSLATE:
- update_nested_dict(missing_dict, en_dict)
- translated_dict = translate_dict(missing_dict, translator, "en", language)
- else:
- translated_dict = missing_dict
- print("translated_dict", translated_dict)
- extend_nested_dict(lang_data["translations"], translated_dict)
-
- def remove_unmatched_items(
- main_dict: Dict[Any, Any], secondary_dict: Dict[Any, Any]
- ) -> None:
- keys_to_remove = [key for key in secondary_dict if key not in main_dict]
- for key in keys_to_remove:
- del secondary_dict[key]
-
- for key, value in secondary_dict.items():
- if isinstance(value, dict) and key in main_dict:
- remove_unmatched_items(main_dict[key], value)
-
- remove_unmatched_items(en_dict, lang_data["translations"])
-
- lang_file.write_text(
- json.dumps(lang_data, indent=2, sort_keys=True, ensure_ascii=False) + "\n"
- )
diff --git a/core/tools/translations/validate_strings.py b/core/tools/translations/validate_strings.py
deleted file mode 100644
index ef677619..00000000
--- a/core/tools/translations/validate_strings.py
+++ /dev/null
@@ -1,223 +0,0 @@
-# pyright: reportMissingImports=false
-from __future__ import annotations
-
-import json
-import sys
-from dataclasses import dataclass
-
-from helpers import HERE, TRANSLATIONS_DIR
-
-
-@dataclass
-class TooLong:
- key: str
- value: str
- lines: list[str]
- en: str
- lines_en: list[str]
-
- def __str__(self) -> str:
- return f"{self.key} : {self.value} --- {self.en} ({len(self.lines)} / {len(self.lines_en)})"
-
-
-ALTCOINS = [
- "binance",
- "cardano",
- "ethereum",
- "eos",
- "monero",
- "nem",
- "stellar",
- "solana",
- "ripple",
- "tezos",
- "tron",
-]
-
-SCREEN_TEXT_WIDTHS = {"TT": 240 - 12, "TS3": 128}
-MAX_BUTTON_WIDTH = {"TT": 162, "TS3": 88}
-
-FONT_MAPPING = {
- "TT": {
- "title": "bold",
- "text": "normal",
- "bold": "bold",
- "button": "bold",
- },
- "TS3": {
- "title": "bold",
- "text": "normal",
- "bold": "bold",
- "button": "normal",
- },
-}
-
-DEVICES = ["TT", "TS3"]
-
-FONTS_FILE = HERE / "font_widths.json"
-
-FONTS: dict[str, dict[str, dict[str, int]]] = json.loads(FONTS_FILE.read_text())
-
-
-def will_fit(text: str, type: str, device: str, lines: int) -> bool:
- if type == "button":
- return get_text_width(text, type, device) <= MAX_BUTTON_WIDTH[device]
- else:
- needed_lines = get_needed_lines(text, type, device)
- return needed_lines <= lines
-
-
-def get_needed_lines(text: str, type: str, device: str) -> int:
- return len(assemble_lines(text, type, device))
-
-
-def assemble_lines(text: str, type: str, device: str) -> list[str]:
- space_width = get_text_width(" ", type, device)
- words = text.replace("\r", "\n").split(" ") # Splitting explicitly by space
- current_line_length = 0
- current_line = []
- assembled_lines: list[str] = []
-
- screen_width = SCREEN_TEXT_WIDTHS[device]
-
- for word in words:
- segments = word.split("\n")
- for i, segment in enumerate(segments):
- if segment:
- segment_width = get_text_width(segment, type, device)
- if current_line_length + segment_width <= screen_width:
- current_line.append(segment)
- current_line_length += segment_width + space_width
- else:
- assembled_lines.append(" ".join(current_line))
- current_line = [segment]
- current_line_length = segment_width + space_width
- # If this is not the last segment, add a newline
- if i < len(segments) - 1:
- assembled_lines.append(" ".join(current_line))
- current_line = []
- current_line_length = 0
-
- if current_line: # Append the last line if it's not empty
- assembled_lines.append(" ".join(current_line))
-
- return assembled_lines
-
-
-def fill_line_with_underscores(lines: list[str], type: str, device: str) -> list[str]:
- filled_lines: list[str] = []
- screen_width = SCREEN_TEXT_WIDTHS[device]
-
- for line in lines:
- line_width = get_text_width(line, type, device)
- while line_width < screen_width:
- line += "_"
- line_width = get_text_width(line, type, device)
- filled_lines.append(line[:-1])
-
- return filled_lines
-
-
-def print_lines(lines: list[str]) -> None:
- for line in lines:
- print(line)
-
-
-def get_text_width(text: str, type: str, device: str) -> int:
- font = FONT_MAPPING[device][type]
- widths = FONTS[device][font]
- return sum(widths.get(c, 8) for c in text)
-
-
-def check(language: str) -> list[TooLong]:
- en_file = TRANSLATIONS_DIR / "en.json"
- en_content = json.loads(en_file.read_text())["translations"]
-
- translation_file = TRANSLATIONS_DIR / f"{language}.json"
- rules_file = HERE / "rules.json"
- rules_content = json.loads(rules_file.read_text())
-
- translation_content = json.loads(translation_file.read_text())["translations"]
- translation_content = {
- k: v.replace(" (TODO)", "") for k, v in translation_content.items()
- }
- translation_content = {
- k: v.replace(" (TOO LONG)", "") for k, v in translation_content.items()
- }
-
- wrong: dict[str, TooLong] = {}
-
- for k, v in list(translation_content.items())[:]:
- if k.split("__")[0] in ALTCOINS:
- continue
- if k.split("__")[0] == "plurals":
- continue
-
- rule = rules_content.get(k)
- if not rule:
- print(f"Missing rule for {k}")
- continue
- type, lines = rule.split(",")
- lines = int(lines)
-
- for model in DEVICES:
- if model == "TT" and k.startswith("tutorial"):
- continue
-
- if not will_fit(v, type, model, lines):
- too_long = TooLong(
- k,
- v,
- assemble_lines(v, type, model),
- en_content[k],
- assemble_lines(en_content[k], type, model),
- )
- wrong[k] = too_long
-
- for _, too_long in wrong.items():
- print(too_long)
-
- print(len(wrong))
-
- return list(wrong.values())
-
-
-def test() -> None:
- def test_fits_exactly(text: str, type: str, device: str, lines: int) -> None:
- assert not will_fit(text, type, device, lines - 1)
- assert will_fit(text, type, device, lines)
-
- for model in DEVICES:
- assert will_fit("Hello world", "title", model, 2)
- assert will_fit("Hello world", "title", model, 1)
- assert will_fit("By continuing you agree", "text", model, 1)
- assert not will_fit("Confirming a transaction", "text", model, 1)
- assert will_fit("Confirming a transaction", "text", model, 2)
- assert will_fit("Loading private seed is not recommended.", "text", model, 2)
- assert will_fit("CONFIRM TRANSACTION", "title", model, 1)
- assert not will_fit("RECEIVE ADDRESS (MULTISIG)", "title", model, 1)
- test_fits_exactly(
- "I have\nfour\nlines\rhere",
- "text",
- model,
- 4,
- )
- assert will_fit("HOLD TO CONFIRM", "button", model, 1)
- assert will_fit("OK, I UNDERSTAND", "button", model, 1)
-
- assert will_fit("Choose level of details", "text", "TT", 1)
- test_fits_exactly(
- "Do you really want to enforce strict safety checks (recommended)?",
- "text",
- "TT",
- 4,
- )
-
-
-if __name__ == "__main__":
- lang = "de"
- if len(sys.argv) > 1:
- lang = sys.argv[1]
-
- test()
- check(lang)
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.