@wordpress/i18n 6.9.1-next.738bb1424.0 → 6.9.1-next.76cff8c98.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/LICENSE.md +1 -1
- package/build/create-i18n.cjs +1 -1
- package/build/index.cjs +1 -1
- package/build/sprintf.cjs +1 -1
- package/build-module/{create-i18n.js → create-i18n.mjs} +1 -1
- package/build-module/{default-i18n.js → default-i18n.mjs} +2 -2
- package/build-module/{index.js → index.mjs} +4 -4
- package/build-module/{sprintf.js → sprintf.mjs} +1 -1
- package/build-module/types.mjs +1 -0
- package/package.json +8 -6
- package/build-module/types.js +0 -1
- /package/build-module/{create-i18n.js.map → create-i18n.mjs.map} +0 -0
- /package/build-module/{default-i18n.js.map → default-i18n.mjs.map} +0 -0
- /package/build-module/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/{sprintf.js.map → sprintf.mjs.map} +0 -0
- /package/build-module/{types.js.map → types.mjs.map} +0 -0
package/LICENSE.md
CHANGED
package/build/create-i18n.cjs
CHANGED
|
@@ -33,7 +33,7 @@ __export(create_i18n_exports, {
|
|
|
33
33
|
createI18n: () => createI18n
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(create_i18n_exports);
|
|
36
|
-
var import_tannin = __toESM(require("tannin")
|
|
36
|
+
var import_tannin = __toESM(require("tannin"));
|
|
37
37
|
var DEFAULT_LOCALE_DATA = {
|
|
38
38
|
"": {
|
|
39
39
|
plural_forms(n) {
|
package/build/index.cjs
CHANGED
|
@@ -47,7 +47,7 @@ __export(index_exports, {
|
|
|
47
47
|
module.exports = __toCommonJS(index_exports);
|
|
48
48
|
var import_sprintf = require("./sprintf.cjs");
|
|
49
49
|
__reExport(index_exports, require("./create-i18n.cjs"), module.exports);
|
|
50
|
-
var import_default_i18n = __toESM(require("./default-i18n.cjs")
|
|
50
|
+
var import_default_i18n = __toESM(require("./default-i18n.cjs"));
|
|
51
51
|
// Annotate the CommonJS export names for ESM import in node:
|
|
52
52
|
0 && (module.exports = {
|
|
53
53
|
__,
|
package/build/sprintf.cjs
CHANGED
|
@@ -33,7 +33,7 @@ __export(sprintf_exports, {
|
|
|
33
33
|
sprintf: () => sprintf
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(sprintf_exports);
|
|
36
|
-
var import_sprintf = __toESM(require("@tannin/sprintf")
|
|
36
|
+
var import_sprintf = __toESM(require("@tannin/sprintf"));
|
|
37
37
|
function sprintf(format, ...args) {
|
|
38
38
|
return (0, import_sprintf.default)(format, ...args);
|
|
39
39
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/i18n/src/default-i18n.ts
|
|
2
|
-
import { createI18n } from "./create-i18n.
|
|
2
|
+
import { createI18n } from "./create-i18n.mjs";
|
|
3
3
|
import { defaultHooks } from "@wordpress/hooks";
|
|
4
4
|
var i18n = createI18n(void 0, void 0, defaultHooks);
|
|
5
5
|
var default_i18n_default = i18n;
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
setLocaleData,
|
|
27
27
|
subscribe
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=default-i18n.
|
|
29
|
+
//# sourceMappingURL=default-i18n.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/i18n/src/index.ts
|
|
2
|
-
import { sprintf } from "./sprintf.
|
|
3
|
-
export * from "./create-i18n.
|
|
2
|
+
import { sprintf } from "./sprintf.mjs";
|
|
3
|
+
export * from "./create-i18n.mjs";
|
|
4
4
|
import {
|
|
5
5
|
default as default2,
|
|
6
6
|
setLocaleData,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
_nx,
|
|
14
14
|
isRTL,
|
|
15
15
|
hasTranslation
|
|
16
|
-
} from "./default-i18n.
|
|
16
|
+
} from "./default-i18n.mjs";
|
|
17
17
|
export {
|
|
18
18
|
__,
|
|
19
19
|
_n,
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
sprintf,
|
|
29
29
|
subscribe
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=index.
|
|
31
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/i18n",
|
|
3
|
-
"version": "6.9.1-next.
|
|
3
|
+
"version": "6.9.1-next.76cff8c98.0",
|
|
4
4
|
"description": "WordPress internationalization (i18n) library.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -29,13 +29,12 @@
|
|
|
29
29
|
"build-types",
|
|
30
30
|
"*.md"
|
|
31
31
|
],
|
|
32
|
-
"type": "module",
|
|
33
32
|
"main": "build/index.cjs",
|
|
34
|
-
"module": "build-module/index.
|
|
33
|
+
"module": "build-module/index.mjs",
|
|
35
34
|
"exports": {
|
|
36
35
|
".": {
|
|
37
36
|
"types": "./build-types/index.d.ts",
|
|
38
|
-
"import": "./build-module/index.
|
|
37
|
+
"import": "./build-module/index.mjs",
|
|
39
38
|
"require": "./build/index.cjs"
|
|
40
39
|
},
|
|
41
40
|
"./package.json": "./package.json"
|
|
@@ -48,13 +47,16 @@
|
|
|
48
47
|
},
|
|
49
48
|
"dependencies": {
|
|
50
49
|
"@tannin/sprintf": "^1.3.2",
|
|
51
|
-
"@wordpress/hooks": "^4.36.1-next.
|
|
50
|
+
"@wordpress/hooks": "^4.36.1-next.76cff8c98.0",
|
|
52
51
|
"gettext-parser": "^1.3.1",
|
|
53
52
|
"memize": "^2.1.0",
|
|
54
53
|
"tannin": "^1.2.0"
|
|
55
54
|
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"benchmark": "2.1.4"
|
|
57
|
+
},
|
|
56
58
|
"publishConfig": {
|
|
57
59
|
"access": "public"
|
|
58
60
|
},
|
|
59
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "368727f14b858e75179e140967c2d9ec965c8790"
|
|
60
62
|
}
|
package/build-module/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|