Skip to content

Commit

Permalink
translations
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Dec 15, 2024
1 parent e626b66 commit 61fd918
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@
"admin": {
"settings": {
"application": {
"siteName": "Site Name",
"description": "Customize the name of your site to better align with your brand"
"title": "Application",
"description": "Customize the application's appearance and behavior to better align with your brand"
},
"publicPages": {
"sectionTitle": "Public Pages",
Expand Down
4 changes: 4 additions & 0 deletions src/locales/es/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@
},
"admin": {
"settings": {
"application": {
"title": "Aplicación",
"description": "Personaliza la apariencia y el comportamiento de la aplicación para alinearla mejor con tu marca"
},
"publicPages": {
"sectionTitle": "Páginas Públicas",
"description": "Personaliza el texto que se muestra en tus páginas de inicio de sesión y registro para alinearlo mejor con tu marca o proporcionar instrucciones específicas a tus usuarios."
Expand Down
4 changes: 4 additions & 0 deletions src/locales/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@
},
"admin": {
"settings": {
"application": {
"title": "Application",
"description": "Personnalisez l'apparence et le comportement de l'application pour mieux correspondre à votre marque"
},
"publicPages": {
"sectionTitle": "Pages publiques",
"description": "Personnalisez le texte affiché sur vos pages de connexion et d'inscription pour mieux correspondre à votre marque ou fournir des instructions spécifiques à vos utilisateurs."
Expand Down
4 changes: 4 additions & 0 deletions src/locales/no/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@
},
"admin": {
"settings": {
"application": {
"title": "Applikasjon",
"description": "Tilpass applikasjonens utseende og oppførsel for å bedre tilpasse den til merkevaren din"
},
"publicPages": {
"sectionTitle": "Offentlige Sider",
"description": "Tilpass teksten som vises på innloggings- og registreringssidene dine for å bedre samsvare med merkevaren din eller gi spesifikke instruksjoner til brukerne dine."
Expand Down
4 changes: 4 additions & 0 deletions src/locales/pl/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@
},
"admin": {
"settings": {
"application": {
"title": "Aplikacja",
"description": "Dostosuj wygląd i zachowanie aplikacji, aby lepiej pasowała do Twojej marki"
},
"publicPages": {
"sectionTitle": "Strony startowe",
"description": "Dostosuj tekst wyświetlany na stronach logowania i rejestracji, aby lepiej pasował do Twojej marki lub zapewniał użytkownikom szczegółowe instrukcje."
Expand Down
4 changes: 4 additions & 0 deletions src/locales/ru/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@
},
"admin": {
"settings": {
"application": {
"title": "Приложение",
"description": "Настройте внешний вид и поведение приложения для лучшего соответствия вашему бренду"
},
"publicPages": {
"sectionTitle": "Публичные страницы",
"description": "Настройте текст, отображаемый на ваших страницах входа и регистрации, чтобы лучше соответствовать вашему бренду или предоставить специальные инструкции вашим пользователям."
Expand Down
4 changes: 4 additions & 0 deletions src/locales/zh-tw/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@
},
"admin": {
"settings": {
"application": {
"title": "應用程式",
"description": "自訂應用程式的外觀和行為,以更好地符合您的品牌"
},
"publicPages": {
"sectionTitle": "公開頁面",
"description": "自訂登入和註冊頁面上顯示的文字,以更好地與您的品牌保持一致或向您的使用者提供具體說明。"
Expand Down
4 changes: 4 additions & 0 deletions src/locales/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@
},
"admin": {
"settings": {
"application": {
"title": "应用",
"description": "自定义应用的外观和行为,以更好地匹配您的品牌"
},
"publicPages": {
"sectionTitle": "公共页面",
"description": "自定义登录和注册页面上显示的文本,以更好地与您的品牌保持一致或向您的用户提供具体说明。"
Expand Down
14 changes: 7 additions & 7 deletions src/pages/admin/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const Settings = () => {
isLoading: loadingOptions,
refetch: refetchOptions,
} = api.admin.getAllOptions.useQuery();

const { mutate: setWelcomeMessage } = api.admin.updateGlobalOptions.useMutation({
onSuccess: handleApiSuccess({ actions: [refetchOptions] }),
const { refetch: refetcUserhOptions } = api.settings.getAllOptions.useQuery();
const { mutate: setGlobalOptions } = api.admin.updateGlobalOptions.useMutation({
onSuccess: handleApiSuccess({ actions: [refetchOptions, refetcUserhOptions] }),
onError: handleApiError,
});

Expand All @@ -38,7 +38,7 @@ const Settings = () => {
return (
<main className="flex w-full flex-col justify-center space-y-10 bg-base-100 p-5 sm:p-3 xl:w-6/12">
<MenuSectionDividerWrapper
title={t("settings.application.siteName")}
title={t("settings.application.title")}
className="space-y-5"
>
<div className="text-sm text-gray-400">
Expand All @@ -61,7 +61,7 @@ const Settings = () => {
]}
submitHandler={(params) =>
new Promise((resolve) => {
setWelcomeMessage(params);
setGlobalOptions(params);
resolve(true);
})
}
Expand Down Expand Up @@ -92,7 +92,7 @@ const Settings = () => {
]}
submitHandler={(params) =>
new Promise((resolve) => {
setWelcomeMessage(params);
setGlobalOptions(params);
resolve(true);
})
}
Expand All @@ -116,7 +116,7 @@ const Settings = () => {
]}
submitHandler={(params) =>
new Promise((resolve) => {
setWelcomeMessage(params);
setGlobalOptions(params);
resolve(true);
})
}
Expand Down

0 comments on commit 61fd918

Please sign in to comment.