Service for identifying cultures that you will use in the app, by their CultureID ('en', 'en-US', 'en-GB', etc), and provides fallbacks for when a requested CultureID is not found.

This class is available on ValidationServices.cultureService.

Hierarchy (view full)

Implements

Constructors

Accessors

Methods

  • Utility to check for the presence of a Culture. Will fallback to language only check if language-country cultureID doesn't find a match. In other words, if 'en-US' isn't found, it tries 'en'.

    Parameters

    • cultureId: string

    Returns null | string

    the found cultureID, so you know if it exactly matched or just got the language. If no match, returns null.

Generated using TypeDoc v0.25.12