Skip to content

Commit

Permalink
fix: don't translate labels twice
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Feb 27, 2023
1 parent 339f3b6 commit acc0fce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/admin-components/src/components/DefaultFormGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<label :for="id">
<!-- Can be used instead of the label prop. -->
<slot name="label">
{{ translate(element.label) }}
{{ element.label }}
<span
v-if="element.isOptional"
v-text="translate('form_optional_tip')" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:for="id"
class="col-sm-4 form-control-label">
<slot name="label">
{{ translate(element.label) }}
{{ element.label }}
</slot>
</label>

Expand Down

0 comments on commit acc0fce

Please sign in to comment.