Skip to content

Commit

Permalink
Translate titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebelung-Dev committed Jan 21, 2024
1 parent 1d34b24 commit 7dc2a35
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 7 deletions.
6 changes: 6 additions & 0 deletions src/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"title": "الصفحة غير موجودة",
"text": "الصفحة التي تبحث عنها لا يمكن العثور عليها."
},
"title": {
"apps": "تطبيقات",
"games": "ألعاب",
"settings": "إعدادات",
"notFound": "غير معثور عليه"
},
"nav": {
"home": "بيت",
"apps": "تطبيقات",
Expand Down
6 changes: 6 additions & 0 deletions src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"title": "Seite nicht gefunden",
"text": "Die gesuchte Seite konnte nicht gefunden werden."
},
"title": {
"apps": "Apps",
"games": "Spiele",
"settings": "Einstellungen",
"notFound": "Nicht gefunden"
},
"nav": {
"home": "Heim",
"apps": "Apps",
Expand Down
6 changes: 6 additions & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"title": "Page Not Found",
"text": "The page you are looking for could not be found."
},
"title": {
"apps": "Apps",
"games": "Games",
"settings": "Settings",
"notFound": "Not Found"
},
"nav": {
"home": "Home",
"apps": "Apps",
Expand Down
6 changes: 6 additions & 0 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"title": "Página no encontrada",
"text": "No se pudo encontrar la página que estás buscando."
},
"title": {
"apps": "Aplicaciones",
"games": "Juegos",
"settings": "Ajustes",
"notFound": "Extraviado"
},
"nav": {
"home": "Hogar",
"apps": "Aplicaciones",
Expand Down
16 changes: 11 additions & 5 deletions src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@
"title": "Page non trouvée",
"text": "La page que vous recherchez est introuvable."
},
"title": {
"apps": "Applications",
"games": "Jeux",
"settings": "Paramètres",
"notFound": "Pas trouvé"
},
"nav": {
"home": "Domicile",
"apps": "Apps",
"home": "Maison",
"apps": "Applications",
"games": "Jeux",
"settings": "Paramètres"
},
"settings": {
"tabs": {
"search": "Recherche",
"tab": "Onglet",
"tab": "Languette",
"appearance": "Apparence",
"locale": "Langue"
"locale": "Lieu"
},
"search": {
"service": {
Expand All @@ -41,7 +47,7 @@
},
"locale": {
"locale": {
"title": "Langue"
"title": "Lieu"
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"title": "पृष्ठ नहीं मिला",
"text": "आप जिस पृष्ठ की तलाश कर रहे हैं वह नहीं मिल सका।"
},
"title": {
"apps": "ऐप्स",
"games": "खेल",
"settings": "समायोजन",
"notFound": "नहीं मिला"
},
"nav": {
"home": "घर",
"apps": "ऐप्स",
Expand Down
6 changes: 6 additions & 0 deletions src/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"title": "Pagina niet gevonden",
"text": "De pagina die u zoekt, kan niet worden gevonden."
},
"title": {
"apps": "Apps",
"games": "Spellen",
"settings": "Instellingen",
"notFound": "Niet gevonden"
},
"nav": {
"home": "Thuis",
"apps": "Apps",
Expand Down
6 changes: 6 additions & 0 deletions src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"title": "找不到网页",
"text": "无法找到您要查找的页面。"
},
"title": {
"apps": "应用",
"games": "游戏",
"settings": "设置",
"notFound": "未找到"
},
"nav": {
"home": "",
"apps": "应用",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Error() {

return (
<>
<Head pageTitle="Not Found" />
<Head pageTitle={t("title.notFound")} />
<section class="flex flex-col items-center mt-32">
<h1 class="text-4xl font-bold mb-8">{t("404.title")}</h1>
<p>{t("404.text")}</p>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Settings() {

return (
<>
<Head pageTitle="Settings" />
<Head pageTitle={t("title.settings")} />
<div class="flex gap-7">
<aside class="flex flex-col gap-4 sticky top-[108px] self-start">
<Link activeClassName="bg-secondary text-textInverse settingsButtonActive" class="settingsButton rounded-lg px-4 py-2 select-none cursor-pointer h-10 flex items-center gap-1.5 w-auto sm:w-72" href="/settings/search">
Expand Down

0 comments on commit 7dc2a35

Please sign in to comment.