@intlify/core 11.4.18 → 12.0.0-alpha.10
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 +1 -1
- package/README.md +6 -15
- package/dist/core.d.ts +1 -4
- package/dist/core.esm-browser.js +2420 -3465
- package/dist/core.esm-browser.prod.js +1495 -6
- package/dist/core.esm-bundler.js +1 -1
- package/dist/core.global.js +2745 -3796
- package/dist/core.global.prod.js +1517 -6
- package/dist/core.js +6 -0
- package/dist/core.node.js +6 -0
- package/dist/core.runtime.esm-browser.js +1484 -1976
- package/dist/core.runtime.esm-browser.prod.js +914 -6
- package/dist/core.runtime.esm-bundler.js +1 -1
- package/dist/core.runtime.global.js +1784 -2282
- package/dist/core.runtime.global.prod.js +917 -6
- package/dist/core.runtime.js +17 -0
- package/dist/core.runtime.node.js +17 -0
- package/package.json +41 -48
- package/dist/core.cjs +0 -26
- package/dist/core.cjs.js +0 -1
- package/dist/core.cjs.prod.js +0 -1
- package/dist/core.mjs +0 -31
- package/dist/core.node.mjs +0 -31
- package/dist/core.prod.cjs +0 -26
- package/dist/core.runtime.mjs +0 -31
- package/dist/core.runtime.node.mjs +0 -31
- package/index.js +0 -7
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @intlify/core v12.0.0-alpha.10
|
|
3
|
+
* (c) 2016-present kazuya kawaguchi and contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
import { getGlobalThis } from "@intlify/shared";
|
|
7
|
+
export * from "@intlify/core-base";
|
|
8
|
+
// packages/core-base/src/misc.ts
|
|
9
|
+
/**
|
|
10
|
+
* This is only called in esm-bundler builds.
|
|
11
|
+
* istanbul-ignore-next
|
|
12
|
+
*/
|
|
13
|
+
function initFeatureFlags() {
|
|
14
|
+
if (typeof __INTLIFY_DROP_MESSAGE_COMPILER__ !== "boolean") getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = false;
|
|
15
|
+
}
|
|
16
|
+
// packages/core/src/runtime.ts
|
|
17
|
+
initFeatureFlags();
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @intlify/core v12.0.0-alpha.10
|
|
3
|
+
* (c) 2016-present kazuya kawaguchi and contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
import { getGlobalThis } from "@intlify/shared";
|
|
7
|
+
export * from "@intlify/core-base";
|
|
8
|
+
// packages/core-base/src/misc.ts
|
|
9
|
+
/**
|
|
10
|
+
* This is only called in esm-bundler builds.
|
|
11
|
+
* istanbul-ignore-next
|
|
12
|
+
*/
|
|
13
|
+
function initFeatureFlags() {
|
|
14
|
+
if (typeof __INTLIFY_DROP_MESSAGE_COMPILER__ !== "boolean") getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = false;
|
|
15
|
+
}
|
|
16
|
+
// packages/core/src/runtime.ts
|
|
17
|
+
initFeatureFlags();
|
package/package.json
CHANGED
|
@@ -1,43 +1,63 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlify/core",
|
|
3
|
-
"version": "11.4.18",
|
|
4
3
|
"description": "@intlify/core",
|
|
5
|
-
"
|
|
6
|
-
"core",
|
|
7
|
-
"fundamental",
|
|
8
|
-
"i18n",
|
|
9
|
-
"internationalization",
|
|
10
|
-
"intlify"
|
|
11
|
-
],
|
|
12
|
-
"license": "MIT",
|
|
4
|
+
"version": "12.0.0-alpha.10",
|
|
13
5
|
"author": {
|
|
14
6
|
"name": "kazuya kawaguchi",
|
|
15
7
|
"email": "kawakazu80@gmail.com"
|
|
16
8
|
},
|
|
17
|
-
"
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"funding": "https://github.com/sponsors/kazupon",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/intlify/vue-i18n/issues"
|
|
13
|
+
},
|
|
18
14
|
"repository": {
|
|
19
15
|
"type": "git",
|
|
20
16
|
"url": "git+https://github.com/intlify/vue-i18n.git",
|
|
21
17
|
"directory": "packages/core"
|
|
22
18
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
19
|
+
"keywords": [
|
|
20
|
+
"core",
|
|
21
|
+
"fundamental",
|
|
22
|
+
"i18n",
|
|
23
|
+
"internationalization",
|
|
24
|
+
"intlify"
|
|
25
|
+
],
|
|
26
|
+
"homepage": "https://github.com/intlify/vue-i18n/tree/master/packages/core#readme",
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">= 22"
|
|
25
32
|
},
|
|
33
|
+
"type": "module",
|
|
34
|
+
"sideEffects": false,
|
|
26
35
|
"files": [
|
|
27
|
-
"index.js",
|
|
28
36
|
"dist"
|
|
29
37
|
],
|
|
30
|
-
"
|
|
31
|
-
"module": "dist/core.mjs",
|
|
38
|
+
"module": "dist/core.js",
|
|
32
39
|
"unpkg": "dist/core.global.js",
|
|
33
40
|
"jsdelivr": "dist/core.global.js",
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"types": "./dist/core.d.ts",
|
|
44
|
+
"node": {
|
|
45
|
+
"import": {
|
|
46
|
+
"production": "./dist/core.node.js",
|
|
47
|
+
"development": "./dist/core.node.js",
|
|
48
|
+
"default": "./dist/core.node.js"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"import": "./dist/core.js",
|
|
52
|
+
"browser": "./dist/core.esm-browser.js"
|
|
53
|
+
},
|
|
54
|
+
"./dist/*": "./dist/*",
|
|
55
|
+
"./package.json": "./package.json"
|
|
56
|
+
},
|
|
34
57
|
"types": "dist/core.d.ts",
|
|
35
58
|
"dependencies": {
|
|
36
|
-
"@intlify/
|
|
37
|
-
"@intlify/
|
|
38
|
-
},
|
|
39
|
-
"engines": {
|
|
40
|
-
"node": ">= 22"
|
|
59
|
+
"@intlify/core-base": "12.0.0-alpha.10",
|
|
60
|
+
"@intlify/shared": "12.0.0-alpha.10"
|
|
41
61
|
},
|
|
42
62
|
"buildOptions": {
|
|
43
63
|
"name": "IntlifyCore",
|
|
@@ -48,35 +68,8 @@
|
|
|
48
68
|
"mjs-node-runtime",
|
|
49
69
|
"browser",
|
|
50
70
|
"browser-runtime",
|
|
51
|
-
"cjs",
|
|
52
71
|
"global",
|
|
53
72
|
"global-runtime"
|
|
54
73
|
]
|
|
55
|
-
}
|
|
56
|
-
"exports": {
|
|
57
|
-
".": {
|
|
58
|
-
"types": "./dist/core.d.ts",
|
|
59
|
-
"import": "./dist/core.mjs",
|
|
60
|
-
"browser": "./dist/core.esm-browser.js",
|
|
61
|
-
"node": {
|
|
62
|
-
"import": {
|
|
63
|
-
"production": "./dist/core.prod.node.mjs",
|
|
64
|
-
"development": "./dist/core.node.mjs",
|
|
65
|
-
"default": "./dist/core.node.mjs"
|
|
66
|
-
},
|
|
67
|
-
"require": {
|
|
68
|
-
"production": "./dist/core.prod.cjs",
|
|
69
|
-
"development": "./dist/core.cjs",
|
|
70
|
-
"default": "./index.js"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"./dist/*": "./dist/*",
|
|
75
|
-
"./package.json": "./package.json"
|
|
76
|
-
},
|
|
77
|
-
"funding": "https://github.com/sponsors/kazupon",
|
|
78
|
-
"publishConfig": {
|
|
79
|
-
"access": "public"
|
|
80
|
-
},
|
|
81
|
-
"sideEffects": true
|
|
74
|
+
}
|
|
82
75
|
}
|
package/dist/core.cjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* core v11.4.18
|
|
3
|
-
* (c) 2026 kazuya kawaguchi
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
'use strict';
|
|
7
|
-
|
|
8
|
-
var coreBase = require('@intlify/core-base');
|
|
9
|
-
|
|
10
|
-
// register message compiler at @intlify/core
|
|
11
|
-
coreBase.registerMessageCompiler(coreBase.compile);
|
|
12
|
-
// register message resolver at @intlify/core
|
|
13
|
-
coreBase.registerMessageResolver(coreBase.resolveValue);
|
|
14
|
-
// register fallback locale at @intlify/core
|
|
15
|
-
coreBase.registerLocaleFallbacker(coreBase.fallbackWithLocaleChain);
|
|
16
|
-
|
|
17
|
-
Object.prototype.hasOwnProperty.call(coreBase, '__proto__') &&
|
|
18
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
19
|
-
Object.defineProperty(exports, '__proto__', {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
value: coreBase['__proto__']
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
Object.keys(coreBase).forEach(function (k) {
|
|
25
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = coreBase[k];
|
|
26
|
-
});
|
package/dist/core.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('../dist/core.cjs')
|
package/dist/core.cjs.prod.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('../dist/core.prod.cjs')
|
package/dist/core.mjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* core v11.4.18
|
|
3
|
-
* (c) 2026 kazuya kawaguchi
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { registerMessageCompiler, compile, registerMessageResolver, resolveValue, registerLocaleFallbacker, fallbackWithLocaleChain } from '@intlify/core-base';
|
|
7
|
-
export * from '@intlify/core-base';
|
|
8
|
-
import { getGlobalThis } from '@intlify/shared';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* This is only called in esm-bundler builds.
|
|
12
|
-
* istanbul-ignore-next
|
|
13
|
-
*/
|
|
14
|
-
function initFeatureFlags() {
|
|
15
|
-
if (typeof __INTLIFY_PROD_DEVTOOLS__ !== 'boolean') {
|
|
16
|
-
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
|
|
17
|
-
}
|
|
18
|
-
if (typeof __INTLIFY_DROP_MESSAGE_COMPILER__ !== 'boolean') {
|
|
19
|
-
getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = false;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
initFeatureFlags();
|
|
25
|
-
}
|
|
26
|
-
// register message compiler at @intlify/core
|
|
27
|
-
registerMessageCompiler(compile);
|
|
28
|
-
// register message resolver at @intlify/core
|
|
29
|
-
registerMessageResolver(resolveValue);
|
|
30
|
-
// register fallback locale at @intlify/core
|
|
31
|
-
registerLocaleFallbacker(fallbackWithLocaleChain);
|
package/dist/core.node.mjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* core v11.4.18
|
|
3
|
-
* (c) 2026 kazuya kawaguchi
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { registerMessageCompiler, compile, registerMessageResolver, resolveValue, registerLocaleFallbacker, fallbackWithLocaleChain } from '@intlify/core-base';
|
|
7
|
-
export * from '@intlify/core-base';
|
|
8
|
-
import { getGlobalThis } from '@intlify/shared';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* This is only called in esm-bundler builds.
|
|
12
|
-
* istanbul-ignore-next
|
|
13
|
-
*/
|
|
14
|
-
function initFeatureFlags() {
|
|
15
|
-
if (typeof __INTLIFY_PROD_DEVTOOLS__ !== 'boolean') {
|
|
16
|
-
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
|
|
17
|
-
}
|
|
18
|
-
if (typeof __INTLIFY_DROP_MESSAGE_COMPILER__ !== 'boolean') {
|
|
19
|
-
getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = false;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
initFeatureFlags();
|
|
25
|
-
}
|
|
26
|
-
// register message compiler at @intlify/core
|
|
27
|
-
registerMessageCompiler(compile);
|
|
28
|
-
// register message resolver at @intlify/core
|
|
29
|
-
registerMessageResolver(resolveValue);
|
|
30
|
-
// register fallback locale at @intlify/core
|
|
31
|
-
registerLocaleFallbacker(fallbackWithLocaleChain);
|
package/dist/core.prod.cjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* core v11.4.18
|
|
3
|
-
* (c) 2026 kazuya kawaguchi
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
'use strict';
|
|
7
|
-
|
|
8
|
-
var coreBase = require('@intlify/core-base');
|
|
9
|
-
|
|
10
|
-
// register message compiler at @intlify/core
|
|
11
|
-
coreBase.registerMessageCompiler(coreBase.compile);
|
|
12
|
-
// register message resolver at @intlify/core
|
|
13
|
-
coreBase.registerMessageResolver(coreBase.resolveValue);
|
|
14
|
-
// register fallback locale at @intlify/core
|
|
15
|
-
coreBase.registerLocaleFallbacker(coreBase.fallbackWithLocaleChain);
|
|
16
|
-
|
|
17
|
-
Object.prototype.hasOwnProperty.call(coreBase, '__proto__') &&
|
|
18
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
19
|
-
Object.defineProperty(exports, '__proto__', {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
value: coreBase['__proto__']
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
Object.keys(coreBase).forEach(function (k) {
|
|
25
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = coreBase[k];
|
|
26
|
-
});
|
package/dist/core.runtime.mjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* core v11.4.18
|
|
3
|
-
* (c) 2026 kazuya kawaguchi
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { registerMessageCompiler, compile, registerMessageResolver, resolveValue, registerLocaleFallbacker, fallbackWithLocaleChain } from '@intlify/core-base';
|
|
7
|
-
export * from '@intlify/core-base';
|
|
8
|
-
import { getGlobalThis } from '@intlify/shared';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* This is only called in esm-bundler builds.
|
|
12
|
-
* istanbul-ignore-next
|
|
13
|
-
*/
|
|
14
|
-
function initFeatureFlags() {
|
|
15
|
-
if (typeof __INTLIFY_PROD_DEVTOOLS__ !== 'boolean') {
|
|
16
|
-
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
|
|
17
|
-
}
|
|
18
|
-
if (typeof __INTLIFY_DROP_MESSAGE_COMPILER__ !== 'boolean') {
|
|
19
|
-
getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = false;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
initFeatureFlags();
|
|
25
|
-
}
|
|
26
|
-
// register message compiler for jit compilation
|
|
27
|
-
registerMessageCompiler(compile);
|
|
28
|
-
// register message resolver at @intlify/core
|
|
29
|
-
registerMessageResolver(resolveValue);
|
|
30
|
-
// register fallback locale at @intlify/core
|
|
31
|
-
registerLocaleFallbacker(fallbackWithLocaleChain);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* core v11.4.18
|
|
3
|
-
* (c) 2026 kazuya kawaguchi
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { registerMessageCompiler, compile, registerMessageResolver, resolveValue, registerLocaleFallbacker, fallbackWithLocaleChain } from '@intlify/core-base';
|
|
7
|
-
export * from '@intlify/core-base';
|
|
8
|
-
import { getGlobalThis } from '@intlify/shared';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* This is only called in esm-bundler builds.
|
|
12
|
-
* istanbul-ignore-next
|
|
13
|
-
*/
|
|
14
|
-
function initFeatureFlags() {
|
|
15
|
-
if (typeof __INTLIFY_PROD_DEVTOOLS__ !== 'boolean') {
|
|
16
|
-
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
|
|
17
|
-
}
|
|
18
|
-
if (typeof __INTLIFY_DROP_MESSAGE_COMPILER__ !== 'boolean') {
|
|
19
|
-
getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = false;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
initFeatureFlags();
|
|
25
|
-
}
|
|
26
|
-
// register message compiler for jit compilation
|
|
27
|
-
registerMessageCompiler(compile);
|
|
28
|
-
// register message resolver at @intlify/core
|
|
29
|
-
registerMessageResolver(resolveValue);
|
|
30
|
-
// register fallback locale at @intlify/core
|
|
31
|
-
registerLocaleFallbacker(fallbackWithLocaleChain);
|