1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-06 22:08:52 +00:00

Reuse existing translation strings

This commit is contained in:
Jeremie Pardou 2023-10-25 11:43:56 +02:00
parent 680bdf246c
commit 42966fc56e
3 changed files with 3 additions and 7 deletions
web-frontend/modules/builder
components
locales

View file

@ -48,7 +48,7 @@ export default {
*/ */
error() { error() {
if (this.$v.values.padding.$error) { if (this.$v.values.padding.$error) {
return this.$t('styleBoxForm.paddingError') return this.$t('error.minMaxLength', { min: 0, max: 200 })
} else { } else {
return '' return ''
} }

View file

@ -132,7 +132,7 @@
v-if="$v.builder.theme[`heading_${i}_font_size`].$error" v-if="$v.builder.theme[`heading_${i}_font_size`].$error"
class="error" class="error"
> >
{{ $t('mainThemeConfigBlock.fontSizeError') }} {{ $t('error.minMaxLength', { min: 1, max: 100 }) }}
</div> </div>
</div> </div>
</div> </div>

View file

@ -275,17 +275,13 @@
"boxTop": "Padding top", "boxTop": "Padding top",
"boxBottom": "Padding bottom" "boxBottom": "Padding bottom"
}, },
"styleBoxForm": {
"paddingError": "The value must be an integer between 0 and 200."
},
"mainThemeConfigBlock": { "mainThemeConfigBlock": {
"colorsLabel": "Colors", "colorsLabel": "Colors",
"primaryColor": "Primary", "primaryColor": "Primary",
"secondaryColor": "Secondary", "secondaryColor": "Secondary",
"typography": "Typography", "typography": "Typography",
"headingLabel": "Heading {i} (h{i})", "headingLabel": "Heading {i} (h{i})",
"headingValue": "Heading <h{i}>", "headingValue": "Heading <h{i}>"
"fontSizeError": "The value must be an integer between 1 and 100."
}, },
"buttonElementForm": { "buttonElementForm": {
"valueLabel": "Text", "valueLabel": "Text",