Skip to content

Commit 17ca565

Browse files
Merge branch 'main' into more-translations
2 parents 824561d + aa23abd commit 17ca565

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# pkgdown (development version)
22

3+
* Updated the translations vignette with instructions for building non-English sites through Github Actions.
34
* `build_site()` gained a `quiet` argument, which is propagated to other functions
45
(e.g., `build_articles()`) and is useful for debugging build errors on GH actions.
56
* Added documentation explaining how to solve incorrect rendering of plotmath expressions under ragg devices on Linux. (@remlapmot, #2908)

vignettes/translations.Rmd

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ knitr::opts_chunk$set(
2323
If your documentation (`.Rd` and `.Rmd`) is written in a language other than English, declare it by setting setting `lang` to the [language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for your language:
2424

2525
``` yaml
26-
lang: fr
26+
lang: es
2727
```
2828
2929
This will be used to set the language of the web page and to translate the English words that pkgdown generates on your site.
@@ -43,11 +43,9 @@ As you can see, most language codes are two letters, but if a language has multi
4343

4444
If you deploy your site on Github Actions, you will need to update the locale and set the `env` during `pkgdown::build_site()` to the same language code you set in `_pkgdown.yml`, including the country code. For example, for `lang: es`, you would use `es_ES.UTF-8`:
4545

46-
```yaml
46+
``` yaml
4747
- name: Set locale to Spanish
4848
run: |
49-
sudo apt-get update
50-
sudo apt-get install -y locales
5149
sudo locale-gen es_ES.UTF-8
5250
sudo update-locale LANG=es_ES.UTF-8
5351
shell: bash
@@ -57,7 +55,6 @@ If you deploy your site on Github Actions, you will need to update the locale an
5755
shell: Rscript {0}
5856
env:
5957
LANG: es_ES.UTF-8
60-
LC_ALL: es_ES.UTF-8
6158
```
6259
## Translations
6360

0 commit comments

Comments
 (0)