feat(i18n): add Russian UI and harden localization

This commit is contained in:
Arthur Koba
2026-10-25 22:35:32 +03:00
parent 65a96670d5
commit b4e94076c9
115 changed files with 7767 additions and 993 deletions
+13
View File
@@ -0,0 +1,13 @@
// Names used by renderers are technical tokens, including inside raw examples.
export function messageContractTokens(message) {
return [
...message.matchAll(
/\$[\p{L}_][\p{L}\p{N}_]*(?:\.[\p{L}_][\p{L}\p{N}_]*)*/gu,
),
...message.matchAll(/<\/?[\p{L}][\p{L}\p{N}_-]*(?:\s[^<>]*?)?\s*\/?>/gu),
]
.map(([token]) =>
token.startsWith('<') ? token.match(/^<\/?[^\s/>]+/u)[0] + '>' : token,
)
.sort();
}