fix: parsing of @ in i18n values (#10334)
Vue i18n has a new [linked message syntax.](https://vue-i18n.intlify.dev/guide/essentials/syntax.html#linked-messages) When it encounters `@` it assumes that we're trying to use a linked message. And tries to parse it as such, in any case, it breaks since the syntax is not valid and the params are not present. So it causes an error. This works on dev but on production the error is bubbled up to the top and rendering breaks. A lot of folks use Chatwoot with default locale set in the env, this surfaced the issue for the languages for which the syntax was not updated Fixes: https://github.com/chatwoot/chatwoot/issues/10313
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"TITLE": "ورود به چت ووت",
|
||||
"EMAIL": {
|
||||
"LABEL": "ایمیل",
|
||||
"PLACEHOLDER": "ایمیل به عنوان مثال: someone@example.com",
|
||||
"PLACEHOLDER": "ایمیل به عنوان مثال: someone{'@'}example.com",
|
||||
"ERROR": "لطفا ایمیل خود را به شکل صحیح وارد کنید"
|
||||
},
|
||||
"PASSWORD": {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
},
|
||||
"EMAIL": {
|
||||
"LABEL": "ایمیل کاری",
|
||||
"PLACEHOLDER": "ایمیل کاری خود را وارد کنید به عنوان مثال: jafari@wayne.enterprises",
|
||||
"PLACEHOLDER": "ایمیل کاری خود را وارد کنید به عنوان مثال: jafari{'@'}wayne.enterprises",
|
||||
"ERROR": "لطفا یک آدرس ایمیل کاری معتبر وارد کنید"
|
||||
},
|
||||
"PASSWORD": {
|
||||
|
||||
Reference in New Issue
Block a user