trans_locale | R Documentation |
This function allows setting translation locale and accessing the currently set one.
trans_locale(locale)
locale |
|
If locale
was not passed, currently set locale, else nothing.
trans_path(system.file("examples", package = "translated"))
# Check your default locale
trans_locale()
# Switch the translation to Polish language
trans_locale("pl_PL")
trans("title")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.