update to state of the art

This commit is contained in:
s2
2020-10-10 15:18:01 +02:00
parent cf251a170f
commit 4cdcfd167c
1526 changed files with 48132 additions and 7268 deletions

12
node_modules/i18next/index.d.ts generated vendored
View File

@@ -2,7 +2,7 @@ export interface FallbackLngObjList {
[language: string]: string[];
}
export type FallbackLng = string | string[] | FallbackLngObjList;
export type FallbackLng = string | string[] | FallbackLngObjList | ((code:string) => string | string[] | FallbackLngObjList);
export type FormatFunction = (value: any, format?: string, lng?: string) => string;
@@ -205,7 +205,7 @@ export interface InitOptions {
* DEPRECTADED use nonExplicitSupportedLngs
* @default false
*/
nonExplicitWhiteliest?: boolean;
nonExplicitWhitelist?: boolean;
/**
* Array of allowed languages
@@ -1002,12 +1002,12 @@ export interface i18n {
key: string,
value: string,
options?: { keySeparator?: string; silent?: boolean },
): void;
): i18n;
/**
* Adds multiple key/values.
*/
addResources(lng: string, ns: string, resources: any): void;
addResources(lng: string, ns: string, resources: any): i18n;
/**
* Adds a complete bundle.
@@ -1020,7 +1020,7 @@ export interface i18n {
resources: any,
deep?: boolean,
overwrite?: boolean,
): void;
): i18n;
/**
* Checks if a resource bundle exists.
@@ -1035,7 +1035,7 @@ export interface i18n {
/**
* Removes an existing bundle.
*/
removeResourceBundle(lng: string, ns: string): void;
removeResourceBundle(lng: string, ns: string): i18n;
/**
* Current options