Skip to content

Commit 06d7db4

Browse files
committed
Fix Russion locale, compiled file was comitted without a source file
1 parent 4557244 commit 06d7db4

File tree

6 files changed

+654
-11
lines changed

6 files changed

+654
-11
lines changed

frontend/check-locales.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const allLocales = [
1010
["en", "en-US"],
1111
["es", "es-ES"],
1212
["de", "de-DE"],
13+
["ru", "ru-RU"],
1314
];
1415

1516
const ignoreUnused = [

frontend/src/locale/lang/lang-list.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"locale-en-US": "English",
32
"locale-de-DE": "German",
3+
"locale-en-US": "English",
44
"locale-es-ES": "Español",
55
"locale-ja-JP": "日本語",
66
"locale-ru-RU": "Русский"

frontend/src/locale/lang/ru.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"column.email": "Email",
6363
"column.event": "Событие",
6464
"column.expires": "Истекает",
65-
"column.http-code": "Access",
65+
"column.http-code": "HTTP Code",
6666
"column.incoming-port": "Входящий порт",
6767
"column.name": "Имя",
6868
"column.protocol": "Протокол",
@@ -169,6 +169,7 @@
169169
"public": "Публичный",
170170
"redirection-host": "Редирект-хост",
171171
"redirection-host.forward-domain": "Домен перенаправления",
172+
"redirection-host.forward-http-code": "HTTP Code",
172173
"redirection-hosts": "Редирект-хосты",
173174
"redirection-hosts.count": "{count} {count, plural, one {редирект-хост} few {редирект-хоста} many {редирект-хостов} other {редирект-хоста}}",
174175
"role.admin": "Администратор",

frontend/src/locale/src/HelpDoc/index.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
import * as en from "./en/index";
21
import * as de from "./de/index";
2+
import * as en from "./en/index";
33
import * as ja from "./ja/index";
44

55
const items: any = { en, de, ja };
66

77
const fallbackLang = "en";
88

99
export const getHelpFile = (lang: string, section: string): string => {
10-
if (
11-
typeof items[lang] !== "undefined" &&
12-
typeof items[lang][section] !== "undefined"
13-
) {
10+
if (typeof items[lang] !== "undefined" && typeof items[lang][section] !== "undefined") {
1411
return items[lang][section].default;
1512
}
1613
// Fallback to English
17-
if (
18-
typeof items[fallbackLang] !== "undefined" &&
19-
typeof items[fallbackLang][section] !== "undefined"
20-
) {
14+
if (typeof items[fallbackLang] !== "undefined" && typeof items[fallbackLang][section] !== "undefined") {
2115
return items[fallbackLang][section].default;
2216
}
2317
throw new Error(`Cannot load help doc for ${lang}-${section}`);

frontend/src/locale/src/lang-list.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
},
1111
"locale-ja-JP": {
1212
"defaultMessage": "日本語"
13+
},
14+
"locale-ru-RU": {
15+
"defaultMessage": "Русский"
1316
}
1417
}

0 commit comments

Comments
 (0)