We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8831d61 + a1f23f0 commit 78937f8Copy full SHA for 78937f8
src/extract-i18n-keys.ts
@@ -66,7 +66,8 @@ export async function processSvelteFile(
66
}
67
68
export async function extractI18NextKeys(dirSvelteApps: string[]) {
69
- const svelteRegEx = /^.*\.svelte/;
+ // Matches .svelte files but excludes .svelte.js and .svelte.ts
70
+ const svelteRegEx = /^.*\.svelte(?!(\.js|\.ts))$/;
71
72
const result: string[] = [];
73
0 commit comments