diff options
author | Alexandre Negrel <negrel.dev@protonmail.com> | 2020-12-24 00:10:59 +0300 |
---|---|---|
committer | Alexandre Negrel <negrel.dev@protonmail.com> | 2020-12-24 00:10:59 +0300 |
commit | 411417132ea540c8cebde2342935206c6b3a8612 (patch) | |
tree | 712b745d6b8d043abd7acc95937906c81a260b49 | |
parent | deb9f37c3459b62fd86d58b7e395341125ec8481 (diff) | |
parent | d68f392a191857112b2fa6ab1534b091ee831962 (diff) |
Merge branch 'master' of https://github.com/negrel/hugo-theme-pico
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | exampleSite/config.toml | 7 | ||||
-rw-r--r-- | i18n/es.toml | 56 |
3 files changed, 64 insertions, 1 deletions
@@ -82,7 +82,7 @@ hugo server Your website is running :smile:, you can start editing content files. ### Multilingual -Pico currently ships with support for 2 languages (fr, en). Contributions for other language translations are welcome. +Pico currently ships with support for 4 languages (fr, en, it, es). Contributions for other language translations are welcome. To create a new language translation, add the .toml file to the i18n/ folder. See the existing files for the necessary fields. See the [hugo documentation](https://gohugo.io/content-management/multilingual/) for more details. diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1829153..ad95f87 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -118,3 +118,10 @@ weight = 2 # languageCode = 'it' # languageName = 'Italiano' # weight = 3 + +# Uncomment the following lines to add an spanish translation. +# [languages.es] +# contentDir = 'content/es' +# languageCode = 'es' +# languageName = 'Español' +# weight = 4 diff --git a/i18n/es.toml b/i18n/es.toml new file mode 100644 index 0000000..9265c1b --- /dev/null +++ b/i18n/es.toml @@ -0,0 +1,56 @@ +[tagged_in] +other = "Etiquetado en" + +[other_tags] +other = "Otras etiquetas" + +[read_more] +other = "Leer más" + +[name] +other = "Nombre" + +[your_message] +other = "Tu mensaje" + +[cancel] +other = "Cancelar" + +[submit] +other = "Enviar" + +[previous] +other = "Anterior" + +[next] +other = "Siguiente" + +[back] +other = "Atras" + +[contact] +other = "Contacto" + +[contact_email] +other = "Contactar por email" + +[latest_post] +other = "Última publicación" + +[reading_time] +other = "{{ .ReadingTime }} minutos de lectura" + +[home] +other = "Inicio" + +[about] +other = "Sobre mí" + +[blog] +other = "Blog" + +[present] +other = "Hoy" + +[required_fields] +other = "Campos requeridos" |