Skip to content

Commit

Permalink
ar(feat) [DPCP-37]: Localization Part 2: Dictionaries (#42)
Browse files Browse the repository at this point in the history
* ar(feat) [DPCP-37]: Localization

* ar(feat) [DPCP-37]: Localization

* ar(feat) [DPCP-37]: Localization

* ar(feat) [DPCP-37]: Localization

* ar(feat) [DPCP-37]: Localization

* ar(feat) [DPCP-37]: Localization

* ar(feat) [DPCP-37]: Localization

* ar(feat) [DPCP-37]: Localization

* ar(feat) [DPCP-37]: Localization

* ar(feat) [DPCP-37]: Localization

* ar(feat) [DPCP-37]: Localization

* ar(feat) [DPCP-37]: Localization
  • Loading branch information
angeloreale authored Aug 21, 2024
1 parent 6e68b88 commit 9a5d2bd
Show file tree
Hide file tree
Showing 65 changed files with 532 additions and 139 deletions.
15 changes: 15 additions & 0 deletions lib/dictionaries/global/cs-cz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"NavBar": {
"welcome": "Vítejte"
},
"SignIn": {
"continue": "Pokračovat",
"continue with": "Pokračovat s",
"sign in": "Přihlásit",
"sign out": "Odhlásit",
"your email": "Váš e-mail"
},
"CardGrid": {
"staff picks": "Výběr zaměstnanců"
}
}
15 changes: 15 additions & 0 deletions lib/dictionaries/global/de-de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"NavBar": {
"welcome": "Willkommen"
},
"SignIn": {
"continue": "Weiter",
"continue with": "Weiter mit",
"sign in": "Anmelden",
"sign out": "Abmelden",
"your email": "Deine E-Mail"
},
"CardGrid": {
"staff picks": "Auswahl des Personals"
}
}
15 changes: 15 additions & 0 deletions lib/dictionaries/global/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"NavBar": {
"welcome": "Welcome"
},
"SignIn": {
"continue": "Continue",
"continue with": "Continue with",
"sign in": "Sign in",
"sign out": "Sign out",
"your email": "Your email"
},
"CardGrid": {
"staff picks": "Staff Picks"
}
}
14 changes: 14 additions & 0 deletions lib/dictionaries/global/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"NavBar": {
"welcome": "Welcome"
},
"SignIn": {
"continue": "Continue",
"continue with": "Continue with",
"sign in": "Sign in",
"sign out": "Sign out"
},
"CardGrid": {
"staff picks": "Staff Picks"
}
}
15 changes: 15 additions & 0 deletions lib/dictionaries/global/es-es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"NavBar": {
"welcome": "Bienvenido"
},
"SignIn": {
"continue": "Continuar",
"continue with": "Continuar con",
"sign in": "Iniciar sesión",
"sign out": "Cerrar sesión",
"your email": "Tu correo electrónico"
},
"CardGrid": {
"staff picks": "Selecciones del personal"
}
}
15 changes: 15 additions & 0 deletions lib/dictionaries/global/et-ee.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"NavBar": {
"welcome": "Tere tulemast"
},
"SignIn": {
"continue": "Jätka",
"continue with": "Jätka",
"sign in": "Logi sisse",
"sign out": "Logi välja",
"your email": "Sinu e-post"
},
"CardGrid": {
"staff picks": "Töötajate valikud"
}
}
15 changes: 15 additions & 0 deletions lib/dictionaries/global/fr-fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"NavBar": {
"welcome": "Bienvenue"
},
"SignIn": {
"continue": "Continuer",
"continue with": "Continuer avec",
"sign in": "Se connecter",
"sign out": "Se déconnecter",
"your email": "Votre adresse e-mail"
},
"CardGrid": {
"staff picks": "Choix du personnel"
}
}
15 changes: 15 additions & 0 deletions lib/dictionaries/global/it-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"NavBar": {
"welcome": "Benvenuto"
},
"SignIn": {
"continue": "Prosegue",
"continue with": "Prosegue con",
"sign in": "Accedi",
"sign out": "Scollega",
"your email": "La sua mail"
},
"CardGrid": {
"staff picks": "Preferiti dello Staff"
}
}
15 changes: 15 additions & 0 deletions lib/dictionaries/global/ja-jp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"NavBar": {
"welcome": "ようこそ"
},
"SignIn": {
"continue": "続行",
"continue with": "続行する",
"sign in": "サインイン",
"sign out": "ログアウト",
"your email": "あなたのメール"
},
"CardGrid": {
"staff picks": "スタッフおすすめ"
}
}
15 changes: 15 additions & 0 deletions lib/dictionaries/global/pl-pl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"NavBar": {
"welcome": "Witaj"
},
"SignIn": {
"continue": "Kontynuuj",
"continue with": "Kontynuuj z",
"sign in": "Zaloguj się",
"sign out": "Wyloguj się",
"your email": "Twój adres email"
},
"CardGrid": {
"staff picks": "Wybór pracowników"
}
}
11 changes: 11 additions & 0 deletions lib/dictionaries/global/pt-br.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"NavBar": { "welcome": "Bem-vindo" },
"SignIn": {
"continue": "Continuar",
"continue with": "Continuar com",
"sign in": "Entrar",
"sign out": "Sair",
"your email": "Seu email"
},
"CardGrid": { "staff picks": "Escolhas da Equipe" }
}
15 changes: 15 additions & 0 deletions lib/dictionaries/global/ro.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"NavBar": {
"welcome": "Bine ai venit"
},
"SignIn": {
"continue": "Continuați",
"continue with": "Continuați cu",
"sign in": "Conectați-vă",
"sign out": "Deconectați-vă",
"your email": "Adresa ta de email"
},
"CardGrid": {
"staff picks": "Alegerile personalului"
}
}
15 changes: 15 additions & 0 deletions lib/dictionaries/global/ru-ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"NavBar": {
"welcome": "Добро пожаловать"
},
"SignIn": {
"continue": "Продолжить",
"continue with": "Продолжить с",
"sign in": "Войти",
"sign out": "Выйти",
"your email": "Ваш электронный адрес"
},
"CardGrid": {
"staff picks": "Выбор персонала"
}
}
15 changes: 15 additions & 0 deletions lib/dictionaries/global/sv-se.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"NavBar": {
"welcome": "Välkommen"
},
"SignIn": {
"continue": "Fortsätt",
"continue with": "Fortsätt med",
"sign in": "Logga in",
"sign out": "Logga ut",
"your email": "Din e-post"
},
"CardGrid": {
"staff picks": "Personals val"
}
}
2 changes: 1 addition & 1 deletion lib/state/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function RootProviders({ children, locale }: { children: React.ReactNode;
const [globalState, setGlobalState] = useState<IGlobalContext>({ ...globalContext, locale });
const init = useRef(false);

const [storedGlobal, setStoredGlobal] = useLocalStorage('globalSettings', { theme: 'dark' });
const [storedGlobal, setStoredGlobal] = useLocalStorage('globalSettings', { theme: 'dark', locale });

const handleGlobalSettingUpdate = (next: any) => {
setGlobalState(next);
Expand Down
5 changes: 4 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/** @type {import('next').NextConfig} */
const { withSentryConfig } = require('@sentry/nextjs');
const createNextIntlPlugin = require('next-intl/plugin');
const withNextIntl = createNextIntlPlugin('./src/app/[locale]/i18n.ts');

const nextConfig = {
assetPrefix: process.env.NEXUS_HOST || 'https://nyx.dreampip.com',
transpilePackages: ['next-auth'],
Expand Down Expand Up @@ -37,7 +40,7 @@ const nextConfig = {
},
};

module.exports = nextConfig;
module.exports = withNextIntl(nextConfig);

module.exports = withSentryConfig(
module.exports,
Expand Down
105 changes: 105 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9a5d2bd

Please sign in to comment.