Skip to contents

Returns a list of supported languages for translation.

Usage

gl_translate_languages(target = "en")

Arguments

target

If specified, language names are localized in target language

Value

A tibble of supported languages

Details

Supported language codes, generally consisting of its ISO 639-1 identifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including language + region identifiers are returned (e.g. 'zh-TW', 'zh-CH')

Examples


if (FALSE) { # \dontrun{

# default english names of languages supported
gl_translate_languages()

# specify a language code to get other names, such as Danish
gl_translate_languages("da")

} # }