feat: add Hungarian translation (#261)

Co-authored-by: Kármán Zsombor <karman.zsombor@infohullam.hu>
This commit is contained in:
Kármán Zsombor 2024-07-29 02:38:56 +02:00 committed by GitHub
parent 5dd045e080
commit 8f8cd81c14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 92 additions and 0 deletions

84
frontend/locales/hu.json Normal file
View File

@ -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"
}
}
}

View File

@ -36,6 +36,10 @@ const PreferenceSection: React.FC = () => {
value: "RU",
label: "русский",
},
{
value: "HU",
label: "Magyar",
},
];
const colorThemeOptions = [

View File

@ -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",