@zerotal/i18n 1.3.0 → 1.5.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/CHANGELOG.md +21 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,30 @@ All notable changes to this package are documented here. The format is
|
|
|
4
4
|
based on [Keep a Changelog](https://keepachangelog.com/); this package
|
|
5
5
|
follows the Zerotal monorepo's unified versioning.
|
|
6
6
|
|
|
7
|
-
**Maturity: `
|
|
7
|
+
**Maturity: `stable`**
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [1.5.0] — 2026-08-15
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **Tests for the `Lang` facade and the `t()` global.** The translator itself was
|
|
16
|
+
covered thoroughly, but nothing in an application calls it directly — apps call
|
|
17
|
+
`Lang.translate(...)` or `t(...)`, and those resolve through the container and
|
|
18
|
+
the ambient locale context first. That path was untested, and its failure mode is
|
|
19
|
+
quiet: a facade resolving the wrong instance, or a helper ignoring the request's
|
|
20
|
+
locale, returns a plausible string in the wrong language rather than throwing.
|
|
21
|
+
Now pinned, including that the ambient locale wins inside `I18nContext.run()`,
|
|
22
|
+
does not leak past it, and yields to an explicit locale argument. 21 tests → 31.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- **Maturity is now `stable`** — the public API follows SemVer strictly for the rest
|
|
27
|
+
of the 1.x line. All nine promised exports are documented, every one deliberately
|
|
28
|
+
public (no `@internal` triage was needed here — the surface was already the API),
|
|
29
|
+
the only dependency is `@zerotal/core`, and there has never been a breaking change.
|
|
30
|
+
|
|
11
31
|
## [1.0.3] — 2026-08-07
|
|
12
32
|
|
|
13
33
|
### Changed
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerotal/i18n",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"maturity": "
|
|
5
|
+
"maturity": "stable",
|
|
6
6
|
"private": false,
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typecheck": "tsc --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@zerotal/core": "1.
|
|
35
|
+
"@zerotal/core": "1.5.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "^5.8.0"
|