Skip to content

Commit

Permalink
fix: skip dynamic keys properly
Browse files Browse the repository at this point in the history
  • Loading branch information
imranbarbhuiya committed Jul 16, 2023
1 parent dfcdcfb commit 0b81611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0b81611

Please sign in to comment.