first commit
This commit is contained in:
57
node_modules/i18n-js/typings/I18n.d.ts
generated
vendored
Normal file
57
node_modules/i18n-js/typings/I18n.d.ts
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
import { DateTime, Dict, FormatNumberOptions, I18nOptions, MissingPlaceholderHandler, NullPlaceholderHandler, NumberToCurrencyOptions, NumberToDelimitedOptions, NumberToHumanOptions, NumberToHumanSizeOptions, NumberToPercentageOptions, NumberToRoundedOptions, Numeric, OnChangeHandler, Scope, StrftimeOptions, TimeAgoInWordsOptions, ToSentenceOptions, TranslateOptions } from "./typing";
|
||||
import { Locales } from "./Locales";
|
||||
import { Pluralization } from "./Pluralization";
|
||||
import { MissingTranslation } from "./MissingTranslation";
|
||||
import { interpolate } from "./helpers";
|
||||
export declare class I18n {
|
||||
private _locale;
|
||||
private _defaultLocale;
|
||||
private _version;
|
||||
onChangeHandlers: OnChangeHandler[];
|
||||
defaultSeparator: string;
|
||||
enableFallback: boolean;
|
||||
locales: Locales;
|
||||
pluralization: Pluralization;
|
||||
missingBehavior: string;
|
||||
missingPlaceholder: MissingPlaceholderHandler;
|
||||
missingTranslationPrefix: string;
|
||||
nullPlaceholder: NullPlaceholderHandler;
|
||||
missingTranslation: MissingTranslation;
|
||||
placeholder: RegExp;
|
||||
translations: Dict;
|
||||
transformKey: (key: string) => string;
|
||||
interpolate: typeof interpolate;
|
||||
constructor(translations?: Dict, options?: Partial<I18nOptions>);
|
||||
store(translations: Dict): void;
|
||||
get locale(): string;
|
||||
set locale(newLocale: string);
|
||||
get defaultLocale(): string;
|
||||
set defaultLocale(newLocale: string);
|
||||
translate<T = string>(scope: Scope, options?: TranslateOptions): string | T;
|
||||
t: <T = string>(scope: Scope, options?: TranslateOptions) => string | T;
|
||||
pluralize(count: number, scope: Scope, options?: TranslateOptions): string;
|
||||
p: (count: number, scope: Scope, options?: TranslateOptions) => string;
|
||||
localize(type: string, value: string | number | Date | null | undefined, options?: Dict): string;
|
||||
l: (type: string, value: string | number | Date | null | undefined, options?: Dict) => string;
|
||||
toTime(scope: Scope, input: DateTime): string;
|
||||
numberToCurrency(input: Numeric, options?: Partial<NumberToCurrencyOptions>): string;
|
||||
numberToPercentage(input: Numeric, options?: Partial<NumberToPercentageOptions>): string;
|
||||
numberToHumanSize(input: Numeric, options?: Partial<NumberToHumanSizeOptions>): string;
|
||||
numberToHuman(input: Numeric, options?: Partial<NumberToHumanOptions>): string;
|
||||
numberToRounded(input: Numeric, options?: Partial<NumberToRoundedOptions>): string;
|
||||
numberToDelimited(input: Numeric, options?: Partial<NumberToDelimitedOptions>): string;
|
||||
withLocale(locale: string, callback: () => void): Promise<void>;
|
||||
strftime(date: Date, format: string, options?: Partial<StrftimeOptions>): string;
|
||||
update(path: string, override: any, options?: {
|
||||
strict: boolean;
|
||||
}): void;
|
||||
toSentence(items: any[], options?: Partial<ToSentenceOptions>): string;
|
||||
timeAgoInWords(fromTime: DateTime, toTime: DateTime, options?: TimeAgoInWordsOptions): string;
|
||||
distanceOfTimeInWords: (fromTime: DateTime, toTime: DateTime, options?: TimeAgoInWordsOptions) => string;
|
||||
onChange(callback: OnChangeHandler): () => void;
|
||||
get version(): number;
|
||||
formatNumber(input: Numeric, options?: Partial<FormatNumberOptions>): string;
|
||||
get(scope: Scope): any;
|
||||
private runCallbacks;
|
||||
private hasChanged;
|
||||
}
|
||||
10
node_modules/i18n-js/typings/Locales.d.ts
generated
vendored
Normal file
10
node_modules/i18n-js/typings/Locales.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { LocaleResolver } from "./typing";
|
||||
import { I18n } from "./I18n";
|
||||
export declare const defaultLocaleResolver: LocaleResolver;
|
||||
export declare class Locales {
|
||||
private i18n;
|
||||
private registry;
|
||||
constructor(i18n: I18n);
|
||||
register(locale: string, localeResolver: LocaleResolver | string | string[]): void;
|
||||
get(locale: string): string[];
|
||||
}
|
||||
12
node_modules/i18n-js/typings/MissingTranslation.d.ts
generated
vendored
Normal file
12
node_modules/i18n-js/typings/MissingTranslation.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Dict, MissingTranslationStrategy, Scope } from "./typing";
|
||||
import { I18n } from "./I18n";
|
||||
export declare const guessStrategy: MissingTranslationStrategy;
|
||||
export declare const messageStrategy: MissingTranslationStrategy;
|
||||
export declare const errorStrategy: MissingTranslationStrategy;
|
||||
export declare class MissingTranslation {
|
||||
private i18n;
|
||||
private registry;
|
||||
constructor(i18n: I18n);
|
||||
register(name: string, strategy: MissingTranslationStrategy): void;
|
||||
get(scope: Scope, options: Dict): string;
|
||||
}
|
||||
15
node_modules/i18n-js/typings/Pluralization.d.ts
generated
vendored
Normal file
15
node_modules/i18n-js/typings/Pluralization.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Pluralizer, MakePlural } from "./typing";
|
||||
import { I18n } from "./I18n";
|
||||
export declare function useMakePlural({ pluralizer, includeZero, ordinal, }: {
|
||||
pluralizer: MakePlural;
|
||||
includeZero?: boolean;
|
||||
ordinal?: boolean;
|
||||
}): Pluralizer;
|
||||
export declare const defaultPluralizer: Pluralizer;
|
||||
export declare class Pluralization {
|
||||
private i18n;
|
||||
private registry;
|
||||
constructor(i18n: I18n);
|
||||
register(locale: string, pluralizer: Pluralizer): void;
|
||||
get(locale: string): Pluralizer;
|
||||
}
|
||||
2
node_modules/i18n-js/typings/helpers/camelCaseKeys.d.ts
generated
vendored
Normal file
2
node_modules/i18n-js/typings/helpers/camelCaseKeys.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { Dict } from "../typing";
|
||||
export declare function camelCaseKeys<T = Dict>(target: unknown): T;
|
||||
3
node_modules/i18n-js/typings/helpers/createTranslationOptions.d.ts
generated
vendored
Normal file
3
node_modules/i18n-js/typings/helpers/createTranslationOptions.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { Dict, Scope, TranslateOptions } from "../typing";
|
||||
import { I18n } from "../I18n";
|
||||
export declare function createTranslationOptions(i18n: I18n, scope: Scope, options: Dict): TranslateOptions[];
|
||||
3
node_modules/i18n-js/typings/helpers/expandRoundMode.d.ts
generated
vendored
Normal file
3
node_modules/i18n-js/typings/helpers/expandRoundMode.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { BigNumber } from "bignumber.js";
|
||||
import { RoundingMode } from "../typing";
|
||||
export declare function expandRoundMode(roundMode: RoundingMode): BigNumber.RoundingMode;
|
||||
2
node_modules/i18n-js/typings/helpers/flatMap.d.ts
generated
vendored
Normal file
2
node_modules/i18n-js/typings/helpers/flatMap.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { Dict } from "../../index.d";
|
||||
export declare function flatMap(target: Dict): string[];
|
||||
2
node_modules/i18n-js/typings/helpers/formatNumber.d.ts
generated
vendored
Normal file
2
node_modules/i18n-js/typings/helpers/formatNumber.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { FormatNumberOptions, Numeric } from "../typing";
|
||||
export declare function formatNumber(input: Numeric, options: FormatNumberOptions): string;
|
||||
3
node_modules/i18n-js/typings/helpers/getFullScope.d.ts
generated
vendored
Normal file
3
node_modules/i18n-js/typings/helpers/getFullScope.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { Dict, Scope } from "../typing";
|
||||
import { I18n } from "../I18n";
|
||||
export declare function getFullScope(i18n: I18n, scope: Scope, options: Dict): string;
|
||||
17
node_modules/i18n-js/typings/helpers/index.d.ts
generated
vendored
Normal file
17
node_modules/i18n-js/typings/helpers/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
export { camelCaseKeys } from "./camelCaseKeys";
|
||||
export { createTranslationOptions } from "./createTranslationOptions";
|
||||
export { expandRoundMode } from "./expandRoundMode";
|
||||
export { formatNumber } from "./formatNumber";
|
||||
export { getFullScope } from "./getFullScope";
|
||||
export { inferType } from "./inferType";
|
||||
export { interpolate } from "./interpolate";
|
||||
export { isSet } from "./isSet";
|
||||
export { lookup } from "./lookup";
|
||||
export { numberToDelimited } from "./numberToDelimited";
|
||||
export { numberToHuman } from "./numberToHuman";
|
||||
export { numberToHumanSize } from "./numberToHumanSize";
|
||||
export { parseDate } from "./parseDate";
|
||||
export { pluralize } from "./pluralize";
|
||||
export { roundNumber } from "./roundNumber";
|
||||
export { strftime } from "./strftime";
|
||||
export { timeAgoInWords } from "./timeAgoInWords";
|
||||
1
node_modules/i18n-js/typings/helpers/inferType.d.ts
generated
vendored
Normal file
1
node_modules/i18n-js/typings/helpers/inferType.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function inferType(instance: unknown): string;
|
||||
3
node_modules/i18n-js/typings/helpers/interpolate.d.ts
generated
vendored
Normal file
3
node_modules/i18n-js/typings/helpers/interpolate.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { TranslateOptions } from "../typing";
|
||||
import { I18n } from "../I18n";
|
||||
export declare function interpolate(i18n: I18n, message: string, options: TranslateOptions): string;
|
||||
1
node_modules/i18n-js/typings/helpers/isSet.d.ts
generated
vendored
Normal file
1
node_modules/i18n-js/typings/helpers/isSet.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function isSet(value: unknown): boolean;
|
||||
3
node_modules/i18n-js/typings/helpers/lookup.d.ts
generated
vendored
Normal file
3
node_modules/i18n-js/typings/helpers/lookup.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { Dict, Scope } from "../typing";
|
||||
import { I18n } from "../I18n";
|
||||
export declare function lookup(i18n: I18n, scope: Scope, options?: Dict): any;
|
||||
2
node_modules/i18n-js/typings/helpers/numberToDelimited.d.ts
generated
vendored
Normal file
2
node_modules/i18n-js/typings/helpers/numberToDelimited.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { Numeric, NumberToDelimitedOptions } from "../typing";
|
||||
export declare function numberToDelimited(input: Numeric, options: NumberToDelimitedOptions): string;
|
||||
3
node_modules/i18n-js/typings/helpers/numberToHuman.d.ts
generated
vendored
Normal file
3
node_modules/i18n-js/typings/helpers/numberToHuman.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { I18n } from "../I18n";
|
||||
import { Numeric, NumberToHumanOptions } from "../typing";
|
||||
export declare function numberToHuman(i18n: I18n, input: Numeric, options: NumberToHumanOptions): string;
|
||||
3
node_modules/i18n-js/typings/helpers/numberToHumanSize.d.ts
generated
vendored
Normal file
3
node_modules/i18n-js/typings/helpers/numberToHumanSize.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { I18n } from "../I18n";
|
||||
import { Numeric, NumberToHumanSizeOptions } from "../typing";
|
||||
export declare function numberToHumanSize(i18n: I18n, input: Numeric, options: NumberToHumanSizeOptions): string;
|
||||
4
node_modules/i18n-js/typings/helpers/object.d.ts
generated
vendored
Normal file
4
node_modules/i18n-js/typings/helpers/object.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { AnyObject } from "../../index.d";
|
||||
export declare type KeyModifier = (key: string) => string;
|
||||
export declare function dump(object: AnyObject): AnyObject;
|
||||
export declare function load(object: AnyObject): AnyObject;
|
||||
2
node_modules/i18n-js/typings/helpers/parseDate.d.ts
generated
vendored
Normal file
2
node_modules/i18n-js/typings/helpers/parseDate.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { DateTime } from "../typing";
|
||||
export declare function parseDate(input: DateTime): Date;
|
||||
9
node_modules/i18n-js/typings/helpers/pluralize.d.ts
generated
vendored
Normal file
9
node_modules/i18n-js/typings/helpers/pluralize.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Scope, TranslateOptions } from "../typing";
|
||||
import { I18n } from "../I18n";
|
||||
export declare function pluralize({ i18n, count, scope, options, baseScope, }: {
|
||||
i18n: I18n;
|
||||
count: number;
|
||||
scope: Scope;
|
||||
options: TranslateOptions;
|
||||
baseScope: string;
|
||||
}): string;
|
||||
2
node_modules/i18n-js/typings/helpers/propertyFlatList.d.ts
generated
vendored
Normal file
2
node_modules/i18n-js/typings/helpers/propertyFlatList.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { Dict } from "../typing";
|
||||
export declare function propertyFlatList(target: Dict): string[];
|
||||
9
node_modules/i18n-js/typings/helpers/roundNumber.d.ts
generated
vendored
Normal file
9
node_modules/i18n-js/typings/helpers/roundNumber.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { BigNumber } from "bignumber.js";
|
||||
import { RoundingMode } from "../typing";
|
||||
type RoundingOptions = {
|
||||
roundMode: RoundingMode;
|
||||
precision: number | null;
|
||||
significant: boolean;
|
||||
};
|
||||
export declare function roundNumber(numeric: BigNumber, options: RoundingOptions): string;
|
||||
export {};
|
||||
2
node_modules/i18n-js/typings/helpers/strftime.d.ts
generated
vendored
Normal file
2
node_modules/i18n-js/typings/helpers/strftime.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { StrftimeOptions } from "../typing";
|
||||
export declare function strftime(date: Date, format: string, options?: Partial<StrftimeOptions>): string;
|
||||
3
node_modules/i18n-js/typings/helpers/timeAgoInWords.d.ts
generated
vendored
Normal file
3
node_modules/i18n-js/typings/helpers/timeAgoInWords.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { I18n } from "../I18n";
|
||||
import { DateTime, TimeAgoInWordsOptions } from "../typing";
|
||||
export declare function timeAgoInWords(i18n: I18n, fromTime: DateTime, toTime: DateTime, options?: TimeAgoInWordsOptions): string;
|
||||
1
node_modules/i18n-js/typings/helpers/toFixed.d.ts
generated
vendored
Normal file
1
node_modules/i18n-js/typings/helpers/toFixed.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function toFixed(numeric: number, precision: number): string;
|
||||
2
node_modules/i18n-js/typings/helpers/toNumber.d.ts
generated
vendored
Normal file
2
node_modules/i18n-js/typings/helpers/toNumber.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { ToNumberOptions } from "../../index.d";
|
||||
export declare function toNumber(numeric: number, options: ToNumberOptions): string;
|
||||
5
node_modules/i18n-js/typings/index.d.ts
generated
vendored
Normal file
5
node_modules/i18n-js/typings/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export { I18n } from "./I18n";
|
||||
export { Locales } from "./Locales";
|
||||
export { MissingTranslation } from "./MissingTranslation";
|
||||
export { Pluralization, useMakePlural } from "./Pluralization";
|
||||
export * from "./typing";
|
||||
11
node_modules/i18n-js/typings/lodash.d.ts
generated
vendored
Normal file
11
node_modules/i18n-js/typings/lodash.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
export { default as uniq } from "lodash/uniq";
|
||||
export { default as camelCase } from "lodash/camelCase";
|
||||
export { default as snakeCase } from "lodash/snakeCase";
|
||||
export { default as repeat } from "lodash/repeat";
|
||||
export { default as sortBy } from "lodash/sortBy";
|
||||
export { default as zipObject } from "lodash/zipObject";
|
||||
export { default as isObject } from "lodash/isObject";
|
||||
export { default as flattenDeep } from "lodash/flattenDeep";
|
||||
export { default as get } from "lodash/get";
|
||||
export { default as has } from "lodash/has";
|
||||
export { default as merge } from "lodash/merge";
|
||||
1
node_modules/i18n-js/typings/make-plural.d.ts
generated
vendored
Normal file
1
node_modules/i18n-js/typings/make-plural.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { af, ak, am, an, ar, ars, as, asa, ast, az, bal, be, bem, bez, bg, bho, bm, bn, bo, br, brx, bs, ca, ce, ceb, cgg, chr, ckb, cs, cy, da, de, doi, dsb, dv, dz, ee, el, en, eo, es, et, eu, fa, ff, fi, fil, fo, fr, fur, fy, ga, gd, gl, gsw, gu, guw, gv, ha, haw, he, hi, hnj, hr, hsb, hu, hy, ia, id, ig, ii, io, is, it, iu, ja, jbo, jgo, jmc, jv, jw, ka, kab, kaj, kcg, kde, kea, kk, kkj, kl, km, kn, ko, ks, ksb, ksh, ku, kw, ky, lag, lb, lg, lij, lkt, ln, lo, lt, lv, mas, mg, mgo, mk, ml, mn, mo, mr, ms, mt, my, nah, naq, nb, nd, ne, nl, nn, nnh, no, nqo, nr, nso, ny, nyn, om, or, os, osa, pa, pap, pcm, pl, prg, ps, pt, pt_PT, rm, ro, rof, ru, rwk, sah, saq, sat, sc, scn, sd, sdh, se, seh, ses, sg, sh, shi, si, sk, sl, sma, smi, smj, smn, sms, sn, so, sq, sr, ss, ssy, st, su, sv, sw, syr, ta, te, teo, th, ti, tig, tk, tl, tn, to, tpi, tr, ts, tzm, ug, uk, und, ur, uz, ve, vec, vi, vo, vun, wa, wae, wo, xh, xog, yi, yo, yue, zh, zu, } from "make-plural/plurals";
|
||||
2
node_modules/i18n-js/typings/pluralize/ru.d.ts
generated
vendored
Normal file
2
node_modules/i18n-js/typings/pluralize/ru.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { Pluralizer } from "../typing";
|
||||
export declare const ru: Pluralizer;
|
||||
2
node_modules/i18n-js/typings/pluralize/westSlavic.d.ts
generated
vendored
Normal file
2
node_modules/i18n-js/typings/pluralize/westSlavic.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { Pluralizer } from "../typing";
|
||||
export declare const westSlavic: Pluralizer;
|
||||
108
node_modules/i18n-js/typings/typing.d.ts
generated
vendored
Normal file
108
node_modules/i18n-js/typings/typing.d.ts
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
import { BigNumber } from "bignumber.js";
|
||||
import { I18n } from "./I18n";
|
||||
export type MakePlural = (count: number, ordinal?: boolean) => string;
|
||||
export interface Dict {
|
||||
[key: string]: any;
|
||||
}
|
||||
export type DateTime = string | number | Date;
|
||||
export interface TimeAgoInWordsOptions {
|
||||
includeSeconds?: boolean;
|
||||
scope?: Scope;
|
||||
}
|
||||
export type Numeric = BigNumber | string | number;
|
||||
export type RoundingMode = "up" | "down" | "truncate" | "halfUp" | "default" | "halfDown" | "halfEven" | "banker" | "ceiling" | "ceil" | "floor";
|
||||
export interface FormatNumberOptions {
|
||||
format: string;
|
||||
negativeFormat: string;
|
||||
precision: number | null;
|
||||
roundMode: RoundingMode;
|
||||
significant: boolean;
|
||||
separator: string;
|
||||
delimiter: string;
|
||||
stripInsignificantZeros: boolean;
|
||||
raise: boolean;
|
||||
unit: string;
|
||||
}
|
||||
export type NumberToHumanSizeOptions = Omit<FormatNumberOptions, "format" | "negativeFormat" | "raise">;
|
||||
export type NumberToHumanUnits = {
|
||||
[key: string]: string;
|
||||
};
|
||||
export type NumberToHumanOptions = Omit<FormatNumberOptions, "negativeFormat" | "unit" | "raise"> & {
|
||||
units: NumberToHumanUnits | string;
|
||||
};
|
||||
export type NumberToDelimitedOptions = {
|
||||
delimiterPattern: RegExp;
|
||||
delimiter: string;
|
||||
separator: string;
|
||||
};
|
||||
export type NumberToPercentageOptions = Omit<FormatNumberOptions, "raise">;
|
||||
export type NumberToRoundedOptions = Omit<FormatNumberOptions, "format" | "negativeFormat" | "raise"> & {
|
||||
precision: number;
|
||||
};
|
||||
export type NumberToCurrencyOptions = FormatNumberOptions;
|
||||
export interface ToSentenceOptions {
|
||||
wordsConnector: string;
|
||||
twoWordsConnector: string;
|
||||
lastWordConnector: string;
|
||||
}
|
||||
export type PrimitiveType = number | string | null | undefined | boolean;
|
||||
export type ArrayType = AnyObject[];
|
||||
export type AnyObject = PrimitiveType | ArrayType | ObjectType;
|
||||
export interface ObjectType {
|
||||
[key: string]: PrimitiveType | ArrayType | ObjectType;
|
||||
}
|
||||
export type MissingBehavior = "message" | "guess" | "error";
|
||||
export interface I18nOptions {
|
||||
defaultLocale: string;
|
||||
defaultSeparator: string;
|
||||
enableFallback: boolean;
|
||||
locale: string;
|
||||
missingBehavior: MissingBehavior;
|
||||
missingPlaceholder: MissingPlaceholderHandler;
|
||||
nullPlaceholder: NullPlaceholderHandler;
|
||||
missingTranslationPrefix: string;
|
||||
placeholder: RegExp;
|
||||
transformKey: (key: string) => string;
|
||||
}
|
||||
export type Scope = Readonly<string | string[]>;
|
||||
export type LocaleResolver = (i18n: I18n, locale: string) => string[];
|
||||
export type Pluralizer = (i18n: I18n, count: number) => string[];
|
||||
export type MissingTranslationStrategy = (i18n: I18n, scope: Scope, options: Dict) => string;
|
||||
export interface TranslateOptions {
|
||||
defaultValue?: any;
|
||||
count?: number;
|
||||
scope?: Scope;
|
||||
defaults?: Dict[];
|
||||
missingBehavior?: MissingBehavior | string;
|
||||
[key: string]: any;
|
||||
}
|
||||
export type MissingPlaceholderHandler = (i18n: I18n, placeholder: string, message: string, options: Dict) => string;
|
||||
export type NullPlaceholderHandler = (i18n: I18n, placeholder: string, message: string, options: Dict) => string;
|
||||
export type DayNames = [string, string, string, string, string, string, string];
|
||||
export type MonthNames = [
|
||||
null,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string,
|
||||
string
|
||||
];
|
||||
export interface StrftimeOptions {
|
||||
meridian: {
|
||||
am: string;
|
||||
pm: string;
|
||||
};
|
||||
dayNames: DayNames;
|
||||
abbrDayNames: DayNames;
|
||||
monthNames: MonthNames;
|
||||
abbrMonthNames: MonthNames;
|
||||
utc?: boolean;
|
||||
}
|
||||
export type OnChangeHandler = (i18n: I18n) => void;
|
||||
Reference in New Issue
Block a user