Skip to content

Commit 9c93636

Browse files
committed
en locale
1 parent 8988a96 commit 9c93636

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

src/app/src/components/form/FormPanelSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const childrenCount = computed(() => {
3131
variant="subtle"
3232
size="xs"
3333
>
34-
{{ childrenCount }} propert{{ childrenCount === 1 ? 'y' : 'ies' }}
34+
{{ $t('studio.form.section.propertyCount', childrenCount) }}
3535
</UBadge>
3636
</template>
3737

src/app/src/components/form/input/FormInputArray.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function updateObjectItem(index: number, value: Record<string, unknown>) {
8888
size="2xs"
8989
icon="i-lucide-trash"
9090
class="opacity-0 group-hover/item:opacity-100 transition-opacity"
91-
aria-label="Delete item"
91+
:aria-label="$t('studio.form.deleteItem')"
9292
@click.stop="deleteItem(item.index)"
9393
/>
9494
</template>
@@ -136,15 +136,15 @@ function updateObjectItem(index: number, value: Record<string, unknown>) {
136136
size="2xs"
137137
:icon="activeIndex === item.index ? 'i-lucide-check' : 'i-lucide-pencil'"
138138
:class="{ 'font-medium': activeIndex === item.index }"
139-
aria-label="Edit item"
139+
:aria-label="$t('studio.form.editItem')"
140140
@click.stop="activeIndex === item.index ? saveStringEditing : startStringEditing(item.index, item.value)"
141141
/>
142142
<UButton
143143
variant="ghost"
144144
color="neutral"
145145
size="2xs"
146146
:icon="activeIndex === item.index ? 'i-lucide-x' : 'i-lucide-trash'"
147-
aria-label="Delete item"
147+
:aria-label="$t('studio.form.deleteItem')"
148148
@click.stop="deleteItem(item.index)"
149149
/>
150150
</div>
@@ -158,7 +158,7 @@ function updateObjectItem(index: number, value: Record<string, unknown>) {
158158
class="flex items-center justify-center py-2 rounded-lg border border-dashed border-muted"
159159
>
160160
<p class="text-xs text-muted">
161-
Array type {{ itemsType || '' }} not supported
161+
{{ $t('studio.form.array.unsupportedType', { type: itemsType || '' }) }}
162162
</p>
163163
</div>
164164

@@ -175,7 +175,7 @@ function updateObjectItem(index: number, value: Record<string, unknown>) {
175175
icon="i-lucide-plus"
176176
@click="addItem"
177177
>
178-
Add {{ itemsLabel.toLowerCase() }}
178+
{{ $t('studio.form.array.addItem', { label: itemsLabel.toLowerCase() }) }}
179179
</UButton>
180180
</div>
181181
</div>

src/app/src/components/form/input/FormInputObject.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function updateValue(key: string, value: string | number) {
6464
class="size-5 text-muted mb-2"
6565
/>
6666
<p class="text-xs text-muted">
67-
No properties defined
67+
{{ $t('studio.form.object.noProperties') }}
6868
</p>
6969
</div>
7070
</div>

src/app/src/locales/en.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,21 @@
266266
"description": "Choose an image from your media library",
267267
"noImagesAvailable": "No images available in your media library",
268268
"upload": "Upload"
269+
},
270+
"form": {
271+
"array": {
272+
"addItem": "Add {label}",
273+
"deleteItem": "Delete item",
274+
"editItem": "Edit item",
275+
"unsupportedType": "Array type {type} not supported"
276+
},
277+
"object": {
278+
"noProperties": "No properties defined",
279+
"enterPlaceholder": "Enter {field}..."
280+
},
281+
"section": {
282+
"propertyCount": "1 property | {count} properties"
283+
}
269284
}
270285
}
271286
}

0 commit comments

Comments
 (0)