Function matchingLocalizationTable

Return the localization table in localizationTables that best matches the list of userLocales. If there is no matching language, returns defaultLocalizationTable.

  • Type Parameters

    • T

    Parameters

    • userLocales: readonly string[]
    • localizationTables: Record<string, T>
    • defaultLocalizationTable: T

    Returns T

OpenSource licenses