Skip to content

Commit

Permalink
added i18n explanations in readme and vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Nov 24, 2021
1 parent 76ded74 commit 14ebe59
Show file tree
Hide file tree
Showing 14 changed files with 282 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,17 @@ Above gif was made with :heart: by [@mfanny](https://github.com/mfanny) and cann
![](man/figures/esquisse.png)


### Internationalization

Currently you can use {esquisse} in the following language: <img src="man/figures/i18n/gb.svg" height="16"/> english (default), <img src="man/figures/i18n/fr.svg" height="16"/> french (`"fr"`), <img src="man/figures/i18n/mk.svg" height="16"/> macedonian (`"mk"`), <img src="man/figures/i18n/al.svg" height="16"/> albanian (`"sq"`). Activate with:

```r
library(esquisse)
set_i18n("fr")
esquisser()
```

If you want another language to be supported, you can submit a Pull Request to add a CSV file like the one used for french (file is located in `inst/i18n` folder in the package, you can see it [here on GitHub](https://github.com/dreamRs/esquisse/blob/master/inst/i18n/fr.csv)).

See [{datamods} vignette](https://dreamrs.github.io/datamods/articles/i18n.html) for more on this topic.

5 changes: 5 additions & 0 deletions man/figures/i18n/al.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions man/figures/i18n/br.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions man/figures/i18n/fr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions man/figures/i18n/gb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions man/figures/i18n/mk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 14ebe59

Please sign in to comment.