fix(i18n): escape dollar in node locales

This commit is contained in:
DrJKL
2026-07-14 14:08:59 -07:00
parent dfac4e0b31
commit 36f7b00a60
2 changed files with 4 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ export type WidgetLabels = Record<
Record<string, { name: string | undefined }>
>
const VUE_I18N_SYNTAX_CHARS = /[@{}|%]/g
const VUE_I18N_SYNTAX_CHARS = /[@${}|%]/g
function escapeMessage(text: string): string {
return text.replace(VUE_I18N_SYNTAX_CHARS, (char) => `{'${char}'}`)