i18n: initial spanish translation
Signed-off-by: José Luis Di Biase <josx@interorganic.com.ar>
This commit is contained in:
@@ -8,6 +8,7 @@ import { ml } from "./lang/ml";
|
||||
import { zh } from "./lang/zh";
|
||||
import { ja } from "./lang/ja";
|
||||
import { it } from "./lang/it";
|
||||
import { es } from "./lang/es";
|
||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
|
||||
i18n
|
||||
@@ -16,6 +17,7 @@ i18n
|
||||
.init({
|
||||
resources: {
|
||||
en: en,
|
||||
es: es,
|
||||
fr: fr,
|
||||
"it": it,
|
||||
ml: ml,
|
||||
@@ -31,4 +33,4 @@ i18n
|
||||
lng: localStorage.getItem("i18nextLng") || "en",
|
||||
})
|
||||
|
||||
export default i18n;
|
||||
export default i18n;
|
||||
|
||||
15
src/i18n/lang/es.ts
Normal file
15
src/i18n/lang/es.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import option from "@/assets/locale/es/option.json";
|
||||
import playground from "@/assets/locale/es/playground.json";
|
||||
import common from "@/assets/locale/es/common.json";
|
||||
import sidepanel from "@/assets/locale/es/sidepanel.json";
|
||||
import settings from "@/assets/locale/es/settings.json";
|
||||
import knowledge from "@/assets/locale/es/knowledge.json";
|
||||
|
||||
export const es = {
|
||||
option,
|
||||
playground,
|
||||
common,
|
||||
sidepanel,
|
||||
settings,
|
||||
knowledge
|
||||
}
|
||||
@@ -4,6 +4,10 @@ export const supportLanguage = [
|
||||
label: "English",
|
||||
value: "en"
|
||||
},
|
||||
{
|
||||
label: "Español",
|
||||
value: "es"
|
||||
},
|
||||
{
|
||||
label: "Français",
|
||||
value: "fr"
|
||||
@@ -19,7 +23,7 @@ export const supportLanguage = [
|
||||
{
|
||||
label: "Português (Brasil)",
|
||||
value: "pt-BR"
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "മലയാളം",
|
||||
value: "ml"
|
||||
@@ -32,4 +36,4 @@ export const supportLanguage = [
|
||||
label: "日本語",
|
||||
value: "ja-JP"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user