write book in spanish
According to https://anhhoangduc.com/post/writing-a-book-with-bookdown-in-foreign-languages/ we should be able to update https://github.com/ioos/bio_data_guide/blob/main/bio-data-guide/preamble.tex with
\usepackage{booktabs}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
and all will be good? 😜
Good question! It looks very simple but I would like to discover the truth!!! : )
Google provides an API https://cloud.google.com/translate/docs/apis which is what a Google Summer of Code student used for translating ERDDAP. See the resultant java code. I can't tell, but there might be a cost associated with that service.
@albenson-usgs mentioned GBIF uses Crowdin to manage translations of their content.
related to
- https://github.com/rstudio/bookdown/issues/965
You can use google translate services to test out their algorithm on a website using https://translate.google.com/?sl=auto&tl=en&op=websites.
For example: https://ioos-github-io.translate.goog/bio_data_guide/applications.html?_x_tr_sl=auto&_x_tr_tl=es&_x_tr_hl=en&_x_tr_pto=wapp
Links we found from meeting between Carolina, Matt, Tylar, and me on 2022-09-21. ERDDAP translation:
- https://q1zeng.github.io/
- https://github.com/BobSimons/erddap/issues/50
- https://github.com/Q1Zeng/erddap/blob/master/WEB-INF/classes/gov/noaa/pfel/erddap/util/translate.java
Possible R and Python packages or tutorials:
- https://rpubs.com/Yach/google-translation-R
- https://pypi.org/project/googletrans/
- https://github.com/rhysd/translate-markdown
- https://www.w3schools.com/TAgs/att_translate.asp#:~:text=The%20translate%20attribute%20specifies%20whether,%22no%22%3A%20ice%20cream