Update i18n.js
This commit is contained in:
+2
-2
@@ -12,7 +12,7 @@ let currentLocale =
|
|||||||
'en';
|
'en';
|
||||||
|
|
||||||
// Supported locales
|
// Supported locales
|
||||||
const supportedLocales = ['en', 'es'];
|
const supportedLocales = ['en', 'es', 'zh'];
|
||||||
|
|
||||||
// Fallback to English if locale is not supported
|
// Fallback to English if locale is not supported
|
||||||
if (!supportedLocales.includes(currentLocale)) {
|
if (!supportedLocales.includes(currentLocale)) {
|
||||||
@@ -267,4 +267,4 @@ window.i18n = {
|
|||||||
getSupportedLocales,
|
getSupportedLocales,
|
||||||
translatePage,
|
translatePage,
|
||||||
isLoaded: () => translationsLoaded
|
isLoaded: () => translationsLoaded
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user