Skip to contents

Change the locale to auto-translate days of the week, etc.

Usage

e_locale(e, locale)

e_locale_manual(e, locale, path)

Arguments

e

An echarts4r object as returned by e_charts or a proxy as returned by echarts4rProxy.

locale

Locale to set to.

path

Path to the local file to use.

Details

The "manual" function expects a file to use for translations. You can browse the `.js` files [here](https://github.com/apache/echarts/tree/master/i18n) to have an idea of what they should look like.

Locales

- CS - DE - EN - ES - FI - FR - JA - PT (brazil) - SI - TH - ZH

Examples

# top right corner zoom is in 
# French
cars |> 
 e_charts(speed) |> 
 e_scatter(dist) |> 
 e_datazoom() |> 
 e_locale("FR")