From 8f8cd81c14b79cee8844d7e7fa6e36ddc8e649e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1rm=C3=A1n=20Zsombor?= <32225709+Karman40@users.noreply.github.com> Date: Mon, 29 Jul 2024 02:38:56 +0200 Subject: [PATCH] feat: add Hungarian translation (#261) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kármán Zsombor --- frontend/locales/hu.json | 84 +++++++++++++++++++ .../components/setting/PreferenceSection.tsx | 4 + frontend/web/src/i18n.ts | 4 + 3 files changed, 92 insertions(+) create mode 100644 frontend/locales/hu.json diff --git a/frontend/locales/hu.json b/frontend/locales/hu.json new file mode 100644 index 0000000..73b88c9 --- /dev/null +++ b/frontend/locales/hu.json @@ -0,0 +1,84 @@ +{ + "common": { + "about": "Névjegy", + "loading": "Betöltés", + "cancel": "Mégse", + "save": "Mentés", + "create": "Létrehozás", + "download": "Letöltés", + "edit": "Szerkesztés", + "delete": "Törlés", + "language": "Nyelv", + "search": "Keresés", + "email": "Email", + "password": "Jelszó", + "account": "Fiók" + }, + "auth": { + "sign-in": "Bejelentkezés", + "sign-up": "Regisztráció", + "sign-out": "Kijelentkezés", + "create-your-account": "Fiók létrehozás", + "host-tip": "Adminisztrátorként regisztrál." + }, + "analytics": { + "self": "Analitika", + "top-sources": "Legfontosabb források", + "source": "Forrás", + "visitors": "Látogatók", + "devices": "Eszközök", + "browser": "Böngésző", + "browsers": "Böngészők", + "operating-system": "Operációs rendszer" + }, + "shortcut": { + "visits": "{{count}} látogatás", + "visibility": { + "private": { + "self": "Privát", + "description": "Csak Ön férhet hozzá" + }, + "workspace": { + "self": "Munkaterület", + "description": "A munkaterület tagjai hozzáférhetnek" + }, + "public": { + "self": "Nyilvános", + "description": "Mindenki számára látható az interneten" + } + } + }, + "filter": { + "all": "Összes", + "mine": "Saját", + "compact-mode": "Kompakt mód", + "order-by": "Rendezés", + "direction": "Irány" + }, + "user": { + "self": "Felhasználó", + "nickname": "Becenév", + "email": "Email", + "role": "Szerep", + "profile": "Profil", + "action": { + "add-user": "Felhasználó hozzáadása" + } + }, + "settings": { + "self": "Beállítás", + "preference": { + "self": "Preferencia", + "color-theme": "Színtéma" + }, + "workspace": { + "self": "Munkaterület beállítások", + "custom-style": "Egyéni stílus", + "enable-user-signup": { + "self": "Felhasználói regisztráció engedélyezése", + "description": "Ha engedélyezve van, más felhasználók is regisztrálhatnak." + }, + "default-visibility": "Alapértelmezett láthatóság" + } + } +} diff --git a/frontend/web/src/components/setting/PreferenceSection.tsx b/frontend/web/src/components/setting/PreferenceSection.tsx index 16c84ea..e63bf2f 100644 --- a/frontend/web/src/components/setting/PreferenceSection.tsx +++ b/frontend/web/src/components/setting/PreferenceSection.tsx @@ -36,6 +36,10 @@ const PreferenceSection: React.FC = () => { value: "RU", label: "русский", }, + { + value: "HU", + label: "Magyar", + }, ]; const colorThemeOptions = [ diff --git a/frontend/web/src/i18n.ts b/frontend/web/src/i18n.ts index d149f0c..919bf7d 100644 --- a/frontend/web/src/i18n.ts +++ b/frontend/web/src/i18n.ts @@ -6,6 +6,7 @@ import ja from "../../locales/ja.json"; import ru from "../../locales/ru.json"; import tr from "../../locales/tr.json"; import zh from "../../locales/zh.json"; +import hu from "../../locales/hu.json"; i18n.use(initReactI18next).init({ resources: { @@ -27,6 +28,9 @@ i18n.use(initReactI18next).init({ TR: { translation: tr, }, + HU: { + translation: hu, + }, }, lng: "EN", fallbackLng: "EN",