Skip to content

Commit 78937f8

Browse files
authored
release
2 parents 8831d61 + a1f23f0 commit 78937f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/extract-i18n-keys.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ export async function processSvelteFile(
6666
}
6767

6868
export async function extractI18NextKeys(dirSvelteApps: string[]) {
69-
const svelteRegEx = /^.*\.svelte/;
69+
// Matches .svelte files but excludes .svelte.js and .svelte.ts
70+
const svelteRegEx = /^.*\.svelte(?!(\.js|\.ts))$/;
7071

7172
const result: string[] = [];
7273

0 commit comments

Comments
 (0)