File tree 5 files changed +76
-2
lines changed
5 files changed +76
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export const APP_INFO: AppInfo = {
7
7
description : '' ,
8
8
copyright : '' ,
9
9
privacy_policy : '' ,
10
- default_language : 'zh-Hans ' ,
10
+ default_language : 'es ' ,
11
11
}
12
12
13
13
export const isShowPrompt = false
Original file line number Diff line number Diff line change 2
2
import i18n from 'i18next'
3
3
import { initReactI18next } from 'react-i18next'
4
4
import commonEn from './lang/common.en'
5
+ import commonEs from './lang/common.es'
5
6
import commonZh from './lang/common.zh'
6
7
import appEn from './lang/app.en'
8
+ import appEs from './lang/app.es'
7
9
import appZh from './lang/app.zh'
8
10
import type { Locale } from '.'
9
11
@@ -14,6 +16,12 @@ const resources = {
14
16
app : appEn ,
15
17
} ,
16
18
} ,
19
+ 'es' : {
20
+ translation : {
21
+ common : commonEs ,
22
+ app : appEs ,
23
+ } ,
24
+ } ,
17
25
'zh-Hans' : {
18
26
translation : {
19
27
common : commonZh ,
Original file line number Diff line number Diff line change 1
1
export const i18n = {
2
2
defaultLocale : 'en' ,
3
- locales : [ 'en' , 'zh-Hans' ] ,
3
+ locales : [ 'en' , 'es' , ' zh-Hans'] ,
4
4
} as const
5
5
6
6
export type Locale = typeof i18n [ 'locales' ] [ number ]
Original file line number Diff line number Diff line change
1
+ const translation = {
2
+ common : {
3
+ welcome : 'Bienvenido a usar' ,
4
+ appUnavailable : 'App es inaccesible' ,
5
+ appUnkonwError : 'App es inaccesible' ,
6
+ } ,
7
+ chat : {
8
+ newChat : 'Nuevo chat' ,
9
+ newChatDefaultName : 'Nueva conversación' ,
10
+ openingStatementTitle : 'Frase de apertura' ,
11
+ powerBy : 'Desarrollado por' ,
12
+ prompt : 'Prompt' ,
13
+ privatePromptConfigTitle : 'Ajustes de conversación' ,
14
+ publicPromptConfigTitle : 'Prompt inicial' ,
15
+ configStatusDes : 'Antes de comenzar, puede modificar la configuración de la conversación' ,
16
+ configDisabled :
17
+ 'La configuración de la sesión anterior se ha utilizado para esta sesión.' ,
18
+ startChat : 'Comenzar chat' ,
19
+ privacyPolicyLeft :
20
+ 'Por favor lea la ' ,
21
+ privacyPolicyMiddle :
22
+ 'política de privacidad' ,
23
+ privacyPolicyRight :
24
+ ' proporcionada por el desarrollador de la aplicación.' ,
25
+ } ,
26
+ errorMessage : {
27
+ valueOfVarRequired : 'El valor de las variables no puede estar vacío' ,
28
+ waitForResponse :
29
+ 'Por favor espere a que la respuesta al mensaje anterior se complete.' ,
30
+ } ,
31
+ }
32
+
33
+ export default translation
Original file line number Diff line number Diff line change
1
+ const translation = {
2
+ api : {
3
+ success : 'Éxito' ,
4
+ saved : 'Guardado' ,
5
+ create : 'Creado' ,
6
+ } ,
7
+ operation : {
8
+ confirm : 'Confirmar' ,
9
+ cancel : 'Cancelar' ,
10
+ clear : 'Limpiar' ,
11
+ save : 'Guardar' ,
12
+ edit : 'Editar' ,
13
+ refresh : 'Reiniciar' ,
14
+ search : 'Buscar' ,
15
+ send : 'Enviar' ,
16
+ lineBreak : 'Salto de línea' ,
17
+ like : 'Me gusta' ,
18
+ dislike : 'No me gusta' ,
19
+ ok : 'OK' ,
20
+ } ,
21
+ imageUploader : {
22
+ uploadFromComputer : 'Subir desde el ordenador' ,
23
+ uploadFromComputerReadError : 'La lectura de la imagen falló, por favor inténtelo de nuevo.' ,
24
+ uploadFromComputerUploadError : 'Error al subir la imagen, por favor inténtelo de nuevo.' ,
25
+ uploadFromComputerLimit : 'Las imágenes subidas no pueden superar los {{size}} MB' ,
26
+ pasteImageLink : 'Pegar enlace de imagen' ,
27
+ pasteImageLinkInputPlaceholder : 'Pegar enlace de imagen aquí' ,
28
+ pasteImageLinkInvalid : 'Enlace de imagen no válido' ,
29
+ imageUpload : 'Subir imagen' ,
30
+ } ,
31
+ }
32
+
33
+ export default translation
You can’t perform that action at this time.
0 commit comments