Function

AppStream-1.0AppStreamutils_locale_is_compatibleSince 0.9.5

  • Calculates if one locale is compatible with another. When doing the calculation the locale and language code is taken into account if possible.

    Parameters

    • Optionallocale1: string

      a BCP47 or POSIX locale string, or null

    • Optionallocale2: string

      a BCP47 or POSIX locale string, or null

    Returns boolean

    true if the locale is compatible.

    0.9.5