Skip to content

Commit c4a4e78

Browse files
authored
fix: infuse external reousrce path interpolation (#206)
1 parent 4243d65 commit c4a4e78

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/utils.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,12 @@ 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] === locale ? l : match[i + 1]}${(i + 1) === groupLen - 1 ? '' : '/'}`
441+
// prettier-ignore
442+
buildingPath = `${buildingPath}${match[i + 1] === filename
443+
? filename
444+
: match[i + 1] === locale
445+
? l
446+
: match[i + 1]}${(i === groupLen - 1) ? '' : '/'}`
442447
}
443448
if (i === groupLen - 1) {
444449
buildingPath = `${buildingPath}.json`

0 commit comments

Comments
 (0)