Skip to content

Commit ce0e5cd

Browse files
authored
fix(compiler): dictionary (#960)
1 parent 29e6fdb commit ce0e5cd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/spicy-ladybugs-joke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"lingo.dev": patch
3+
---
4+
5+
fix compiler dictionary

packages/compiler/src/_loader-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function loadDictionary(options: {
3535
const { resourcePath, resourceQuery = "", params, sourceRoot, lingoDir, isDev } = options;
3636
const fullResourcePath = `${resourcePath}${resourceQuery}`;
3737

38-
if (!resourcePath.endsWith(LCP_DICTIONARY_FILE_NAME)) {
38+
if (!resourcePath.match(LCP_DICTIONARY_FILE_NAME)) {
3939
return null; // Not a dictionary file
4040
}
4141

0 commit comments

Comments
 (0)