convertToWellKnownLocale

Function

Convert a requested locale into a locale we support. i.e. en-ca => en If the requested locale is not available, en will be returned

  • convertToWellKnownLocale(requestedLocale: string) : string

Parameters

Parameter Type Default Notes
requestedLocale Optional string "en"

Locale we want

Returns

string

Function defined in packages/common/src/i18n/convert-to-well-known-locale.ts:9