added russian language issue #86
This commit is contained in:
@@ -11,6 +11,7 @@ import itMessages from '@/locales/it/common.json';
|
|||||||
import deMessages from '@/locales/de/common.json';
|
import deMessages from '@/locales/de/common.json';
|
||||||
import nlMessages from '@/locales/nl/common.json';
|
import nlMessages from '@/locales/nl/common.json';
|
||||||
import ptMessages from '@/locales/pt/common.json';
|
import ptMessages from '@/locales/pt/common.json';
|
||||||
|
import ruMessages from '@/locales/ru/common.json';
|
||||||
|
|
||||||
// Pre-loaded translations (loaded at build time, not runtime)
|
// Pre-loaded translations (loaded at build time, not runtime)
|
||||||
const ALL_MESSAGES = {
|
const ALL_MESSAGES = {
|
||||||
@@ -22,6 +23,7 @@ const ALL_MESSAGES = {
|
|||||||
de: deMessages,
|
de: deMessages,
|
||||||
nl: nlMessages,
|
nl: nlMessages,
|
||||||
pt: ptMessages,
|
pt: ptMessages,
|
||||||
|
ru: ruMessages,
|
||||||
};
|
};
|
||||||
|
|
||||||
interface IntlProviderProps {
|
interface IntlProviderProps {
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ export function LanguageSwitcher({ className }: { className?: string }) {
|
|||||||
{ value: 'it', label: 'Italiano' },
|
{ value: 'it', label: 'Italiano' },
|
||||||
{ value: 'de', label: 'Deutsch' },
|
{ value: 'de', label: 'Deutsch' },
|
||||||
{ value: 'nl', label: 'Nederlands' },
|
{ value: 'nl', label: 'Nederlands' },
|
||||||
{ value: 'pt', label: 'Português' }
|
{ value: 'pt', label: 'Português' },
|
||||||
|
{ value: 'ru', label: 'Русский' }
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ export default getRequestConfig(async ({ requestLocale }) => {
|
|||||||
case 'pt':
|
case 'pt':
|
||||||
messages = (await import('../locales/pt/common.json')).default;
|
messages = (await import('../locales/pt/common.json')).default;
|
||||||
break;
|
break;
|
||||||
|
case 'ru':
|
||||||
|
messages = (await import('../locales/ru/common.json')).default;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
messages = (await import('../locales/en/common.json')).default;
|
messages = (await import('../locales/en/common.json')).default;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import { defineRouting } from 'next-intl/routing';
|
import { defineRouting } from 'next-intl/routing';
|
||||||
|
|
||||||
export const routing = defineRouting({
|
export const routing = defineRouting({
|
||||||
locales: ['en', 'fr', 'de', 'es', 'it', 'ja', 'nl', 'pt'],
|
locales: ['en', 'fr', 'de', 'es', 'it', 'ja', 'nl', 'pt', 'ru'],
|
||||||
defaultLocale: 'en',
|
defaultLocale: 'en',
|
||||||
localePrefix: 'never'
|
localePrefix: 'never'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -583,6 +583,7 @@
|
|||||||
"german": "Deutsch",
|
"german": "Deutsch",
|
||||||
"dutch": "Nederlands",
|
"dutch": "Nederlands",
|
||||||
"portuguese": "Português",
|
"portuguese": "Português",
|
||||||
|
"russian": "Russisch",
|
||||||
"select_language": "Sprache auswählen",
|
"select_language": "Sprache auswählen",
|
||||||
"switch_to_english": "Zu Englisch wechseln",
|
"switch_to_english": "Zu Englisch wechseln",
|
||||||
"switch_to_french": "Zu Französisch wechseln",
|
"switch_to_french": "Zu Französisch wechseln",
|
||||||
@@ -592,6 +593,7 @@
|
|||||||
"switch_to_german": "Zu Deutsch wechseln",
|
"switch_to_german": "Zu Deutsch wechseln",
|
||||||
"switch_to_dutch": "Zu Niederländisch wechseln",
|
"switch_to_dutch": "Zu Niederländisch wechseln",
|
||||||
"switch_to_portuguese": "Zu Portugiesisch wechseln",
|
"switch_to_portuguese": "Zu Portugiesisch wechseln",
|
||||||
|
"switch_to_russian": "Zu Russisch wechseln",
|
||||||
"switching": "Sprache wird gewechselt..."
|
"switching": "Sprache wird gewechselt..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
@@ -2329,3 +2331,4 @@
|
|||||||
"quota_desc": "Verfolgen Sie Ihre Postfachgröße hier. Der Kreis füllt sich mit zunehmendem Verbrauch."
|
"quota_desc": "Verfolgen Sie Ihre Postfachgröße hier. Der Kreis füllt sich mit zunehmendem Verbrauch."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -583,6 +583,7 @@
|
|||||||
"german": "Deutsch",
|
"german": "Deutsch",
|
||||||
"dutch": "Nederlands",
|
"dutch": "Nederlands",
|
||||||
"portuguese": "Português",
|
"portuguese": "Português",
|
||||||
|
"russian": "Russian",
|
||||||
"select_language": "Select language",
|
"select_language": "Select language",
|
||||||
"switch_to_english": "Switch to English",
|
"switch_to_english": "Switch to English",
|
||||||
"switch_to_french": "Switch to French",
|
"switch_to_french": "Switch to French",
|
||||||
@@ -592,6 +593,7 @@
|
|||||||
"switch_to_german": "Switch to German",
|
"switch_to_german": "Switch to German",
|
||||||
"switch_to_dutch": "Switch to Dutch",
|
"switch_to_dutch": "Switch to Dutch",
|
||||||
"switch_to_portuguese": "Switch to Portuguese",
|
"switch_to_portuguese": "Switch to Portuguese",
|
||||||
|
"switch_to_russian": "Switch to Russian",
|
||||||
"switching": "Changing language..."
|
"switching": "Changing language..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
@@ -2374,3 +2376,4 @@
|
|||||||
"quota_desc": "Track your mailbox size here. The circle fills up as you use more space."
|
"quota_desc": "Track your mailbox size here. The circle fills up as you use more space."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -583,6 +583,7 @@
|
|||||||
"german": "Deutsch",
|
"german": "Deutsch",
|
||||||
"dutch": "Nederlands",
|
"dutch": "Nederlands",
|
||||||
"portuguese": "Português",
|
"portuguese": "Português",
|
||||||
|
"russian": "Ruso",
|
||||||
"select_language": "Seleccionar idioma",
|
"select_language": "Seleccionar idioma",
|
||||||
"switch_to_english": "Cambiar a inglés",
|
"switch_to_english": "Cambiar a inglés",
|
||||||
"switch_to_french": "Cambiar a francés",
|
"switch_to_french": "Cambiar a francés",
|
||||||
@@ -592,6 +593,7 @@
|
|||||||
"switch_to_german": "Cambiar a alemán",
|
"switch_to_german": "Cambiar a alemán",
|
||||||
"switch_to_dutch": "Cambiar a neerlandés",
|
"switch_to_dutch": "Cambiar a neerlandés",
|
||||||
"switch_to_portuguese": "Cambiar a portugués",
|
"switch_to_portuguese": "Cambiar a portugués",
|
||||||
|
"switch_to_russian": "Cambiar a ruso",
|
||||||
"switching": "Cambiando idioma..."
|
"switching": "Cambiando idioma..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
@@ -2329,3 +2331,4 @@
|
|||||||
"quota_desc": "Controla el tamaño de tu buzón aquí. El círculo se llena a medida que usas más espacio."
|
"quota_desc": "Controla el tamaño de tu buzón aquí. El círculo se llena a medida que usas más espacio."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -583,6 +583,7 @@
|
|||||||
"german": "Deutsch",
|
"german": "Deutsch",
|
||||||
"dutch": "Nederlands",
|
"dutch": "Nederlands",
|
||||||
"portuguese": "Português",
|
"portuguese": "Português",
|
||||||
|
"russian": "Russe",
|
||||||
"select_language": "Sélectionner la langue",
|
"select_language": "Sélectionner la langue",
|
||||||
"switch_to_english": "Passer à l'anglais",
|
"switch_to_english": "Passer à l'anglais",
|
||||||
"switch_to_french": "Passer au français",
|
"switch_to_french": "Passer au français",
|
||||||
@@ -592,6 +593,7 @@
|
|||||||
"switch_to_german": "Passer à l'allemand",
|
"switch_to_german": "Passer à l'allemand",
|
||||||
"switch_to_dutch": "Passer au néerlandais",
|
"switch_to_dutch": "Passer au néerlandais",
|
||||||
"switch_to_portuguese": "Passer au portugais",
|
"switch_to_portuguese": "Passer au portugais",
|
||||||
|
"switch_to_russian": "Passer au russe",
|
||||||
"switching": "Changement de langue..."
|
"switching": "Changement de langue..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
@@ -2329,3 +2331,4 @@
|
|||||||
"quota_desc": "Suivez la taille de votre boîte mail ici. Le cercle se remplit au fur et à mesure que vous utilisez plus d'espace."
|
"quota_desc": "Suivez la taille de votre boîte mail ici. Le cercle se remplit au fur et à mesure que vous utilisez plus d'espace."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -583,6 +583,7 @@
|
|||||||
"german": "Deutsch",
|
"german": "Deutsch",
|
||||||
"dutch": "Nederlands",
|
"dutch": "Nederlands",
|
||||||
"portuguese": "Português",
|
"portuguese": "Português",
|
||||||
|
"russian": "Russo",
|
||||||
"select_language": "Seleziona lingua",
|
"select_language": "Seleziona lingua",
|
||||||
"switch_to_english": "Passa all'inglese",
|
"switch_to_english": "Passa all'inglese",
|
||||||
"switch_to_french": "Passa al francese",
|
"switch_to_french": "Passa al francese",
|
||||||
@@ -592,6 +593,7 @@
|
|||||||
"switch_to_german": "Passa al tedesco",
|
"switch_to_german": "Passa al tedesco",
|
||||||
"switch_to_dutch": "Passa all'olandese",
|
"switch_to_dutch": "Passa all'olandese",
|
||||||
"switch_to_portuguese": "Passa al portoghese",
|
"switch_to_portuguese": "Passa al portoghese",
|
||||||
|
"switch_to_russian": "Passa al russo",
|
||||||
"switching": "Cambio lingua in corso..."
|
"switching": "Cambio lingua in corso..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
@@ -2329,3 +2331,4 @@
|
|||||||
"quota_desc": "Monitora le dimensioni della tua casella qui. Il cerchio si riempie man mano che utilizzi più spazio."
|
"quota_desc": "Monitora le dimensioni della tua casella qui. Il cerchio si riempie man mano che utilizzi più spazio."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -583,6 +583,7 @@
|
|||||||
"german": "Deutsch",
|
"german": "Deutsch",
|
||||||
"dutch": "Nederlands",
|
"dutch": "Nederlands",
|
||||||
"portuguese": "Português",
|
"portuguese": "Português",
|
||||||
|
"russian": "ロシア語",
|
||||||
"select_language": "言語を選択",
|
"select_language": "言語を選択",
|
||||||
"switch_to_english": "英語に切り替え",
|
"switch_to_english": "英語に切り替え",
|
||||||
"switch_to_french": "フランス語に切り替え",
|
"switch_to_french": "フランス語に切り替え",
|
||||||
@@ -592,6 +593,7 @@
|
|||||||
"switch_to_german": "ドイツ語に切り替え",
|
"switch_to_german": "ドイツ語に切り替え",
|
||||||
"switch_to_dutch": "オランダ語に切り替え",
|
"switch_to_dutch": "オランダ語に切り替え",
|
||||||
"switch_to_portuguese": "ポルトガル語に切り替え",
|
"switch_to_portuguese": "ポルトガル語に切り替え",
|
||||||
|
"switch_to_russian": "ロシア語に切り替え",
|
||||||
"switching": "言語を変更中..."
|
"switching": "言語を変更中..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
@@ -2329,3 +2331,4 @@
|
|||||||
"quota_desc": "メールボックスのサイズをここで確認できます。使用量が増えるとサークルが満たされます。"
|
"quota_desc": "メールボックスのサイズをここで確認できます。使用量が増えるとサークルが満たされます。"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -583,6 +583,7 @@
|
|||||||
"german": "Deutsch",
|
"german": "Deutsch",
|
||||||
"dutch": "Nederlands",
|
"dutch": "Nederlands",
|
||||||
"portuguese": "Português",
|
"portuguese": "Português",
|
||||||
|
"russian": "Russisch",
|
||||||
"select_language": "Selecteer taal",
|
"select_language": "Selecteer taal",
|
||||||
"switch_to_english": "Overschakelen naar Engels",
|
"switch_to_english": "Overschakelen naar Engels",
|
||||||
"switch_to_french": "Overschakelen naar Frans",
|
"switch_to_french": "Overschakelen naar Frans",
|
||||||
@@ -592,6 +593,7 @@
|
|||||||
"switch_to_german": "Overschakelen naar Duits",
|
"switch_to_german": "Overschakelen naar Duits",
|
||||||
"switch_to_dutch": "Overschakelen naar Nederlands",
|
"switch_to_dutch": "Overschakelen naar Nederlands",
|
||||||
"switch_to_portuguese": "Overschakelen naar Portugees",
|
"switch_to_portuguese": "Overschakelen naar Portugees",
|
||||||
|
"switch_to_russian": "Overschakelen naar Russisch",
|
||||||
"switching": "Taal wijzigen..."
|
"switching": "Taal wijzigen..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
@@ -2329,3 +2331,4 @@
|
|||||||
"quota_desc": "Volg de grootte van uw mailbox hier. De cirkel vult zich naarmate u meer ruimte gebruikt."
|
"quota_desc": "Volg de grootte van uw mailbox hier. De cirkel vult zich naarmate u meer ruimte gebruikt."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -583,6 +583,7 @@
|
|||||||
"german": "Deutsch",
|
"german": "Deutsch",
|
||||||
"dutch": "Nederlands",
|
"dutch": "Nederlands",
|
||||||
"portuguese": "Português",
|
"portuguese": "Português",
|
||||||
|
"russian": "Russo",
|
||||||
"select_language": "Selecionar idioma",
|
"select_language": "Selecionar idioma",
|
||||||
"switch_to_english": "Mudar para Inglês",
|
"switch_to_english": "Mudar para Inglês",
|
||||||
"switch_to_french": "Mudar para Francês",
|
"switch_to_french": "Mudar para Francês",
|
||||||
@@ -592,6 +593,7 @@
|
|||||||
"switch_to_german": "Mudar para Alemão",
|
"switch_to_german": "Mudar para Alemão",
|
||||||
"switch_to_dutch": "Mudar para Holandês",
|
"switch_to_dutch": "Mudar para Holandês",
|
||||||
"switch_to_portuguese": "Mudar para Português",
|
"switch_to_portuguese": "Mudar para Português",
|
||||||
|
"switch_to_russian": "Mudar para Russo",
|
||||||
"switching": "Alterando idioma..."
|
"switching": "Alterando idioma..."
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
@@ -2329,3 +2331,4 @@
|
|||||||
"quota_desc": "Acompanhe o tamanho da sua caixa de correio aqui. O círculo preenche-se à medida que utiliza mais espaço."
|
"quota_desc": "Acompanhe o tamanho da sua caixa de correio aqui. O círculo preenche-se à medida que utiliza mais espaço."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user