✨ Añade soporte para localización y traducción
- Incluye recursos Fluent básicos y pruebas asociadas. - Nueva variable de configuración global para definir el idioma predeterminado.
This commit is contained in:
parent
efc4839613
commit
208ad83bea
13 changed files with 780 additions and 3 deletions
5
src/locale/en-US/languages.ftl
Normal file
5
src/locale/en-US/languages.ftl
Normal file
|
@ -0,0 +1,5 @@
|
|||
english = English
|
||||
english_british = English (British)
|
||||
english_united_states = English (United States)
|
||||
spanish = Spanish
|
||||
spanish_spain = Spanish (Spain)
|
11
src/locale/en-US/test.ftl
Normal file
11
src/locale/en-US/test.ftl
Normal file
|
@ -0,0 +1,11 @@
|
|||
test-hello-world = Hello world!
|
||||
test-hello-user = Hello, { $userName }!
|
||||
test-shared-photos =
|
||||
{ $userName } { $photoCount ->
|
||||
[one] added a new photo
|
||||
*[other] added { $photoCount } new photos
|
||||
} of { $userGender ->
|
||||
[male] him and his family
|
||||
[female] her and her family
|
||||
*[other] their family
|
||||
}.
|
5
src/locale/es-ES/languages.ftl
Normal file
5
src/locale/es-ES/languages.ftl
Normal file
|
@ -0,0 +1,5 @@
|
|||
english = Inglés
|
||||
english_british = Inglés (Gran Bretaña)
|
||||
english_united_states = Inglés (Estados Unidos)
|
||||
spanish = Español
|
||||
spanish_spain = Español (España)
|
11
src/locale/es-ES/test.ftl
Normal file
11
src/locale/es-ES/test.ftl
Normal file
|
@ -0,0 +1,11 @@
|
|||
test-hello-world = ¡Hola mundo!
|
||||
test-hello-user = ¡Hola, { $userName }!
|
||||
test-shared-photos =
|
||||
{ $userName } { $photoCount ->
|
||||
[one] ha añadido una nueva foto
|
||||
*[other] ha añadido { $photoCount } nuevas fotos
|
||||
} de { $userGender ->
|
||||
[male] él y su familia
|
||||
[female] ella y su familia
|
||||
*[other] la familia
|
||||
}.
|
Loading…
Add table
Add a link
Reference in a new issue