# 30 Language support

The locale argument of the config() function allows one to render on-graph text using another language. Figure 30.1 shows how setting locale='ja' will render text in Japanese.

today <- Sys.Date()
x <- seq.Date(today, today + 360, by = "day")
plot_ly(x = x, y = rnorm(length(x))) %>%
config(locale = "ja")
TABLE 30.1: Language support in plotly. To use one of these languages, supply the locale code to the locale argument in the config() function.