gl_translate_languages: Lists languages from Google Translate API

Description Usage Arguments Details Value See Also Examples

View source: R/translate.R

Description

Returns a list of supported languages for translation.

Usage

1
gl_translate_languages(target = "en")

Arguments

target

If specified, language names are localized in target language

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')

Value

A tibble of supported languages

See Also

https://cloud.google.com/translate/docs/reference/languages

Other translations: gl_translate_detect(), gl_translate()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

# default english names of languages supported
gl_translate_languages()

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


## End(Not run)

googleLanguageR documentation built on April 19, 2020, 3:58 p.m.