Skip to content

Commit ee4ae31

Browse files
authored
fix: miss-taken infuse external reousrce path interpolation (#202)
1 parent b67d1db commit ee4ae31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ export function splitLocaleMessages (
438438
let buildingPath = ''
439439
for (let i = 0; i < groupLen; i++) {
440440
if (match[i + 1]) {
441-
buildingPath = `${buildingPath}${match[i + 1] === filename ? filename : match[i + 1] === l ? l : match[i + 1]}/`
441+
buildingPath = `${buildingPath}${match[i + 1] === filename ? filename : match[i + 1] === l ? l : match[i + 1]}${(i + 1) === groupLen - 1 ? '' : '/'}`
442442
}
443443
if (i === groupLen - 1) {
444444
buildingPath = `${buildingPath}.json`

0 commit comments

Comments
 (0)