Please describe the changes in your PR. If it is addressing an issue, please reference that as well.
Languages are typed as enum from the Language type. This results in being able to use supported languages for certain providers (e.g. Arabic for Azure) since the enum isn't support. This change:
Expands the Language type to become a superset of all language codes
Each service that sets a language specifies languages that the service supports
For cases where a service takes only a 2 letter language code, we attempt to match the provided code to the two letter code. For example, if Language.es_MX is provided, then we'll attempt to match to es (not es-MX).
Please describe the changes in your PR. If it is addressing an issue, please reference that as well.
Languages are typed as enum from the
Language
type. This results in being able to use supported languages for certain providers (e.g. Arabic for Azure) since the enum isn't support. This change:Language.es_MX
is provided, then we'll attempt to match toes
(notes-MX
).