9.0.10076 • Published 4 years ago

@acoustic-content-sdk/i18n v9.0.10076

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

npm

Utility functions to help working with locales.

API Documentation

Home > @acoustic-content-sdk/i18n

i18n package

Utility functions to help working with locales.

Functions

FunctionDescription
byLocaleComparator(aLocContext, aLocaleExtractor)Returns a comparator that compares objects by their locale according to a locale preference
canonicalizeLocale(aLocale)Returns a canonicalized version of the locale

Variables

VariableDescription
VERSIONVersion and build number of the package

Home > @acoustic-content-sdk/i18n > byLocaleComparator

byLocaleComparator() function

Returns a comparator that compares objects by their locale according to a locale preference

Signature:

export declare function byLocaleComparator<T>(aLocContext: LocalizedContext, aLocaleExtractor: UnaryFunction<T, Locale>): Comparator<T>;

Parameters

ParameterTypeDescription
aLocContextLocalizedContextthe locale preference
aLocaleExtractorUnaryFunction<T, Locale>extractor of the locale from the object

Returns:

Comparator<T>

the comparator

Home > @acoustic-content-sdk/i18n > canonicalizeLocale

canonicalizeLocale() function

Returns a canonicalized version of the locale

Signature:

export declare function canonicalizeLocale(aLocale: Locale): Locale;

Parameters

ParameterTypeDescription
aLocaleLocalethe locale to canonicalize

Returns:

Locale

the canonical version

Home > @acoustic-content-sdk/i18n > VERSION

VERSION variable

Version and build number of the package

Signature:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}
9.0.10076

4 years ago

9.0.10067

4 years ago

9.0.10040

4 years ago

9.0.10034

4 years ago

9.0.495

4 years ago

9.0.493

4 years ago

9.0.462

4 years ago

9.0.407

4 years ago

9.0.384

4 years ago

9.0.361

4 years ago

9.0.360

4 years ago

9.0.271

4 years ago

9.0.270

4 years ago

9.0.251

4 years ago

9.0.242

4 years ago

9.0.216

4 years ago

9.0.209

4 years ago

9.0.89

4 years ago

9.0.30

4 years ago

8.0.498

4 years ago

8.0.475

4 years ago