@katerynakhar/i18n-keeper 0.17.0 → 0.17.1
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/dist/index.d.ts +24 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/package.json +10 -2
- package/src/index.ts +41 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The library surface.
|
|
3
|
+
*
|
|
4
|
+
* The CLI and the MCP server are two front ends over the same functions; this
|
|
5
|
+
* is the third door, for anything that wants to embed the checks — an editor
|
|
6
|
+
* plugin, a CI script, another tool. Only what a caller outside this package
|
|
7
|
+
* can reasonably need is re-exported: everything here is either used by the
|
|
8
|
+
* CLI or required to describe what it returns.
|
|
9
|
+
*/
|
|
10
|
+
export { check } from './check.js';
|
|
11
|
+
export { detectProject, loadBundle, sourceIsMsgid, ScanError } from './scan.js';
|
|
12
|
+
export type { DetectOptions } from './scan.js';
|
|
13
|
+
export { glossaryPath, loadGlossary, GlossaryError } from './glossary.js';
|
|
14
|
+
export type { Glossary } from './glossary.js';
|
|
15
|
+
export { limitsPath, loadLimits, LimitsError } from './lengths.js';
|
|
16
|
+
export type { Limits } from './lengths.js';
|
|
17
|
+
export { emptyMemory, loadMemory, memoryPath, MemoryError } from './memory.js';
|
|
18
|
+
export type { Memory } from './memory.js';
|
|
19
|
+
export { FormatError, describeFormatError } from './formats/error.js';
|
|
20
|
+
export { DEFAULT_RULES, RULE_IDS } from './types.js';
|
|
21
|
+
export type { Config, Finding, LocaleBundle, LocaleStat, Report, RuleId, RuleSetting, Severity, } from './types.js';
|
|
22
|
+
export { ALL_SYNTAXES, DEFAULT_SYNTAXES, extractPlaceholders } from './placeholders.js';
|
|
23
|
+
export { categoriesFor, splitPluralSuffix } from './plurals.js';
|
|
24
|
+
export { VERSION } from './version.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The library surface.
|
|
3
|
+
*
|
|
4
|
+
* The CLI and the MCP server are two front ends over the same functions; this
|
|
5
|
+
* is the third door, for anything that wants to embed the checks — an editor
|
|
6
|
+
* plugin, a CI script, another tool. Only what a caller outside this package
|
|
7
|
+
* can reasonably need is re-exported: everything here is either used by the
|
|
8
|
+
* CLI or required to describe what it returns.
|
|
9
|
+
*/
|
|
10
|
+
export { check } from './check.js';
|
|
11
|
+
export { detectProject, loadBundle, sourceIsMsgid, ScanError } from './scan.js';
|
|
12
|
+
export { glossaryPath, loadGlossary, GlossaryError } from './glossary.js';
|
|
13
|
+
export { limitsPath, loadLimits, LimitsError } from './lengths.js';
|
|
14
|
+
export { emptyMemory, loadMemory, memoryPath, MemoryError } from './memory.js';
|
|
15
|
+
export { FormatError, describeFormatError } from './formats/error.js';
|
|
16
|
+
export { DEFAULT_RULES, RULE_IDS } from './types.js';
|
|
17
|
+
export { ALL_SYNTAXES, DEFAULT_SYNTAXES, extractPlaceholders } from './placeholders.js';
|
|
18
|
+
export { categoriesFor, splitPluralSuffix } from './plurals.js';
|
|
19
|
+
export { VERSION } from './version.js';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAGhF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG1E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGnE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/E,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAYrD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@katerynakhar/i18n-keeper",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "Deterministic i18n linter for JSON, Laravel PHP, gettext and YAML locale files, as a CLI and an MCP server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -74,5 +74,13 @@
|
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/node": "^22.10.2",
|
|
76
76
|
"typescript": "^5.7.2"
|
|
77
|
-
}
|
|
77
|
+
},
|
|
78
|
+
"exports": {
|
|
79
|
+
".": {
|
|
80
|
+
"types": "./dist/index.d.ts",
|
|
81
|
+
"import": "./dist/index.js"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"main": "./dist/index.js",
|
|
85
|
+
"types": "./dist/index.d.ts"
|
|
78
86
|
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The library surface.
|
|
3
|
+
*
|
|
4
|
+
* The CLI and the MCP server are two front ends over the same functions; this
|
|
5
|
+
* is the third door, for anything that wants to embed the checks — an editor
|
|
6
|
+
* plugin, a CI script, another tool. Only what a caller outside this package
|
|
7
|
+
* can reasonably need is re-exported: everything here is either used by the
|
|
8
|
+
* CLI or required to describe what it returns.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export { check } from './check.js';
|
|
12
|
+
export { detectProject, loadBundle, sourceIsMsgid, ScanError } from './scan.js';
|
|
13
|
+
export type { DetectOptions } from './scan.js';
|
|
14
|
+
|
|
15
|
+
export { glossaryPath, loadGlossary, GlossaryError } from './glossary.js';
|
|
16
|
+
export type { Glossary } from './glossary.js';
|
|
17
|
+
|
|
18
|
+
export { limitsPath, loadLimits, LimitsError } from './lengths.js';
|
|
19
|
+
export type { Limits } from './lengths.js';
|
|
20
|
+
|
|
21
|
+
export { emptyMemory, loadMemory, memoryPath, MemoryError } from './memory.js';
|
|
22
|
+
export type { Memory } from './memory.js';
|
|
23
|
+
|
|
24
|
+
export { FormatError, describeFormatError } from './formats/error.js';
|
|
25
|
+
|
|
26
|
+
export { DEFAULT_RULES, RULE_IDS } from './types.js';
|
|
27
|
+
export type {
|
|
28
|
+
Config,
|
|
29
|
+
Finding,
|
|
30
|
+
LocaleBundle,
|
|
31
|
+
LocaleStat,
|
|
32
|
+
Report,
|
|
33
|
+
RuleId,
|
|
34
|
+
RuleSetting,
|
|
35
|
+
Severity,
|
|
36
|
+
} from './types.js';
|
|
37
|
+
|
|
38
|
+
export { ALL_SYNTAXES, DEFAULT_SYNTAXES, extractPlaceholders } from './placeholders.js';
|
|
39
|
+
export { categoriesFor, splitPluralSuffix } from './plurals.js';
|
|
40
|
+
|
|
41
|
+
export { VERSION } from './version.js';
|