i18next-cli 1.36.1 → 1.37.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/README.md +3 -0
- package/dist/cjs/cli.js +1 -1
- package/dist/cjs/linter.js +130 -3
- package/dist/esm/cli.js +1 -1
- package/dist/esm/linter.js +130 -3
- package/package.json +1 -1
- package/types/linter.d.ts +3 -3
- package/types/linter.d.ts.map +1 -1
- package/types/types.d.ts +2 -0
- package/types/types.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -480,6 +480,9 @@ export default defineConfig({
|
|
|
480
480
|
|
|
481
481
|
/** Glob pattern(s) for files to ignore during lint (in addition to those defined during extract) */
|
|
482
482
|
ignore: ['additional/stuff/**'],
|
|
483
|
+
|
|
484
|
+
/** Enable linting for interpolation parameter errors in translation calls (default: true) */
|
|
485
|
+
checkInterpolationParams: true,
|
|
483
486
|
},
|
|
484
487
|
|
|
485
488
|
// TypeScript type generation
|
package/dist/cjs/cli.js
CHANGED
|
@@ -28,7 +28,7 @@ const program = new commander.Command();
|
|
|
28
28
|
program
|
|
29
29
|
.name('i18next-cli')
|
|
30
30
|
.description('A unified, high-performance i18next CLI.')
|
|
31
|
-
.version('1.
|
|
31
|
+
.version('1.37.0'); // This string is replaced with the actual version at build time by rollup
|
|
32
32
|
// new: global config override option
|
|
33
33
|
program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
|
|
34
34
|
program
|
package/dist/cjs/linter.js
CHANGED
|
@@ -8,6 +8,127 @@ var node_events = require('node:events');
|
|
|
8
8
|
var chalk = require('chalk');
|
|
9
9
|
var ora = require('ora');
|
|
10
10
|
|
|
11
|
+
// Helper to extract interpolation keys from a translation string
|
|
12
|
+
function extractInterpolationKeys(str, config) {
|
|
13
|
+
const prefix = config.extract.interpolationPrefix ?? '{{';
|
|
14
|
+
const suffix = config.extract.interpolationSuffix ?? '}}';
|
|
15
|
+
// Regex to match {{key}}
|
|
16
|
+
const regex = new RegExp(`${prefix.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&')}\\s*([\\w.-]+)\\s*${suffix.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&')}`, 'g');
|
|
17
|
+
const keys = [];
|
|
18
|
+
let match;
|
|
19
|
+
while ((match = regex.exec(str))) {
|
|
20
|
+
if (match[1])
|
|
21
|
+
keys.push(match[1]);
|
|
22
|
+
}
|
|
23
|
+
return keys;
|
|
24
|
+
}
|
|
25
|
+
// Helper to lint interpolation parameter errors in t() calls
|
|
26
|
+
function lintInterpolationParams(ast, code, config) {
|
|
27
|
+
const issues = [];
|
|
28
|
+
// Only run if enabled (default true)
|
|
29
|
+
const enabled = config.lint?.checkInterpolationParams !== false;
|
|
30
|
+
if (!enabled)
|
|
31
|
+
return issues;
|
|
32
|
+
// Traverse AST for CallExpressions matching t() or i18n.t()
|
|
33
|
+
function walk(node, ancestors) {
|
|
34
|
+
if (!node || typeof node !== 'object')
|
|
35
|
+
return;
|
|
36
|
+
const currentAncestors = [...ancestors, node];
|
|
37
|
+
// Handle CallExpression nodes
|
|
38
|
+
if (node.type === 'CallExpression') {
|
|
39
|
+
handleCallExpression(node);
|
|
40
|
+
}
|
|
41
|
+
// Recurse into all child nodes (arrays and objects), skip 'span'
|
|
42
|
+
for (const key of Object.keys(node)) {
|
|
43
|
+
if (key === 'span')
|
|
44
|
+
continue;
|
|
45
|
+
const child = node[key];
|
|
46
|
+
if (Array.isArray(child)) {
|
|
47
|
+
for (const item of child) {
|
|
48
|
+
if (item && typeof item === 'object')
|
|
49
|
+
walk(item, currentAncestors);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
else if (child && typeof child === 'object') {
|
|
53
|
+
walk(child, currentAncestors);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
// Modularized CallExpression handler
|
|
58
|
+
function handleCallExpression(node, ancestors) {
|
|
59
|
+
let calleeName = '';
|
|
60
|
+
if (node.callee) {
|
|
61
|
+
if (node.callee.type === 'Identifier' && node.callee.value) {
|
|
62
|
+
calleeName = node.callee.value;
|
|
63
|
+
}
|
|
64
|
+
else if (node.callee.type === 'Identifier' && node.callee.name) {
|
|
65
|
+
calleeName = node.callee.name;
|
|
66
|
+
}
|
|
67
|
+
else if (node.callee.type === 'MemberExpression' && node.callee.property?.type === 'Identifier') {
|
|
68
|
+
calleeName = node.callee.property.value || node.callee.property.name;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const fnPatterns = config.extract.functions || ['t', '*.t'];
|
|
72
|
+
let matches = false;
|
|
73
|
+
for (const pattern of fnPatterns) {
|
|
74
|
+
if (pattern.startsWith('*.')) {
|
|
75
|
+
if (calleeName === pattern.slice(2))
|
|
76
|
+
matches = true;
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
if (calleeName === pattern)
|
|
80
|
+
matches = true;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (matches) {
|
|
84
|
+
let str = '';
|
|
85
|
+
const arg0 = node.arguments?.[0]?.expression;
|
|
86
|
+
const arg1 = node.arguments?.[1]?.expression;
|
|
87
|
+
if (arg0?.type === 'StringLiteral')
|
|
88
|
+
str = arg0.value;
|
|
89
|
+
if (str) {
|
|
90
|
+
const keys = extractInterpolationKeys(str, config);
|
|
91
|
+
let paramKeys = [];
|
|
92
|
+
if (arg1?.type === 'ObjectExpression') {
|
|
93
|
+
paramKeys = arg1.properties
|
|
94
|
+
.filter((p) => p.type === 'KeyValueProperty')
|
|
95
|
+
.map((p) => {
|
|
96
|
+
if (p.key?.type === 'Identifier')
|
|
97
|
+
return p.key.value;
|
|
98
|
+
if (p.key?.type === 'StringLiteral')
|
|
99
|
+
return p.key.value;
|
|
100
|
+
return undefined;
|
|
101
|
+
})
|
|
102
|
+
.filter((k) => typeof k === 'string');
|
|
103
|
+
}
|
|
104
|
+
if (!Array.isArray(paramKeys))
|
|
105
|
+
paramKeys = [];
|
|
106
|
+
for (const k of keys) {
|
|
107
|
+
if (!paramKeys.includes(k)) {
|
|
108
|
+
issues.push({
|
|
109
|
+
text: `Interpolation parameter "${k}" was not provided`,
|
|
110
|
+
line: getLineNumber(node.span?.start ?? 0),
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
for (const pk of paramKeys) {
|
|
115
|
+
if (!keys.includes(pk)) {
|
|
116
|
+
issues.push({
|
|
117
|
+
text: `Parameter "${pk}" is not used in translation string`,
|
|
118
|
+
line: getLineNumber(node.span?.start ?? 0),
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
// Helper for line number
|
|
126
|
+
const getLineNumber = (pos) => {
|
|
127
|
+
return code.substring(0, pos).split('\n').length;
|
|
128
|
+
};
|
|
129
|
+
walk(ast, []);
|
|
130
|
+
return issues;
|
|
131
|
+
}
|
|
11
132
|
const recommendedAcceptedTags = [
|
|
12
133
|
'a', 'abbr', 'address', 'article', 'aside', 'bdi', 'bdo', 'blockquote', 'button', 'caption', 'cite', 'code', 'data', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dt', 'em', 'figcaption', 'footer', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'img', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'mark', 'nav', 'option', 'output', 'p', 'pre', 'q', 's', 'samp', 'section', 'small', 'span', 'strong', 'sub', 'summary', 'sup', 'td', 'textarea', 'th', 'time', 'title', 'var'
|
|
13
134
|
].map(s => s.toLowerCase());
|
|
@@ -104,10 +225,14 @@ class Linter extends node_events.EventEmitter {
|
|
|
104
225
|
continue;
|
|
105
226
|
}
|
|
106
227
|
}
|
|
228
|
+
// Collect hardcoded string issues
|
|
107
229
|
const hardcodedStrings = findHardcodedStrings(ast, code, config);
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
230
|
+
// Collect interpolation parameter issues
|
|
231
|
+
const interpolationIssues = lintInterpolationParams(ast, code, config);
|
|
232
|
+
const allIssues = [...hardcodedStrings, ...interpolationIssues];
|
|
233
|
+
if (allIssues.length > 0) {
|
|
234
|
+
totalIssues += allIssues.length;
|
|
235
|
+
issuesByFile.set(file, allIssues);
|
|
111
236
|
}
|
|
112
237
|
}
|
|
113
238
|
const files = Object.fromEntries(issuesByFile.entries());
|
|
@@ -200,6 +325,8 @@ const isUrlOrPath = (text) => /^(https|http|\/\/|^\/)/.test(text);
|
|
|
200
325
|
* - Filters out ellipsis/spread operator notation `...`
|
|
201
326
|
* - Only reports non-empty, trimmed strings
|
|
202
327
|
*
|
|
328
|
+
* Also checks for interpolation parameter errors in translation function calls if enabled via config.
|
|
329
|
+
*
|
|
203
330
|
* @param config - The toolkit configuration with input patterns and component names
|
|
204
331
|
*
|
|
205
332
|
* @example
|
package/dist/esm/cli.js
CHANGED
|
@@ -26,7 +26,7 @@ const program = new Command();
|
|
|
26
26
|
program
|
|
27
27
|
.name('i18next-cli')
|
|
28
28
|
.description('A unified, high-performance i18next CLI.')
|
|
29
|
-
.version('1.
|
|
29
|
+
.version('1.37.0'); // This string is replaced with the actual version at build time by rollup
|
|
30
30
|
// new: global config override option
|
|
31
31
|
program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
|
|
32
32
|
program
|
package/dist/esm/linter.js
CHANGED
|
@@ -6,6 +6,127 @@ import { EventEmitter } from 'node:events';
|
|
|
6
6
|
import chalk from 'chalk';
|
|
7
7
|
import ora from 'ora';
|
|
8
8
|
|
|
9
|
+
// Helper to extract interpolation keys from a translation string
|
|
10
|
+
function extractInterpolationKeys(str, config) {
|
|
11
|
+
const prefix = config.extract.interpolationPrefix ?? '{{';
|
|
12
|
+
const suffix = config.extract.interpolationSuffix ?? '}}';
|
|
13
|
+
// Regex to match {{key}}
|
|
14
|
+
const regex = new RegExp(`${prefix.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&')}\\s*([\\w.-]+)\\s*${suffix.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&')}`, 'g');
|
|
15
|
+
const keys = [];
|
|
16
|
+
let match;
|
|
17
|
+
while ((match = regex.exec(str))) {
|
|
18
|
+
if (match[1])
|
|
19
|
+
keys.push(match[1]);
|
|
20
|
+
}
|
|
21
|
+
return keys;
|
|
22
|
+
}
|
|
23
|
+
// Helper to lint interpolation parameter errors in t() calls
|
|
24
|
+
function lintInterpolationParams(ast, code, config) {
|
|
25
|
+
const issues = [];
|
|
26
|
+
// Only run if enabled (default true)
|
|
27
|
+
const enabled = config.lint?.checkInterpolationParams !== false;
|
|
28
|
+
if (!enabled)
|
|
29
|
+
return issues;
|
|
30
|
+
// Traverse AST for CallExpressions matching t() or i18n.t()
|
|
31
|
+
function walk(node, ancestors) {
|
|
32
|
+
if (!node || typeof node !== 'object')
|
|
33
|
+
return;
|
|
34
|
+
const currentAncestors = [...ancestors, node];
|
|
35
|
+
// Handle CallExpression nodes
|
|
36
|
+
if (node.type === 'CallExpression') {
|
|
37
|
+
handleCallExpression(node);
|
|
38
|
+
}
|
|
39
|
+
// Recurse into all child nodes (arrays and objects), skip 'span'
|
|
40
|
+
for (const key of Object.keys(node)) {
|
|
41
|
+
if (key === 'span')
|
|
42
|
+
continue;
|
|
43
|
+
const child = node[key];
|
|
44
|
+
if (Array.isArray(child)) {
|
|
45
|
+
for (const item of child) {
|
|
46
|
+
if (item && typeof item === 'object')
|
|
47
|
+
walk(item, currentAncestors);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
else if (child && typeof child === 'object') {
|
|
51
|
+
walk(child, currentAncestors);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
// Modularized CallExpression handler
|
|
56
|
+
function handleCallExpression(node, ancestors) {
|
|
57
|
+
let calleeName = '';
|
|
58
|
+
if (node.callee) {
|
|
59
|
+
if (node.callee.type === 'Identifier' && node.callee.value) {
|
|
60
|
+
calleeName = node.callee.value;
|
|
61
|
+
}
|
|
62
|
+
else if (node.callee.type === 'Identifier' && node.callee.name) {
|
|
63
|
+
calleeName = node.callee.name;
|
|
64
|
+
}
|
|
65
|
+
else if (node.callee.type === 'MemberExpression' && node.callee.property?.type === 'Identifier') {
|
|
66
|
+
calleeName = node.callee.property.value || node.callee.property.name;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const fnPatterns = config.extract.functions || ['t', '*.t'];
|
|
70
|
+
let matches = false;
|
|
71
|
+
for (const pattern of fnPatterns) {
|
|
72
|
+
if (pattern.startsWith('*.')) {
|
|
73
|
+
if (calleeName === pattern.slice(2))
|
|
74
|
+
matches = true;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
if (calleeName === pattern)
|
|
78
|
+
matches = true;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (matches) {
|
|
82
|
+
let str = '';
|
|
83
|
+
const arg0 = node.arguments?.[0]?.expression;
|
|
84
|
+
const arg1 = node.arguments?.[1]?.expression;
|
|
85
|
+
if (arg0?.type === 'StringLiteral')
|
|
86
|
+
str = arg0.value;
|
|
87
|
+
if (str) {
|
|
88
|
+
const keys = extractInterpolationKeys(str, config);
|
|
89
|
+
let paramKeys = [];
|
|
90
|
+
if (arg1?.type === 'ObjectExpression') {
|
|
91
|
+
paramKeys = arg1.properties
|
|
92
|
+
.filter((p) => p.type === 'KeyValueProperty')
|
|
93
|
+
.map((p) => {
|
|
94
|
+
if (p.key?.type === 'Identifier')
|
|
95
|
+
return p.key.value;
|
|
96
|
+
if (p.key?.type === 'StringLiteral')
|
|
97
|
+
return p.key.value;
|
|
98
|
+
return undefined;
|
|
99
|
+
})
|
|
100
|
+
.filter((k) => typeof k === 'string');
|
|
101
|
+
}
|
|
102
|
+
if (!Array.isArray(paramKeys))
|
|
103
|
+
paramKeys = [];
|
|
104
|
+
for (const k of keys) {
|
|
105
|
+
if (!paramKeys.includes(k)) {
|
|
106
|
+
issues.push({
|
|
107
|
+
text: `Interpolation parameter "${k}" was not provided`,
|
|
108
|
+
line: getLineNumber(node.span?.start ?? 0),
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
for (const pk of paramKeys) {
|
|
113
|
+
if (!keys.includes(pk)) {
|
|
114
|
+
issues.push({
|
|
115
|
+
text: `Parameter "${pk}" is not used in translation string`,
|
|
116
|
+
line: getLineNumber(node.span?.start ?? 0),
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
// Helper for line number
|
|
124
|
+
const getLineNumber = (pos) => {
|
|
125
|
+
return code.substring(0, pos).split('\n').length;
|
|
126
|
+
};
|
|
127
|
+
walk(ast, []);
|
|
128
|
+
return issues;
|
|
129
|
+
}
|
|
9
130
|
const recommendedAcceptedTags = [
|
|
10
131
|
'a', 'abbr', 'address', 'article', 'aside', 'bdi', 'bdo', 'blockquote', 'button', 'caption', 'cite', 'code', 'data', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dt', 'em', 'figcaption', 'footer', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'img', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'mark', 'nav', 'option', 'output', 'p', 'pre', 'q', 's', 'samp', 'section', 'small', 'span', 'strong', 'sub', 'summary', 'sup', 'td', 'textarea', 'th', 'time', 'title', 'var'
|
|
11
132
|
].map(s => s.toLowerCase());
|
|
@@ -102,10 +223,14 @@ class Linter extends EventEmitter {
|
|
|
102
223
|
continue;
|
|
103
224
|
}
|
|
104
225
|
}
|
|
226
|
+
// Collect hardcoded string issues
|
|
105
227
|
const hardcodedStrings = findHardcodedStrings(ast, code, config);
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
228
|
+
// Collect interpolation parameter issues
|
|
229
|
+
const interpolationIssues = lintInterpolationParams(ast, code, config);
|
|
230
|
+
const allIssues = [...hardcodedStrings, ...interpolationIssues];
|
|
231
|
+
if (allIssues.length > 0) {
|
|
232
|
+
totalIssues += allIssues.length;
|
|
233
|
+
issuesByFile.set(file, allIssues);
|
|
109
234
|
}
|
|
110
235
|
}
|
|
111
236
|
const files = Object.fromEntries(issuesByFile.entries());
|
|
@@ -198,6 +323,8 @@ const isUrlOrPath = (text) => /^(https|http|\/\/|^\/)/.test(text);
|
|
|
198
323
|
* - Filters out ellipsis/spread operator notation `...`
|
|
199
324
|
* - Only reports non-empty, trimmed strings
|
|
200
325
|
*
|
|
326
|
+
* Also checks for interpolation parameter errors in translation function calls if enabled via config.
|
|
327
|
+
*
|
|
201
328
|
* @param config - The toolkit configuration with input patterns and component names
|
|
202
329
|
*
|
|
203
330
|
* @example
|
package/package.json
CHANGED
package/types/linter.d.ts
CHANGED
|
@@ -67,12 +67,12 @@ export declare function runLinter(config: I18nextToolkitConfig): Promise<{
|
|
|
67
67
|
}>;
|
|
68
68
|
export declare function runLinterCli(config: I18nextToolkitConfig): Promise<void>;
|
|
69
69
|
/**
|
|
70
|
-
* Represents a found hardcoded string with its location information.
|
|
70
|
+
* Represents a found hardcoded string or interpolation parameter error with its location information.
|
|
71
71
|
*/
|
|
72
72
|
interface HardcodedString {
|
|
73
|
-
/** The hardcoded text content */
|
|
73
|
+
/** The hardcoded text content or error message */
|
|
74
74
|
text: string;
|
|
75
|
-
/** Line number where the string was found */
|
|
75
|
+
/** Line number where the string or error was found */
|
|
76
76
|
line: number;
|
|
77
77
|
}
|
|
78
78
|
export {};
|
package/types/linter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../src/linter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../src/linter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAqHnD,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE;QAAC;YACT,OAAO,EAAE,MAAM,CAAC;SACjB;KAAC,CAAC;IACH,IAAI,EAAE;QAAC;YACL,OAAO,EAAE,OAAO,CAAC;YACjB,OAAO,EAAE,MAAM,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,EAAE,CAAC,CAAC;SAC1C;KAAC,CAAC;IACH,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;CACvB,CAAA;AAED,eAAO,MAAM,uBAAuB,UAET,CAAA;AAC3B,eAAO,MAAM,6BAA6B,UAAgN,CAAA;AAK1P,qBAAa,MAAO,SAAQ,YAAY,CAAC,cAAc,CAAC;IACtD,OAAO,CAAC,MAAM,CAAsB;gBAEvB,MAAM,EAAE,oBAAoB;IAKzC,SAAS,CAAE,KAAK,EAAE,OAAO;IAanB,GAAG;;;;;;;CA6FV;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,SAAS,CAAE,MAAM,EAAE,oBAAoB;;;;;;GAE5D;AAED,wBAAsB,YAAY,CAAE,MAAM,EAAE,oBAAoB,iBA4B/D;AAED;;GAEG;AACH,UAAU,eAAe;IACvB,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;CACd"}
|
package/types/types.d.ts
CHANGED
|
@@ -174,6 +174,8 @@ export interface I18nextToolkitConfig {
|
|
|
174
174
|
acceptedTags?: string[];
|
|
175
175
|
/** Glob pattern(s) for files to ignore during lint (in addition to those defined during extract) */
|
|
176
176
|
ignore?: string | string[];
|
|
177
|
+
/** Enable linting for interpolation parameter errors in translation calls (default: true) */
|
|
178
|
+
checkInterpolationParams?: boolean;
|
|
177
179
|
};
|
|
178
180
|
/** Configuration options for TypeScript type generation */
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