@ultimat3/i18n 18.0.0 → 19.0.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/package.json +2 -2
- package/src/index.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/i18n",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.0",
|
|
4
4
|
"description": "Dependency-free translator, catalog flattening, locale negotiation and loud missing-key rendering",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ultimat3/core": "
|
|
38
|
+
"@ultimat3/core": "19.0.0"
|
|
39
39
|
}
|
|
40
40
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
/** Public surface of @ultimat3/i18n. Explicit exports only. */
|
|
2
2
|
|
|
3
|
+
// Anchored on purpose, and NOT by the `sideEffects` array: Bun reads any array as `false` and drops
|
|
4
|
+
// the module regardless (oven-sh/bun#40650). `registerBaseCatalog` here fills the catalog `t()`
|
|
5
|
+
// falls back to, and `t()` never imports this module — so without the bare import every framework
|
|
6
|
+
// string renders as its ⟦key⟧ placeholder. `SIDE_EFFECTS_ANCHORS` carries the argument and
|
|
7
|
+
// `bun run side-effects` enforces it.
|
|
8
|
+
import './framework';
|
|
9
|
+
|
|
3
10
|
export {
|
|
4
11
|
type Catalog,
|
|
5
12
|
catalogKeys,
|