From 0b81611d01b63c5a7422a55b0af03c31487c310f Mon Sep 17 00:00:00 2001 From: parbez Date: Sun, 16 Jul 2023 21:14:27 +0530 Subject: [PATCH] fix: skip dynamic keys properly --- src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 4d250f3..ae0c510 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -66,7 +66,7 @@ for await (const file of glob) { const translationNodes = parseFile(file, options); for (const node of translationNodes) { - if (node.isStaticKey) { + if (!node.isStaticKey) { log(new ValidationError('Dynamic keys are not supported yet. Skipping', node.path, node.positions), 'warn', options); } else if (!node.key || !node.namespace) { log(new ValidationError('Missing translation key or namespace', node.path, node.positions), 'error', options);