fix: Vue i18n template rendering extra {

Co-authored-by: Eana Hufwe <eana@1a23.com>
This commit is contained in:
Eana Hufwe 2024-03-08 15:05:33 +00:00 committed by naskya
parent 0f07336d82
commit d6e0389810

View file

@ -29,7 +29,7 @@ export default defineComponent({
break;
}
if (nextBracketOpen > 0)
parsed.push(str.substring(0, nextBracketOpen + 1));
parsed.push(str.substring(0, nextBracketOpen));
parsed.push({
arg: str.substring(nextBracketOpen + 1, nextBracketClose),
});