mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Archivo ts con la traducción para el idioma español (#3274)
¿Qué problema resuelve este PR? Archivo TS para la traducción al idioma español Este archivo TS es un archivo de traducción que se utiliza para proporcionar soporte multilingüe en las aplicaciones. Al agregar la traducción al español, se facilita el cambio del idioma de la interfaz de usuario para los usuarios hispanohablantes. Tipo de cambio - [x] Nueva funcionalidad (cambio no disruptivo que agrega una nueva característica) ### What problem does this PR solve? This TS file is a translation file used to provide multilingual support in applications. By adding the Spanish translation, it facilitates changing the user interface language for Spanish-speaking users._ ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -3,6 +3,7 @@ import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
import { initReactI18next } from 'react-i18next';
|
||||
|
||||
import translation_en from './en';
|
||||
import translation_es from './es';
|
||||
import translation_id from './id';
|
||||
import translation_zh from './zh';
|
||||
import translation_zh_traditional from './zh-traditional';
|
||||
@ -11,6 +12,7 @@ const resources = {
|
||||
zh: translation_zh,
|
||||
'zh-TRADITIONAL': translation_zh_traditional,
|
||||
id: translation_id,
|
||||
es: translation_es,
|
||||
};
|
||||
|
||||
i18n
|
||||
@ -20,7 +22,7 @@ i18n
|
||||
detection: {
|
||||
lookupLocalStorage: 'lng',
|
||||
},
|
||||
supportedLngs: ['en', 'zh', 'zh-TRADITIONAL', 'id'],
|
||||
supportedLngs: ['en', 'zh', 'zh-TRADITIONAL', 'id', 'es'],
|
||||
resources,
|
||||
fallbackLng: 'en',
|
||||
interpolation: {
|
||||
|
||||
Reference in New Issue
Block a user