From 369bc3003bb9cb7de4d3f6aa166f65b01b5ad256 Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Thu, 11 Nov 2021 15:54:20 +0900 Subject: [PATCH] fix: infuse external reousrce path interpolation (#204) --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index a90ec85..9cdc29c 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -438,7 +438,7 @@ export function splitLocaleMessages ( let buildingPath = '' for (let i = 0; i < groupLen; i++) { if (match[i + 1]) { - buildingPath = `${buildingPath}${match[i + 1] === filename ? filename : match[i + 1] === l ? l : match[i + 1]}${(i + 1) === groupLen - 1 ? '' : '/'}` + buildingPath = `${buildingPath}${match[i + 1] === filename ? filename : match[i + 1] === locale ? l : match[i + 1]}${(i + 1) === groupLen - 1 ? '' : '/'}` } if (i === groupLen - 1) { buildingPath = `${buildingPath}.json`