Locale

Contains

  • Definition: Checks if the locale contains a specific substring.

  • Use Case: Useful for partial matches, such as filtering by language or region.

    • Example: Filter users whose locale contains "en" (English).

      • locale Contains "en" → Matches en-US, en-GB, en-AU.


NotContains

  • Definition: Checks if the locale does not contain a specific substring.

  • Use Case: Excludes locales with certain substrings.

    • Example: Exclude users whose locale contains "fr" (French).

      • locale NotContains "fr" → Excludes fr-FR, fr-CA.

EndsWith

  • Definition: Checks if the locale ends with a specific substring.

  • Use Case: Useful for filtering by region.

    • Example: Filter users whose locale ends with "US" (United States).

      • locale EndsWith "US" → Matches en-US, es-US.

StartsWith

  • Definition: Checks if the locale starts with a specific substring.

  • Use Case: Useful for filtering by language.

    • Example: Filter users whose locale starts with "nl" (Dutch).

      • locale StartsWith "nl" → Matches nl-NL, nl-BE.

Equals

  • Definition: Checks if the locale is exactly equal to a specific value.

  • Use Case: Useful for exact matches.

    • Example: Filter users whose locale is "en-US" (English, United States).

      • locale Equals "en-US" → Matches en-US.

NotEquals

  • Definition: Checks if the locale is not equal to a specific value.

  • Use Case: Excludes specific locales.

    • Example: Exclude users whose locale is "fr-FR" (French, France).

      • locale NotEquals "fr-FR" → Excludes fr-FR.

EqualsOneOf ("In" Filter)

  • Definition: Checks if the locale matches one of the values in a predefined list.

  • Use Case: Useful for matching multiple specific locales.

    • Example: Filter users whose locale is either "en-US", "en-GB", or "en-AU".

      • locale EqualsOneOf ["en-US", "en-GB", "en-AU"] → Matches en-US, en-GB, en-AU.

EqualsNoneOf ("NotIn" Filter)

  • Definition: Checks if the locale matches none of the values in a predefined list.

  • Use Case: Excludes multiple specific locales.

    • Example: Exclude users whose locale is "fr-FR" or "fr-CA".

      • locale EqualsNoneOf ["fr-FR", "fr-CA"] → Excludes fr-FR, fr-CA.

IsEmpty

  • Definition: Checks if the locale field is empty (i.e., no value is present).

  • Use Case: Useful for identifying users with no locale set.

    • Example: Filter users who have not set a locale.

      • locale IsEmpty → Matches users with no locale value.