Skip to content

Commit

Permalink
Add Russian language support (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkfg authored Jul 18, 2024
1 parent ce5d658 commit eb626a7
Show file tree
Hide file tree
Showing 5 changed files with 421 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"ra-language-farsi": "^4.2.0",
"ra-language-french": "^4.16.17",
"ra-language-italian": "^3.13.1",
"ra-language-russian": "^4.14.2",
"react": "^18.3.1",
"react-admin": "^4.16.17",
"react-dom": "^18.3.1",
Expand Down
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import germanMessages from "./i18n/de";
import englishMessages from "./i18n/en";
import frenchMessages from "./i18n/fr";
import italianMessages from "./i18n/it";
import russianMessages from "./i18n/ru";
import chineseMessages from "./i18n/zh";
import LoginPage from "./pages/LoginPage";
import destinations from "./resources/destinations";
Expand All @@ -27,6 +28,7 @@ const messages = {
en: englishMessages,
fr: frenchMessages,
it: italianMessages,
ru: russianMessages,
zh: chineseMessages,
};
const i18nProvider = polyglotI18nProvider(
Expand All @@ -38,6 +40,7 @@ const i18nProvider = polyglotI18nProvider(
{ locale: "fr", name: "Français" },
{ locale: "it", name: "Italiano" },
{ locale: "fa", name: "Persian(فارسی)" },
{ locale: "ru", name: "Russian(Русский)" },
{ locale: "zh", name: "简体中文" },
]
);
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const en: SynapseTranslationMessages = {
successful: "%{smart_count} entries successfully imported",
skipped: "%{smart_count} entries skipped",
download_skipped: "Download skipped records",
with_error: "%{smart_count} entry with errors ||| %{smart_count} entries with errors",
with_error: "%{smart_count} entry with errors |||| %{smart_count} entries with errors",
simulated_only: "Run was only simulated",
},
},
Expand Down
Loading

0 comments on commit eb626a7

Please sign in to comment.