Skip to content

Commit 86e1e6e

Browse files
authored
fix: missing path.sep on the langPath. (#112)
1 parent 2d5b10a commit 86e1e6e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/mix.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mix.extend(
2727
context: any
2828

2929
register(langPath: string = 'lang'): void {
30-
this.langPath = this.context.paths.rootPath + path.sep + langPath
30+
this.langPath = this.context.paths.rootPath + path.sep + langPath + path.sep
3131
this.frameworkLangPath =
3232
this.context.paths.rootPath +
3333
path.sep +
@@ -51,7 +51,10 @@ mix.extend(
5151

5252
config.plugins.push(
5353
new BeforeBuildPlugin(() => {
54-
files = generateFiles(this.langPath, [...parseAll(this.frameworkLangPath), ...parseAll(this.langPath)])
54+
files = generateFiles(this.langPath, [
55+
...parseAll(this.frameworkLangPath),
56+
...parseAll(this.langPath)
57+
])
5558
})
5659
)
5760

0 commit comments

Comments
 (0)