@hagicode/hagi18n 0.1.1 → 0.3.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.
@@ -81,6 +81,24 @@ doctor:
81
81
  2. `hagi18n.yaml` or `hagi18n.yml`
82
82
  3. package defaults
83
83
 
84
+ ## Audit identical-value allowlist
85
+
86
+ `auditIdenticalAllowlist` exempts exact translation values that are meant to equal the English baseline, such as brand names or technical identifiers. It maps a locale-relative YAML file path (forward slashes) to dot-separated scalar key paths:
87
+
88
+ ```yaml
89
+ auditIdenticalAllowlist:
90
+ common.yml:
91
+ - brand.name
92
+ pages/home.yml:
93
+ - hero.cta
94
+ ```
95
+
96
+ - It suppresses only the `baselineValueMatches` entry for the exact file and key path. It applies to every target locale and does not change any other audit check.
97
+ - It does not accept globs, patterns, or value-based rules.
98
+ - It is not `doctor.allowlist`. `doctor.allowlist` filters repository-scan findings by rule id and source file path and does not affect audit output.
99
+ - Across config layers, a higher-precedence list for a file replaces the lower-precedence list for that file. Files defined only in the lower layer keep their lists.
100
+ - When absent, the resolved allowlist is `{}` and audit output is unchanged.
101
+
84
102
  ## Current doctor defaults
85
103
 
86
104
  Default excluded directories:
@@ -5,18 +5,18 @@
5
5
  Run these from `repos/hagi18n`:
6
6
 
7
7
  ```bash
8
- npm test
9
- npm run build
10
- npm run lint
11
- npm run pack:check
8
+ pnpm test
9
+ pnpm run build
10
+ pnpm run lint
11
+ pnpm run pack:check
12
12
  ```
13
13
 
14
14
  Useful package maintenance helpers:
15
15
 
16
16
  ```bash
17
- npm run publish:check-prereqs
18
- npm run publish:prepare-dev-version
19
- npm run publish:verify-release
17
+ pnpm run publish:check-prereqs
18
+ pnpm run publish:prepare-dev-version
19
+ pnpm run publish:verify-release
20
20
  ```
21
21
 
22
22
  ## Source map
@@ -36,9 +36,9 @@ npm run publish:verify-release
36
36
  ## Validation expectations after edits
37
37
 
38
38
  - Run the narrowest relevant tests first if the change is isolated.
39
- - Run `npm test` after source or skill-related packaging changes.
40
- - Run `npm run build` after TypeScript or export changes.
41
- - Run `npm run pack:check` when package contents or publish-facing files change.
39
+ - Run `pnpm test` after source or skill-related packaging changes.
40
+ - Run `pnpm run build` after TypeScript or export changes.
41
+ - Run `pnpm run pack:check` when package contents or publish-facing files change.
42
42
 
43
43
  ## Behavior references
44
44