Function convertToSupportedLocaleOrDefault

Convert a locale/language to a supported locale/language, or return the default locale if not found.

This is a thin wrapper for convertToSupportedLocale. See that function for more details.

  • Parameters

    • newLocale: string

    Returns string