Support multilingual mode (experimental)

Please report any bugs!
This commit is contained in:
2021-10-11 18:24:14 -05:00
parent 03834fb1ba
commit c7cfb9c844
12 changed files with 88 additions and 14 deletions

31
i18n/en.toml Normal file
View File

@ -0,0 +1,31 @@
[credit_comment]
other = "<!-- bobatheme is available under the MIT license at https://github.com/BBaoVanC/bobatheme. -->"
[long_date]
other = "{{ .Date.Format `January 2, 2006` }}"
[wordcount]
one = "{{ . }} word"
other = "{{ . }} words"
[readingtime]
one = "{{ . }} min"
other = "{{ . }} mins"
[read_more]
other = "Read more"
[browser_no_video_support]
other = "Your browser does not support video."
[filtering_for]
other = "Filtering for \"{{ . }}\""
[no_posts]
other = "No posts here!"
[table_of_contents]
other = "Table of Contents"

31
i18n/es.toml Normal file
View File

@ -0,0 +1,31 @@
[credit_comment]
other = "<!-- bobatheme está en GitHub con la licencia MIT a https://github.com/BBaoVanC/bobatheme. -->"
[long_date]
other = "{{ .Date.Day }} de {{ index .Data.meses (printf `%d` .Date.Month) }} de {{ .Date.Year }}"
[wordcount]
one = "{{ . }} palabra"
other = "{{ . }} palabras"
[readingtime]
one = "{{ . }} min"
other = "{{ . }} mins"
[read_more]
other = "Leer más"
[browser_no_video_support]
other = "Tu navegador de internet no admite video."
[filtering_for]
other = "Filtrando por \"{{ . }}\""
[no_posts]
other = "¡No páginas aquí!"
[table_of_contents]
other = "Índice"