Skip to content

Commit

Permalink
add be_BY, ru_RU, uk_UA translations (by DeNdy Jr.)
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Aug 27, 2024
1 parent 1dece25 commit f6fb8cf
Show file tree
Hide file tree
Showing 6 changed files with 1,099 additions and 4 deletions.
16 changes: 14 additions & 2 deletions src/components/settings/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -448,17 +448,29 @@ export default function Page() {
allowDeselect={false}
data={[
{
value: "en_US",
label: "English",
value: "be_BY",
label: "Belarusian",
},
{
value: "zh_CN",
label: "Chinese",
},
{
value: "en_US",
label: "English",
},
{
value: "pt_PT",
label: "Portuguese",
},
{
value: "ru_RU",
label: "Russian",
},
{
value: "uk_UA",
label: "Ukrainian",
},
]}
value={i18n.language}
onChange={(val) => {
Expand Down
8 changes: 7 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,21 @@ import { createRoot } from "react-dom/client";
import { initReactI18next } from "react-i18next";
import App from "./App";

import { be_BY } from "./translation/be_BY";
import { en_US } from "./translation/en_US";
import { pt_PT } from "./translation/pt_PT";
import { ru_RU } from "./translation/ru_RU";
import { uk_UA } from "./translation/uk_UA";
import { zh_CN } from "./translation/zh_CN";

i18n.use(initReactI18next).init({
resources: {
en: en_US,
zh_CN: zh_CN,
pt_PT: pt_PT,
zh_CN: zh_CN,
ru_RU: ru_RU,
uk_UA: uk_UA,
be_BY: be_BY,
},
lng: localStorage.getItem("lang") || "en_US",
fallbackLng: "en",
Expand Down
2 changes: 1 addition & 1 deletion src/state/keybinds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const keys = {
ANNOTATION_BLUNDER: { name: "Toggle blunder move annotation", keys: "6" },
TOGGLE_ALL_ENGINES: { name: "Toggle all engines", keys: "ctrl+a" },
TOGGLE_BLUR: { name: "Toggle blur", keys: "ctrl+b" },
PREVIOUS_GAME: { name: "Next game", keys: "pageup" },
PREVIOUS_GAME: { name: "Previous game", keys: "pageup" },
NEXT_GAME: { name: "Next game", keys: "pagedown" },
};

Expand Down
Loading

0 comments on commit f6fb8cf

Please sign in to comment.