Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrerebeau committed Nov 12, 2024
1 parent 997e923 commit 6535f87
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ knitr::opts_chunk$set(
fig.path = "man/figures/README-",
out.width = NULL
)
Sys.setlocale("LC_MESSAGES", 'en_GB.UTF-8') # Force locale
Sys.setenv(LANGUAGE = "en") # Force locale
```

# aion <img width=120px src="man/figures/logo.png" align="right" />
Expand Down Expand Up @@ -114,6 +114,16 @@ Y <- intervals(
plot(x = Y)
```

## Translation

This package provides translations of user-facing communications, like messages, warnings and errors, and graphical elements (axis labels). You can use a specific language by setting the `LANGUAGE` environment variable (you only need to do this once per session):

``` r
Sys.setenv(LANGUAGE = "<language code>")
```

Languages currently available are English (`en`) and French (`fr`).

## Related Works

* [**era**](https://github.com/joeroe/era) provides a consistent representation of year-based time scales as a numeric vector with an associated era.
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,19 @@ plot(x = Y)

![](man/figures/README-time-intervals-1.png)<!-- -->

## Translation

This package provides translations of user-facing communications, like
messages, warnings and errors, and graphical elements (axis labels). You
can use a specific language by setting the `LANGUAGE` environment
variable (you only need to do this once per session):

``` r
Sys.setenv(LANGUAGE = "<language code>")
```

Languages currently available are English (`en`) and French (`fr`).

## Related Works

- [**era**](https://github.com/joeroe/era) provides a consistent
Expand Down

0 comments on commit 6535f87

Please sign in to comment.