@rainte/ant 0.0.31 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{browser-ponyfill-s2UibeSs.js → browser-ponyfill-w1ZLclUD.js} +1 -1
- package/dist/{index-DKmBr8w-.js → index-CtM2OPvM.js} +2363 -2365
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +45 -45
- package/dist/types/lib/index.d.ts +1 -1
- package/dist/types/src/utils/i18n.d.ts +0 -67
- package/package.json +7 -7
|
@@ -7,4 +7,4 @@ export { default as Table } from '../src/components/Table';
|
|
|
7
7
|
export type { TableProps } from '../src/components/Table';
|
|
8
8
|
export { default as Upload } from '../src/components/Upload';
|
|
9
9
|
export type { UploadProps } from '../src/components/Upload';
|
|
10
|
-
export
|
|
10
|
+
export * as i18n from '../src/utils/i18n';
|
|
@@ -1,70 +1,3 @@
|
|
|
1
1
|
export * from 'i18next';
|
|
2
2
|
export declare const KEY = "i18nextLng";
|
|
3
3
|
export declare const LNG_ZH = "zh";
|
|
4
|
-
export declare const i18n: import("i18next").i18n;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
KEY: string;
|
|
7
|
-
LNG_ZH: string;
|
|
8
|
-
t: import("i18next").TFunction<[...import("node_modules/i18next/typescript/helpers").$NormalizeIntoArray<import("i18next").DefaultNamespace>, ...Exclude<import("i18next").FlatNamespace, "translation">[]]>;
|
|
9
|
-
init(callback?: import("node_modules/i18next").Callback): Promise<import("i18next").TFunction>;
|
|
10
|
-
init<T>(options: import("i18next").InitOptions<T>, callback?: import("node_modules/i18next").Callback): Promise<import("i18next").TFunction>;
|
|
11
|
-
loadResources(callback?: (err: any) => void): void;
|
|
12
|
-
use<T extends import("node_modules/i18next").Module>(module: T | import("node_modules/i18next").NewableModule<T> | import("node_modules/i18next").Newable<T>): import("i18next").i18n;
|
|
13
|
-
modules: import("node_modules/i18next").Modules;
|
|
14
|
-
services: import("node_modules/i18next").Services;
|
|
15
|
-
store: import("node_modules/i18next").ResourceStore;
|
|
16
|
-
exists: import("node_modules/i18next").ExistsFunction;
|
|
17
|
-
getDataByLanguage(lng: string): {
|
|
18
|
-
[key: string]: {
|
|
19
|
-
[key: string]: string;
|
|
20
|
-
};
|
|
21
|
-
} | undefined;
|
|
22
|
-
getFixedT<Ns extends import("i18next").Namespace | null = "translation", TKPrefix extends import("i18next").KeyPrefix<ActualNs> = undefined, ActualNs extends import("i18next").Namespace = Ns extends null ? "translation" : Ns>(...args: [lng: string | readonly string[], ns?: Ns, keyPrefix?: TKPrefix] | [lng: null, ns: Ns, keyPrefix?: TKPrefix]): import("i18next").TFunction<ActualNs, TKPrefix>;
|
|
23
|
-
changeLanguage(lng?: string, callback?: import("node_modules/i18next").Callback): Promise<import("i18next").TFunction>;
|
|
24
|
-
language: string;
|
|
25
|
-
languages: readonly string[];
|
|
26
|
-
resolvedLanguage?: string;
|
|
27
|
-
hasLoadedNamespace(ns: string | readonly string[], options?: {
|
|
28
|
-
lng?: string | readonly string[];
|
|
29
|
-
fallbackLng?: import("i18next").InitOptions["fallbackLng"];
|
|
30
|
-
precheck?: (i18n: import("node_modules/i18next").i18n, loadNotPending: (lng: string | readonly string[], ns: string | readonly string[]) => boolean) => boolean | undefined;
|
|
31
|
-
}): boolean;
|
|
32
|
-
loadNamespaces(ns: string | readonly string[], callback?: import("node_modules/i18next").Callback): Promise<void>;
|
|
33
|
-
loadLanguages(lngs: string | readonly string[], callback?: import("node_modules/i18next").Callback): Promise<void>;
|
|
34
|
-
reloadResources(lngs?: string | readonly string[], ns?: string | readonly string[], callback?: () => void): Promise<void>;
|
|
35
|
-
reloadResources(lngs: null, ns: string | readonly string[], callback?: () => void): Promise<void>;
|
|
36
|
-
setDefaultNamespace(ns: string | readonly string[]): void;
|
|
37
|
-
dir(lng?: string): "ltr" | "rtl";
|
|
38
|
-
format: import("i18next").FormatFunction;
|
|
39
|
-
createInstance(options?: import("i18next").InitOptions, callback?: import("node_modules/i18next").Callback): import("node_modules/i18next").i18n;
|
|
40
|
-
cloneInstance(options?: import("node_modules/i18next").CloneOptions, callback?: import("node_modules/i18next").Callback): import("node_modules/i18next").i18n;
|
|
41
|
-
on(event: "initialized", callback: (options: import("i18next").InitOptions) => void): void;
|
|
42
|
-
on(event: "loaded", callback: (loaded: {
|
|
43
|
-
[language: string]: {
|
|
44
|
-
[namespace: string]: boolean;
|
|
45
|
-
};
|
|
46
|
-
}) => void): void;
|
|
47
|
-
on(event: "failedLoading", callback: (lng: string, ns: string, msg: string) => void): void;
|
|
48
|
-
on(event: "missingKey", callback: (lngs: readonly string[], namespace: string, key: string, res: string) => void): void;
|
|
49
|
-
on(event: "added" | "removed", callback: (lng: string, ns: string) => void): void;
|
|
50
|
-
on(event: "languageChanged", callback: (lng: string) => void): void;
|
|
51
|
-
on(event: string, listener: (...args: any[]) => void): void;
|
|
52
|
-
off(event: string, listener?: (...args: any[]) => void): void;
|
|
53
|
-
getResource(lng: string, ns: string, key: string, options?: Pick<import("i18next").InitOptions, "keySeparator" | "ignoreJSONStructure">): any;
|
|
54
|
-
addResource(lng: string, ns: string, key: string, value: string, options?: {
|
|
55
|
-
keySeparator?: string;
|
|
56
|
-
silent?: boolean;
|
|
57
|
-
}): import("node_modules/i18next").i18n;
|
|
58
|
-
addResources(lng: string, ns: string, resources: any): import("node_modules/i18next").i18n;
|
|
59
|
-
addResourceBundle(lng: string, ns: string, resources: any, deep?: boolean, overwrite?: boolean): import("node_modules/i18next").i18n;
|
|
60
|
-
hasResourceBundle(lng: string, ns: string): boolean;
|
|
61
|
-
getResourceBundle(lng: string, ns: string): any;
|
|
62
|
-
removeResourceBundle(lng: string, ns: string): import("node_modules/i18next").i18n;
|
|
63
|
-
options: import("i18next").InitOptions;
|
|
64
|
-
isInitialized: boolean;
|
|
65
|
-
isInitializing: boolean;
|
|
66
|
-
initializedStoreOnce: boolean;
|
|
67
|
-
initializedLanguageOnce: boolean;
|
|
68
|
-
emit(eventName: string, ...args: any[]): void;
|
|
69
|
-
};
|
|
70
|
-
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rainte/ant",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@ant-design/pro-components": "^2.8.6",
|
|
25
|
-
"@rainte/js": "^0.0.
|
|
26
|
-
"antd": "^5.24.
|
|
25
|
+
"@rainte/js": "^0.0.38",
|
|
26
|
+
"antd": "^5.24.5",
|
|
27
27
|
"i18next": "^24.2.3",
|
|
28
28
|
"i18next-browser-languagedetector": "^8.0.4",
|
|
29
29
|
"i18next-http-backend": "^3.0.2",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"react-router-dom": "^7.4.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^22.13.
|
|
38
|
+
"@types/node": "^22.13.14",
|
|
39
39
|
"@types/react": "^19.0.12",
|
|
40
40
|
"@types/react-dom": "^19.0.4",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
42
|
-
"@typescript-eslint/parser": "^8.
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^8.28.0",
|
|
42
|
+
"@typescript-eslint/parser": "^8.28.0",
|
|
43
43
|
"@vitejs/plugin-react-swc": "^3.8.1",
|
|
44
44
|
"eslint": "^9.23.0",
|
|
45
45
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
46
46
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
47
47
|
"typescript": "^5.8.2",
|
|
48
|
-
"vite": "^6.2.
|
|
48
|
+
"vite": "^6.2.3"
|
|
49
49
|
}
|
|
50
50
|
}
|