• JMap.Language.isValidLocale

    returns true is the passed locale is supported by JMap Cloud NG, false otherwise

    Parameters

    • locale: JLOCALES

      the locale to be tested

    Returns boolean

    Example

    console.log(JMap.Language.isValidLocale("fr"))
    // true
    console.log(JMap.Language.isValidLocale("ch"))
    // false