Skip to contents

This function checks if a given language code is in the google_supported_languages dataset.

Usage

google_is_valid_language_code(language_code)

Arguments

language_code

The language code to check.

Value

A logical value indicating if the language code is valid.

Examples

google_is_valid_language_code("en") # TRUE
#> [1] TRUE
google_is_valid_language_code("fr") # TRUE
#> [1] TRUE
google_is_valid_language_code("xx") # FALSE
#> [1] FALSE