chore: update interpolation syntax for i18n files (#10198)
There were two warnings showing up on new teams page 1. `errorMessage` prop was getting invalid value, this was because were short circuting the error message using `&&`, fixed it by using ternary operator 2. `vue-i18n` has deprecated [rails syntax](https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format), fixed that warning by removing `%` before `{}` for interpolation > Note: the `vue-i18n` deprecation needs to be handled, but we can do it later
This commit is contained in:
@@ -72,7 +72,7 @@ export default {
|
||||
:label="$t('TEAMS_SETTINGS.FORM.NAME.LABEL')"
|
||||
:placeholder="$t('TEAMS_SETTINGS.FORM.NAME.PLACEHOLDER')"
|
||||
:has-error="v$.title.$error"
|
||||
:error-message="v$.title.$error && v$.title.$errors[0].$message"
|
||||
:error-message="v$.title.$error ? v$.title.$errors[0].$message : ''"
|
||||
@blur="v$.title.$touch"
|
||||
/>
|
||||
<FormInput
|
||||
@@ -83,7 +83,7 @@ export default {
|
||||
:placeholder="$t('TEAMS_SETTINGS.FORM.DESCRIPTION.PLACEHOLDER')"
|
||||
:has-error="v$.description.$error"
|
||||
:error-message="
|
||||
v$.description.$error && v$.description.$errors[0].$message
|
||||
v$.description.$error ? v$.description.$errors[0].$message : ''
|
||||
"
|
||||
@blur="v$.description.$touch"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user