Skip to content

Commit 2a5d6da

Browse files
committed
locales
1 parent 832e831 commit 2a5d6da

File tree

24 files changed

+488
-13
lines changed

24 files changed

+488
-13
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const dateValue = computed<DateValue | undefined>({
5252
variant="link"
5353
size="xs"
5454
icon="i-lucide-calendar"
55-
aria-label="Select a date"
55+
:aria-label="$t('studio.form.date.selectDate')"
5656
class="px-0"
5757
/>
5858

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function selectIcon(icon: string) {
7979

8080
<UInput
8181
v-model="model"
82-
placeholder="i-lucide-icon"
82+
:placeholder="$t('studio.form.icon.placeholder')"
8383
size="xs"
8484
class="flex-1"
8585
>
@@ -97,7 +97,7 @@ function selectIcon(icon: string) {
9797
<div class="p-3 w-72">
9898
<UInput
9999
v-model="search"
100-
placeholder="Search icons..."
100+
:placeholder="$t('studio.form.icon.searchPlaceholder')"
101101
size="xs"
102102
icon="i-lucide-search"
103103
autofocus
@@ -138,18 +138,18 @@ function selectIcon(icon: string) {
138138
v-else-if="search.length >= 2"
139139
class="text-xs text-muted text-center py-4"
140140
>
141-
No icons found
141+
{{ $t('studio.form.icon.noIconsFound') }}
142142
</p>
143143

144144
<p
145145
v-else
146146
class="text-xs text-muted text-center py-4"
147147
>
148-
Type at least 2 characters to search
148+
{{ $t('studio.form.icon.searchHint') }}
149149
</p>
150150

151151
<p class="text-xs text-dimmed mt-2">
152-
Libraries: {{ iconLibraries === 'all' ? 'All' : iconLibraries.join(', ') }}
152+
{{ $t('studio.form.icon.libraries') }} {{ iconLibraries === 'all' ? $t('studio.form.icon.allLibraries') : iconLibraries.join(', ') }}
153153
</p>
154154
</div>
155155
</template>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function selectMedia(media: TreeItem) {
8282

8383
<UInput
8484
v-model="model"
85-
placeholder="Enter relative path or Public URL..."
85+
:placeholder="$t('studio.form.media.placeholder')"
8686
size="xs"
8787
class="flex-1"
8888
>
@@ -100,7 +100,7 @@ function selectMedia(media: TreeItem) {
100100
<div class="p-3 w-80">
101101
<UInput
102102
v-model="search"
103-
placeholder="Search images..."
103+
:placeholder="$t('studio.form.media.searchPlaceholder')"
104104
size="xs"
105105
icon="i-lucide-search"
106106
autofocus
@@ -116,7 +116,7 @@ function selectMedia(media: TreeItem) {
116116
class="size-8 mx-auto mb-2 text-muted"
117117
/>
118118
<p class="text-xs text-muted">
119-
{{ search ? 'No images found' : 'No images available' }}
119+
{{ search ? $t('studio.form.media.noImagesFound') : $t('studio.form.media.noImagesAvailable') }}
120120
</p>
121121
</div>
122122

@@ -150,7 +150,7 @@ function selectMedia(media: TreeItem) {
150150
v-if="mediaFiles.length > 0"
151151
class="text-xs text-dimmed mt-1"
152152
>
153-
{{ mediaFiles.length }} of {{ allMediaFiles.length }} image{{ allMediaFiles.length !== 1 ? 's' : '' }}
153+
{{ $t('studio.form.media.imageCount', { count: mediaFiles.length, total: allMediaFiles.length }, allMediaFiles.length) }}
154154
</p>
155155
</div>
156156
</template>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const model = defineModel<number>({ default: 0 })
1616
<UInput
1717
v-model="model"
1818
type="number"
19-
placeholder="0"
19+
:placeholder="$t('studio.form.number.placeholder')"
2020
size="xs"
2121
class="w-full"
2222
/>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ const selectItems = computed(() => {
2828
v-if="hasOptions"
2929
v-model="(model as string)"
3030
:items="selectItems"
31-
placeholder="Select an option..."
31+
:placeholder="$t('studio.form.text.selectPlaceholder')"
3232
size="xs"
3333
class="w-full"
3434
/>
3535
<UInput
3636
v-else
3737
v-model="model"
38-
placeholder="Enter text..."
38+
:placeholder="$t('studio.form.text.placeholder')"
3939
size="xs"
4040
class="w-full"
4141
/>

src/app/src/locales/ar.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,31 @@
300300
},
301301
"section": {
302302
"propertyCount": "خاصية واحدة | {count} خصائص"
303+
},
304+
"media": {
305+
"placeholder": "مسار نسبي أو رابط عام...",
306+
"searchPlaceholder": "بحث عن الصور...",
307+
"noImagesFound": "لم يتم العثور على صور",
308+
"noImagesAvailable": "لا توجد صور متاحة",
309+
"imageCount": "{count} من {total} صورة | {count} من {total} صور"
310+
},
311+
"icon": {
312+
"placeholder": "i-lucide-icon",
313+
"searchPlaceholder": "بحث عن الأيقونات...",
314+
"noIconsFound": "لم يتم العثور على أيقونات",
315+
"searchHint": "اكتب حرفين على الأقل للبحث",
316+
"libraries": "المكتبات:",
317+
"allLibraries": "الكل"
318+
},
319+
"text": {
320+
"placeholder": "أدخل النص...",
321+
"selectPlaceholder": "اختر خياراً..."
322+
},
323+
"date": {
324+
"selectDate": "اختر تاريخاً"
325+
},
326+
"number": {
327+
"placeholder": "0"
303328
}
304329
}
305330
}

src/app/src/locales/bg.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,31 @@
301301
},
302302
"section": {
303303
"propertyCount": "1 свойство | {count} свойства"
304+
},
305+
"media": {
306+
"placeholder": "Относителен път или публичен URL...",
307+
"searchPlaceholder": "Търсене на изображения...",
308+
"noImagesFound": "Не са намерени изображения",
309+
"noImagesAvailable": "Няма налични изображения",
310+
"imageCount": "{count} от {total} изображение | {count} от {total} изображения"
311+
},
312+
"icon": {
313+
"placeholder": "i-lucide-icon",
314+
"searchPlaceholder": "Търсене на икони...",
315+
"noIconsFound": "Не са намерени икони",
316+
"searchHint": "Въведете поне 2 символа за търсене",
317+
"libraries": "Библиотеки:",
318+
"allLibraries": "Всички"
319+
},
320+
"text": {
321+
"placeholder": "Въведете текст...",
322+
"selectPlaceholder": "Изберете опция..."
323+
},
324+
"date": {
325+
"selectDate": "Изберете дата"
326+
},
327+
"number": {
328+
"placeholder": "0"
304329
}
305330
}
306331
}

src/app/src/locales/de.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,31 @@
301301
},
302302
"section": {
303303
"propertyCount": "1 Eigenschaft | {count} Eigenschaften"
304+
},
305+
"media": {
306+
"placeholder": "Relativen Pfad oder öffentliche URL eingeben...",
307+
"searchPlaceholder": "Bilder suchen...",
308+
"noImagesFound": "Keine Bilder gefunden",
309+
"noImagesAvailable": "Keine Bilder verfügbar",
310+
"imageCount": "{count} von {total} Bild | {count} von {total} Bildern"
311+
},
312+
"icon": {
313+
"placeholder": "i-lucide-icon",
314+
"searchPlaceholder": "Icons suchen...",
315+
"noIconsFound": "Keine Icons gefunden",
316+
"searchHint": "Mindestens 2 Zeichen eingeben",
317+
"libraries": "Bibliotheken:",
318+
"allLibraries": "Alle"
319+
},
320+
"text": {
321+
"placeholder": "Text eingeben...",
322+
"selectPlaceholder": "Option auswählen..."
323+
},
324+
"date": {
325+
"selectDate": "Datum auswählen"
326+
},
327+
"number": {
328+
"placeholder": "0"
304329
}
305330
}
306331
}

src/app/src/locales/en.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,31 @@
301301
},
302302
"section": {
303303
"propertyCount": "1 property | {count} properties"
304+
},
305+
"media": {
306+
"placeholder": "Enter relative path or Public URL...",
307+
"searchPlaceholder": "Search images...",
308+
"noImagesFound": "No images found",
309+
"noImagesAvailable": "No images available",
310+
"imageCount": "{count} of {total} image | {count} of {total} images"
311+
},
312+
"icon": {
313+
"placeholder": "i-lucide-icon",
314+
"searchPlaceholder": "Search icons...",
315+
"noIconsFound": "No icons found",
316+
"searchHint": "Type at least 2 characters to search",
317+
"libraries": "Libraries:",
318+
"allLibraries": "All"
319+
},
320+
"text": {
321+
"placeholder": "Enter text...",
322+
"selectPlaceholder": "Select an option..."
323+
},
324+
"date": {
325+
"selectDate": "Select a date"
326+
},
327+
"number": {
328+
"placeholder": "0"
304329
}
305330
}
306331
}

src/app/src/locales/es.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,31 @@
301301
},
302302
"section": {
303303
"propertyCount": "1 propiedad | {count} propiedades"
304+
},
305+
"media": {
306+
"placeholder": "Ruta relativa o URL pública...",
307+
"searchPlaceholder": "Buscar imágenes...",
308+
"noImagesFound": "No se encontraron imágenes",
309+
"noImagesAvailable": "No hay imágenes disponibles",
310+
"imageCount": "{count} de {total} imagen | {count} de {total} imágenes"
311+
},
312+
"icon": {
313+
"placeholder": "i-lucide-icon",
314+
"searchPlaceholder": "Buscar iconos...",
315+
"noIconsFound": "No se encontraron iconos",
316+
"searchHint": "Escriba al menos 2 caracteres para buscar",
317+
"libraries": "Bibliotecas:",
318+
"allLibraries": "Todas"
319+
},
320+
"text": {
321+
"placeholder": "Ingrese texto...",
322+
"selectPlaceholder": "Seleccione una opción..."
323+
},
324+
"date": {
325+
"selectDate": "Seleccionar fecha"
326+
},
327+
"number": {
328+
"placeholder": "0"
304329
}
305330
}
306331
}

0 commit comments

Comments
 (0)