@wordpress/i18n 6.0.0 → 6.0.1-next.46f643fa0.0
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/README.md +20 -19
- package/build/create-i18n.js +60 -205
- package/build/create-i18n.js.map +1 -1
- package/build/default-i18n.js +31 -34
- package/build/default-i18n.js.map +1 -1
- package/build/index.js.map +1 -1
- package/build/sprintf.js +3 -4
- package/build/sprintf.js.map +1 -1
- package/build/types.js.map +1 -1
- package/build-module/create-i18n.js +60 -205
- package/build-module/create-i18n.js.map +1 -1
- package/build-module/default-i18n.js +31 -35
- package/build-module/default-i18n.js.map +1 -1
- package/build-module/index.js.map +1 -1
- package/build-module/sprintf.js +3 -4
- package/build-module/sprintf.js.map +1 -1
- package/build-module/types.js.map +1 -1
- package/build-types/create-i18n.d.ts +11 -115
- package/build-types/create-i18n.d.ts.map +1 -1
- package/build-types/default-i18n.d.ts +45 -47
- package/build-types/default-i18n.d.ts.map +1 -1
- package/build-types/index.d.ts +4 -3
- package/build-types/index.d.ts.map +1 -1
- package/build-types/sprintf.d.ts +1 -4
- package/build-types/sprintf.d.ts.map +1 -1
- package/build-types/types.d.ts +101 -0
- package/build-types/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/create-i18n.ts +405 -0
- package/src/{default-i18n.js → default-i18n.ts} +37 -35
- package/src/index.ts +16 -0
- package/src/sprintf.ts +4 -10
- package/src/test/{create-i18n.js → create-i18n.ts} +63 -30
- package/src/test/{sprintf.js → sprintf.ts} +5 -1
- package/src/test/{subscribe-i18n.js → subscribe-i18n.ts} +3 -3
- package/src/types.ts +155 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/src/create-i18n.js +0 -514
- /package/src/test/{default-i18n.js → default-i18n.ts} +0 -0
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
import { LocaleData, SubscribeCallback, TranslatableText, UnsubscribeCallback } from './types';
|
|
2
|
+
declare const i18n: import("./types").I18n<string>;
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @typedef {import('./create-i18n').SubscribeCallback} SubscribeCallback
|
|
5
|
-
* @typedef {import('./create-i18n').UnsubscribeCallback} UnsubscribeCallback
|
|
4
|
+
* Default, singleton instance of `I18n`.
|
|
6
5
|
*/
|
|
6
|
+
export default i18n;
|
|
7
7
|
/**
|
|
8
8
|
* Returns locale data by domain in a Jed-formatted JSON object shape.
|
|
9
9
|
*
|
|
10
10
|
* @see http://messageformat.github.io/Jed/
|
|
11
11
|
*
|
|
12
|
-
* @param {string} [domain] Domain for which to get the data.
|
|
13
|
-
* @return {LocaleData} Locale data.
|
|
12
|
+
* @param { string | undefined } [domain] Domain for which to get the data.
|
|
13
|
+
* @return { LocaleData } Locale data.
|
|
14
14
|
*/
|
|
15
|
-
export const getLocaleData:
|
|
15
|
+
export declare const getLocaleData: (domain?: string | undefined) => LocaleData<string>;
|
|
16
16
|
/**
|
|
17
17
|
* Merges locale data into the Tannin instance by domain. Accepts data in a
|
|
18
18
|
* Jed-formatted JSON object shape.
|
|
19
19
|
*
|
|
20
20
|
* @see http://messageformat.github.io/Jed/
|
|
21
21
|
*
|
|
22
|
-
* @param {LocaleData}
|
|
23
|
-
* @param {string}
|
|
22
|
+
* @param {LocaleData } [data] Locale data configuration.
|
|
23
|
+
* @param {string | undefined} [domain] Domain for which configuration applies.
|
|
24
24
|
*/
|
|
25
|
-
export const setLocaleData:
|
|
25
|
+
export declare const setLocaleData: (data?: LocaleData<string> | undefined, domain?: string | undefined) => void;
|
|
26
26
|
/**
|
|
27
27
|
* Resets all current Tannin instance locale data and sets the specified
|
|
28
28
|
* locale data for the domain. Accepts data in a Jed-formatted JSON object shape.
|
|
29
29
|
*
|
|
30
30
|
* @see http://messageformat.github.io/Jed/
|
|
31
31
|
*
|
|
32
|
-
* @param {LocaleData}
|
|
33
|
-
* @param {string}
|
|
32
|
+
* @param {LocaleData} [data] Locale data configuration.
|
|
33
|
+
* @param {string | undefined} [domain] Domain for which configuration applies.
|
|
34
34
|
*/
|
|
35
|
-
export const resetLocaleData:
|
|
35
|
+
export declare const resetLocaleData: (data?: LocaleData<string> | undefined, domain?: string | undefined) => void;
|
|
36
36
|
/**
|
|
37
37
|
* Subscribes to changes of locale data
|
|
38
38
|
*
|
|
39
39
|
* @param {SubscribeCallback} callback Subscription callback
|
|
40
40
|
* @return {UnsubscribeCallback} Unsubscribe callback
|
|
41
41
|
*/
|
|
42
|
-
export const subscribe:
|
|
42
|
+
export declare const subscribe: (callback: SubscribeCallback) => UnsubscribeCallback;
|
|
43
43
|
/**
|
|
44
44
|
* Retrieve the translation of text.
|
|
45
45
|
*
|
|
@@ -47,12 +47,12 @@ export const subscribe: import("./create-i18n").Subscribe;
|
|
|
47
47
|
*
|
|
48
48
|
* @template {string} Text
|
|
49
49
|
*
|
|
50
|
-
* @param {Text}
|
|
51
|
-
* @param {string}
|
|
50
|
+
* @param {Text} text Text to translate.
|
|
51
|
+
* @param {string | undefined} domain Domain to retrieve the translated text.
|
|
52
52
|
*
|
|
53
|
-
* @return {
|
|
53
|
+
* @return {TranslatableText<Text>} Translated text.
|
|
54
54
|
*/
|
|
55
|
-
export const __:
|
|
55
|
+
export declare const __: <Text extends string>(text: Text, domain?: string | undefined) => TranslatableText<Text>;
|
|
56
56
|
/**
|
|
57
57
|
* Retrieve translated string with gettext context.
|
|
58
58
|
*
|
|
@@ -60,13 +60,13 @@ export const __: import("./create-i18n").__;
|
|
|
60
60
|
*
|
|
61
61
|
* @template {string} Text
|
|
62
62
|
*
|
|
63
|
-
* @param {Text}
|
|
64
|
-
* @param {string}
|
|
65
|
-
* @param {string}
|
|
63
|
+
* @param {Text} text Text to translate.
|
|
64
|
+
* @param {string} context Context information for the translators.
|
|
65
|
+
* @param {string | undefined} domain Domain to retrieve the translated text.
|
|
66
66
|
*
|
|
67
|
-
* @return {
|
|
67
|
+
* @return {TranslatableText<Text>} Translated context string without pipe.
|
|
68
68
|
*/
|
|
69
|
-
export const _x:
|
|
69
|
+
export declare const _x: <Text extends string>(text: Text, context: string, domain?: string | undefined) => TranslatableText<Text>;
|
|
70
70
|
/**
|
|
71
71
|
* Translates and retrieves the singular or plural form based on the supplied
|
|
72
72
|
* number.
|
|
@@ -76,15 +76,15 @@ export const _x: import("./create-i18n")._x;
|
|
|
76
76
|
* @template {string} Single
|
|
77
77
|
* @template {string} Plural
|
|
78
78
|
*
|
|
79
|
-
* @param {Single}
|
|
80
|
-
* @param {Plural}
|
|
81
|
-
* @param {number}
|
|
82
|
-
*
|
|
83
|
-
* @param {string}
|
|
79
|
+
* @param {Single} single The text to be used if the number is singular.
|
|
80
|
+
* @param {Plural} plural The text to be used if the number is plural.
|
|
81
|
+
* @param {number} number The number to compare against to use either the
|
|
82
|
+
* singular or plural form.
|
|
83
|
+
* @param {string | undefined} domain Domain to retrieve the translated text.
|
|
84
84
|
*
|
|
85
|
-
* @return {
|
|
85
|
+
* @return {TranslatableText<Single | Plural>} The translated singular or plural form.
|
|
86
86
|
*/
|
|
87
|
-
export const _n:
|
|
87
|
+
export declare const _n: <Single extends string, Plural extends string>(single: Single, plural: Plural, number: number, domain?: string | undefined) => TranslatableText<Single | Plural>;
|
|
88
88
|
/**
|
|
89
89
|
* Translates and retrieves the singular or plural form based on the supplied
|
|
90
90
|
* number, with gettext context.
|
|
@@ -93,17 +93,18 @@ export const _n: import("./create-i18n")._n;
|
|
|
93
93
|
*
|
|
94
94
|
* @template {string} Single
|
|
95
95
|
* @template {string} Plural
|
|
96
|
+
* @param {Single} single The text to be used if the number is singular.
|
|
96
97
|
*
|
|
97
|
-
* @param {Single}
|
|
98
|
-
* @param {Plural}
|
|
99
|
-
* @param {number}
|
|
100
|
-
*
|
|
101
|
-
* @param {string}
|
|
102
|
-
* @param {string} [domain] Domain to retrieve the translated text.
|
|
98
|
+
* @param {Single} single The text to be used if the number is singular.
|
|
99
|
+
* @param {Plural} plural The text to be used if the number is plural.
|
|
100
|
+
* @param {number} number The number to compare against to use either the
|
|
101
|
+
* singular or plural form.
|
|
102
|
+
* @param {string} context Context information for the translators.
|
|
103
|
+
* @param {string | undefined} [domain] Domain to retrieve the translated text.
|
|
103
104
|
*
|
|
104
|
-
* @return {
|
|
105
|
+
* @return {TranslatableText<Single | Plural>} The translated singular or plural form.
|
|
105
106
|
*/
|
|
106
|
-
export const _nx:
|
|
107
|
+
export declare const _nx: <Single extends string, Plural extends string>(single: Single, plural: Plural, number: number, context: string, domain?: string | undefined) => TranslatableText<Single | Plural>;
|
|
107
108
|
/**
|
|
108
109
|
* Check if current locale is RTL.
|
|
109
110
|
*
|
|
@@ -114,18 +115,15 @@ export const _nx: import("./create-i18n")._nx;
|
|
|
114
115
|
*
|
|
115
116
|
* @return {boolean} Whether locale is RTL.
|
|
116
117
|
*/
|
|
117
|
-
export const isRTL:
|
|
118
|
+
export declare const isRTL: () => boolean;
|
|
118
119
|
/**
|
|
119
120
|
* Check if there is a translation for a given string (in singular form).
|
|
120
121
|
*
|
|
121
|
-
* @param {string} single
|
|
122
|
-
* @param {string}
|
|
123
|
-
* @param {string}
|
|
122
|
+
* @param {string} single Singular form of the string to look up.
|
|
123
|
+
* @param {string} context Context information for the translators.
|
|
124
|
+
* @param {string} domain Domain to retrieve the translated text.
|
|
125
|
+
*
|
|
124
126
|
* @return {boolean} Whether the translation exists or not.
|
|
125
127
|
*/
|
|
126
|
-
export const hasTranslation:
|
|
127
|
-
export type LocaleData = import("./create-i18n").LocaleData;
|
|
128
|
-
export type SubscribeCallback = import("./create-i18n").SubscribeCallback;
|
|
129
|
-
export type UnsubscribeCallback = import("./create-i18n").UnsubscribeCallback;
|
|
130
|
-
declare const i18n: import("./create-i18n").I18n;
|
|
128
|
+
export declare const hasTranslation: (single: string, context?: string, domain?: string | undefined) => boolean;
|
|
131
129
|
//# sourceMappingURL=default-i18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-i18n.d.ts","sourceRoot":"","sources":["../src/default-i18n.
|
|
1
|
+
{"version":3,"file":"default-i18n.d.ts","sourceRoot":"","sources":["../src/default-i18n.ts"],"names":[],"mappings":"AASA,OAAO,EACN,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,MAAM,SAAS,CAAC;AAEjB,QAAA,MAAM,IAAI,gCAAmD,CAAC;AAE9D;;GAEG;AACH,eAAe,IAAI,CAAC;AAOpB;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,qDAAkC,CAAC;AAE7D;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,8EAAkC,CAAC;AAE7D;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,8EAAoC,CAAC;AAEjE;;;;;GAKG;AACH,eAAO,MAAM,SAAS,sDAA8B,CAAC;AAErD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,EAAE,0FAAuB,CAAC;AAEvC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,EAAE,2GAAuB,CAAC;AAEvC;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,EAAE,kKAAuB,CAAC;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,GAAG,mLAAwB,CAAC;AAEzC;;;;;;;;;GASG;AACH,eAAO,MAAM,KAAK,eAA0B,CAAC;AAE7C;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,4EAAmC,CAAC"}
|
package/build-types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { sprintf } from
|
|
2
|
-
export * from
|
|
3
|
-
export
|
|
1
|
+
export { sprintf } from './sprintf';
|
|
2
|
+
export * from './create-i18n';
|
|
3
|
+
export type * from './types';
|
|
4
|
+
export { default as defaultI18n, setLocaleData, resetLocaleData, getLocaleData, subscribe, __, _x, _n, _nx, isRTL, hasTranslation, } from './default-i18n';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,mBAAmB,SAAS,CAAC;AAC7B,OAAO,EACN,OAAO,IAAI,WAAW,EACtB,aAAa,EACb,eAAe,EACf,aAAa,EACb,SAAS,EACT,EAAE,EACF,EAAE,EACF,EAAE,EACF,GAAG,EACH,KAAK,EACL,cAAc,GACd,MAAM,gBAAgB,CAAC"}
|
package/build-types/sprintf.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { SprintfArgs } from '@tannin/sprintf/types';
|
|
2
1
|
/**
|
|
3
2
|
* Internal dependencies
|
|
4
3
|
*/
|
|
5
|
-
import type { TranslatableText } from './types';
|
|
6
|
-
type DistributeSprintfArgs<T extends string> = T extends any ? SprintfArgs<T> : never;
|
|
4
|
+
import type { DistributeSprintfArgs, TranslatableText } from './types';
|
|
7
5
|
export declare function sprintf<T extends string>(format: T | TranslatableText<T>, ...args: DistributeSprintfArgs<T>): string;
|
|
8
6
|
export declare function sprintf<T extends string>(format: T | TranslatableText<T>, args: DistributeSprintfArgs<T>): string;
|
|
9
|
-
export {};
|
|
10
7
|
//# sourceMappingURL=sprintf.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprintf.d.ts","sourceRoot":"","sources":["../src/sprintf.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sprintf.d.ts","sourceRoot":"","sources":["../src/sprintf.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEvE,wBAAgB,OAAO,CAAE,CAAC,SAAS,MAAM,EACxC,MAAM,EAAE,CAAC,GAAG,gBAAgB,CAAE,CAAC,CAAE,EACjC,GAAG,IAAI,EAAE,qBAAqB,CAAE,CAAC,CAAE,GACjC,MAAM,CAAC;AACV,wBAAgB,OAAO,CAAE,CAAC,SAAS,MAAM,EACxC,MAAM,EAAE,CAAC,GAAG,gBAAgB,CAAE,CAAC,CAAE,EACjC,IAAI,EAAE,qBAAqB,CAAE,CAAC,CAAE,GAC9B,MAAM,CAAC"}
|
package/build-types/types.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type sprintf from '@tannin/sprintf';
|
|
5
|
+
import { type TanninDomainMetadata } from 'tannin';
|
|
1
6
|
/**
|
|
2
7
|
* Return type for string translation functions.
|
|
3
8
|
*
|
|
@@ -10,4 +15,100 @@ export type TranslatableText<T extends string> = string & {
|
|
|
10
15
|
*/
|
|
11
16
|
readonly __translatableText: T;
|
|
12
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Type to extends TanninDomainMetadata to support additional properties.
|
|
20
|
+
*/
|
|
21
|
+
export type I18nDomainMetadata<TextDomain extends string> = TanninDomainMetadata & {
|
|
22
|
+
domain?: TextDomain;
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Locale data is a record of domain names to their metadata or translations.
|
|
27
|
+
*/
|
|
28
|
+
export type LocaleData<TextDomain extends string = string> = Record<string, I18nDomainMetadata<TextDomain> | string[]>;
|
|
29
|
+
export type SubscribeCallback = () => void;
|
|
30
|
+
export type UnsubscribeCallback = () => void;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve the domain to use when calling domain-specific filters.
|
|
33
|
+
*/
|
|
34
|
+
export type getFilterDomain = (domain?: string) => string;
|
|
35
|
+
/**
|
|
36
|
+
* An i18n instance
|
|
37
|
+
*/
|
|
38
|
+
export interface I18n<TextDomain extends string = string> {
|
|
39
|
+
/**
|
|
40
|
+
* Returns locale data by domain in a
|
|
41
|
+
* Jed-formatted JSON object shape.
|
|
42
|
+
*
|
|
43
|
+
* @see http://messageformat.github.io/Jed/
|
|
44
|
+
*/
|
|
45
|
+
getLocaleData: (domain?: TextDomain) => LocaleData<TextDomain>;
|
|
46
|
+
/**
|
|
47
|
+
* Merges locale data into the Tannin instance by domain. Note that this
|
|
48
|
+
* function will overwrite the domain configuration. Accepts data in a
|
|
49
|
+
* Jed-formatted JSON object shape.
|
|
50
|
+
*
|
|
51
|
+
* @see http://messageformat.github.io/Jed/
|
|
52
|
+
*/
|
|
53
|
+
setLocaleData: (data?: LocaleData<TextDomain>, domain?: TextDomain) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Merges locale data into the Tannin instance by domain. Note that this
|
|
56
|
+
* function will also merge the domain configuration. Accepts data in a
|
|
57
|
+
* Jed-formatted JSON object shape.
|
|
58
|
+
*
|
|
59
|
+
* @see http://messageformat.github.io/Jed/
|
|
60
|
+
*/
|
|
61
|
+
addLocaleData: (data?: LocaleData<TextDomain>, domain?: TextDomain) => void;
|
|
62
|
+
/**
|
|
63
|
+
* Resets all current Tannin instance locale data and sets the specified
|
|
64
|
+
* locale data for the domain. Accepts data in a Jed-formatted JSON object shape.
|
|
65
|
+
*
|
|
66
|
+
* @see http://messageformat.github.io/Jed/
|
|
67
|
+
*/
|
|
68
|
+
resetLocaleData: (data?: LocaleData<TextDomain>, domain?: TextDomain) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Subscribes to changes of locale data
|
|
71
|
+
*/
|
|
72
|
+
subscribe: (callback: SubscribeCallback) => UnsubscribeCallback;
|
|
73
|
+
/**
|
|
74
|
+
* Retrieve the translation of text.
|
|
75
|
+
*
|
|
76
|
+
* @see https://developer.wordpress.org/reference/functions/__/
|
|
77
|
+
*/
|
|
78
|
+
__: <Text extends string>(text: Text, domain?: TextDomain) => TranslatableText<Text>;
|
|
79
|
+
/**
|
|
80
|
+
* Retrieve translated string with gettext context.
|
|
81
|
+
*
|
|
82
|
+
* @see https://developer.wordpress.org/reference/functions/_x/
|
|
83
|
+
*/
|
|
84
|
+
_x: <Text extends string>(text: Text, context: string, domain?: TextDomain) => TranslatableText<Text>;
|
|
85
|
+
/**
|
|
86
|
+
* Translates and retrieves the singular or plural form based on the supplied
|
|
87
|
+
* number.
|
|
88
|
+
*
|
|
89
|
+
* @see https://developer.wordpress.org/reference/functions/_n/
|
|
90
|
+
*/
|
|
91
|
+
_n: <Single extends string, Plural extends string>(single: Single, plural: Plural, number: number, domain?: TextDomain) => TranslatableText<Single | Plural>;
|
|
92
|
+
/**
|
|
93
|
+
* Translates and retrieves the singular or plural form based on the supplied
|
|
94
|
+
* number, with gettext context.
|
|
95
|
+
*
|
|
96
|
+
* @see https://developer.wordpress.org/reference/functions/_nx/
|
|
97
|
+
*/
|
|
98
|
+
_nx: <Single extends string, Plural extends string>(single: Single, plural: Plural, number: number, context: string, domain?: TextDomain) => TranslatableText<Single | Plural>;
|
|
99
|
+
/**
|
|
100
|
+
* Check if current locale is RTL.
|
|
101
|
+
*
|
|
102
|
+
* **RTL (Right To Left)** is a locale property indicating that text is written from right to left.
|
|
103
|
+
* For example, the `he` locale (for Hebrew) specifies right-to-left. Arabic (ar) is another common
|
|
104
|
+
* language written RTL. The opposite of RTL, LTR (Left To Right) is used in other languages,
|
|
105
|
+
* including English (`en`, `en-US`, `en-GB`, etc.), Spanish (`es`), and French (`fr`).
|
|
106
|
+
*/
|
|
107
|
+
isRTL: () => boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Check if there is a translation for a given string in singular form.
|
|
110
|
+
*/
|
|
111
|
+
hasTranslation: (single: string, context?: string, domain?: TextDomain) => boolean;
|
|
112
|
+
}
|
|
113
|
+
export type DistributeSprintfArgs<T extends string> = T extends any ? Parameters<typeof sprintf<T>>[1] : never;
|
|
13
114
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,gBA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;IACH,KAAK,EAAE,MAAM,OAAO,CAAC;IAErB;;OAEG;IACH,cAAc,EAAE,CACf,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,UAAU,KACf,OAAO,CAAC;CACb;AAED,MAAM,MAAM,qBAAqB,CAAE,CAAC,SAAS,MAAM,IAAK,CAAC,SAAS,GAAG,GAClE,UAAU,CAAE,OAAO,OAAO,CAAE,CAAC,CAAE,CAAE,CAAE,CAAC,CAAE,GACtC,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/i18n",
|
|
3
|
-
"version": "6.0.0",
|
|
3
|
+
"version": "6.0.1-next.46f643fa0.0",
|
|
4
4
|
"description": "WordPress internationalization (i18n) library.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "7.25.7",
|
|
35
35
|
"@tannin/sprintf": "^1.3.1",
|
|
36
|
-
"@wordpress/hooks": "^4.27.0",
|
|
36
|
+
"@wordpress/hooks": "^4.27.1-next.46f643fa0.0",
|
|
37
37
|
"gettext-parser": "^1.3.1",
|
|
38
38
|
"memize": "^2.1.0",
|
|
39
39
|
"tannin": "^1.2.0"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "17e600e091675c5e3d809adfea23ac456bbeae19"
|
|
45
45
|
}
|