google_is_valid_language_code: Check if a language code is valid

View source: R/google_is_valid_language_code.R

google_is_valid_language_codeR Documentation

Check if a language code is valid

Description

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

## Not run: 
google_is_valid_language_code("en") # TRUE
google_is_valid_language_code("fr") # TRUE
google_is_valid_language_code("xx") # FALSE

## End(Not run)

polyglotr documentation built on Sept. 11, 2024, 6:35 p.m.