powered by
This function checks if a given language code is in the google_supported_languages dataset.
google_supported_languages
google_is_valid_language_code(language_code)
A logical value indicating if the language code is valid.
The language code to check.
if (FALSE) { google_is_valid_language_code("en") # TRUE google_is_valid_language_code("fr") # TRUE google_is_valid_language_code("xx") # FALSE }
Run the code above in your browser using DataLab