Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ localisation:
- nl
- no
- zh-CN
- ru

dependsOn:
open:
Expand Down
3 changes: 2 additions & 1 deletion web/src/core/ports/OnyxiaApi/Language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export const languages = [
"nl",
"it",
"es",
"de"
"de",
"ru"
] as const;

export type Language = (typeof languages)[number];
Expand Down
2 changes: 1 addition & 1 deletion web/src/core/ports/OnyxiaApi/XOnyxia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export type XOnyxiaContext = {
password: string;
ip: string;
darkMode: boolean;
lang: "en" | "fr" | "zh-CN" | "no" | "fi" | "nl" | "it" | "es" | "de";
lang: "en" | "fr" | "zh-CN" | "no" | "fi" | "nl" | "it" | "es" | "de" | "ru";
/**
* Decoded JWT OIDC ID token of the user launching the service.
*
Expand Down
16 changes: 15 additions & 1 deletion web/src/keycloak-theme/login/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,21 @@
or: "或",
doRegister: "创建账户",
tabTitleSuffix: "登录"
}
},
ru: {
lowerCaseAlphanumericalCharsOnly: "Только строчные буквы и цифры",
"allowed email domains": "Разрешённые домены",
"this email domain is not allowed": "Этот домен электронной почты не разрешён",
"minimum length": "Минимальная длина: {0}",
"must be different from username": "Пароль не может совпадать с именем пользователя",
"password mismatch": "Пароли не совпадают",

Check failure on line 157 in web/src/keycloak-theme/login/i18n.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Review this potentially hard-coded password.

See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AZzZOegnnXc0p40jzGDT&open=AZzZOegnnXc0p40jzGDT&pullRequest=1060

Check failure

Code scanning / SonarCloud

Credentials should not be hard-coded High

Review this potentially hard-coded password. See more on SonarQube Cloud
"go back": "Назад",
"form not filled properly yet": "Пожалуйста, убедитесь, что форма заполнена корректно",
"must respect the pattern": "Должно соответствовать формату",
or: "или",
doRegister: "Создать аккаунт",
tabTitleSuffix: "Вход"
},
/* spell-checker: enable */
})
.build();
Expand Down
6 changes: 4 additions & 2 deletions web/src/ui/i18n/i18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export const {
nl: () => import("./resources/nl").then(({ translations }) => translations),
it: () => import("./resources/it").then(({ translations }) => translations),
es: () => import("./resources/es").then(({ translations }) => translations),
de: () => import("./resources/de").then(({ translations }) => translations)
de: () => import("./resources/de").then(({ translations }) => translations),
ru: () => import("./resources/ru").then(({ translations }) => translations)
}
);

Expand Down Expand Up @@ -64,7 +65,8 @@ export const languagesPrettyPrint: Record<Language, string> = objectFromEntries(
nl: "Dutch (Nederlands)",
no: "Norsk",
fi: "Suomi",
"zh-CN": "简体中文"
"zh-CN": "简体中文",
ru: "Русский"
/* spell-checker: enable */
}).filter(([language]) => env.ENABLED_LANGUAGES.includes(language))
);
1,214 changes: 1,214 additions & 0 deletions web/src/ui/i18n/resources/ru.tsx

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion web/src/ui/i18n/z.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const languages = [
"nl",
"it",
"es",
"de"
"de",
"ru"
] as const;

assert<Equals<(typeof languages)[number], Language>>();
Expand Down