Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/components/Properties/PropertiesPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -769,16 +769,21 @@ function LabelConfigPanel({
<label className="text-[10px] text-muted">
{t.label.defaultFontId}
</label>
<input
type="text"
<select
className={inputCls}
maxLength={2}
list="zpl-default-font-ids"
value={label.defaultFontId ?? ""}
onChange={(e) =>
onUpdate({ defaultFontId: e.target.value || undefined })
}
/>
>
<option value="">{t.label.defaultFontIdNone}</option>
{fontIdOptions.map((opt) => (
<option key={opt.value} value={opt.value}>
{opt.value}
{opt.label ? ` — ${opt.label}` : ""}
</option>
))}
</select>
</div>
<div className="flex flex-col gap-1">
<label className="text-[10px] text-muted">
Expand Down Expand Up @@ -817,11 +822,6 @@ function LabelConfigPanel({
</div>
</CollapsibleSection>
</div>
<datalist id="zpl-default-font-ids">
{fontIdOptions.map((opt) => (
<option key={opt.value} value={opt.value} label={opt.label} />
))}
</datalist>
</div>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/locales/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const ar = {
mirror: 'صورة معكوسة',
defaultFont: 'نمط النص الافتراضي',
defaultFontId: 'الخط',
defaultFontIdNone: '(لا شيء)',
defaultFontHeight: 'الارتفاع (نقاط)',
defaultFontWidth: 'العرض (dots)',
customFontsHeading: 'خطوط مخصصة',
Expand Down
1 change: 1 addition & 0 deletions src/locales/bg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const bg = {
mirror: 'Огледален образ',
defaultFont: 'Стил на текст по подразбиране',
defaultFontId: 'Шрифт',
defaultFontIdNone: '(няма)',
defaultFontHeight: 'Височина (точки)',
defaultFontWidth: 'Ширина (dots)',
customFontsHeading: 'Персонализирани шрифтове',
Expand Down
1 change: 1 addition & 0 deletions src/locales/cs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const cs = {
mirror: 'Zrcadlový obraz',
defaultFont: 'Výchozí styl textu',
defaultFontId: 'Písmo',
defaultFontIdNone: '(žádné)',
defaultFontHeight: 'Výška (body)',
defaultFontWidth: 'Šířka (dots)',
customFontsHeading: 'Vlastní písma',
Expand Down
1 change: 1 addition & 0 deletions src/locales/da.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const da = {
mirror: 'Spejlbillede',
defaultFont: 'Standardtekststil',
defaultFontId: 'Skrifttype',
defaultFontIdNone: '(ingen)',
defaultFontHeight: 'Højde (punkter)',
defaultFontWidth: 'Bredde (dots)',
customFontsHeading: 'Tilpassede skrifttyper',
Expand Down
1 change: 1 addition & 0 deletions src/locales/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const de = {
mirror: 'Spiegelbild',
defaultFont: 'Standard-Textstil',
defaultFontId: 'Schriftart',
defaultFontIdNone: '(keine)',
defaultFontHeight: 'Höhe (Punkte)',
defaultFontWidth: 'Breite (dots)',
customFontsHeading: 'Eigene Schriften',
Expand Down
1 change: 1 addition & 0 deletions src/locales/el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const el = {
mirror: 'Καθρεπτική εικόνα',
defaultFont: 'Προεπιλεγμένο στυλ κειμένου',
defaultFontId: 'Γραμματοσειρά',
defaultFontIdNone: '(κανένα)',
defaultFontHeight: 'Ύψος (κουκκίδες)',
defaultFontWidth: 'Πλάτος (dots)',
customFontsHeading: 'Προσαρμοσμένες γραμματοσειρές',
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const en = {
mirror: 'Mirror image',
defaultFont: 'Default text style',
defaultFontId: 'Font',
defaultFontIdNone: '(none)',
defaultFontHeight: 'Height (dots)',
defaultFontWidth: 'Width (dots)',
customFontsHeading: 'Custom fonts',
Expand Down
1 change: 1 addition & 0 deletions src/locales/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const es = {
mirror: 'Imagen reflejada',
defaultFont: 'Estilo de texto predeterminado',
defaultFontId: 'Fuente',
defaultFontIdNone: '(ninguna)',
defaultFontHeight: 'Altura (puntos)',
defaultFontWidth: 'Ancho (dots)',
customFontsHeading: 'Fuentes personalizadas',
Expand Down
1 change: 1 addition & 0 deletions src/locales/et.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const et = {
mirror: 'Peegelpilt',
defaultFont: 'Vaikimisi teksti stiil',
defaultFontId: 'Font',
defaultFontIdNone: '(puudub)',
defaultFontHeight: 'Kõrgus (punktid)',
defaultFontWidth: 'Laius (dots)',
customFontsHeading: 'Kohandatud fondid',
Expand Down
1 change: 1 addition & 0 deletions src/locales/fa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const fa = {
mirror: 'تصویر آینه‌ای',
defaultFont: 'سبک متن پیش‌فرض',
defaultFontId: 'قلم',
defaultFontIdNone: '(هیچ)',
defaultFontHeight: 'ارتفاع (نقطه)',
defaultFontWidth: 'عرض (dots)',
customFontsHeading: 'فونت‌های سفارشی',
Expand Down
1 change: 1 addition & 0 deletions src/locales/fi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const fi = {
mirror: 'Peilikuva',
defaultFont: 'Oletustekstityyli',
defaultFontId: 'Fontti',
defaultFontIdNone: '(ei mitään)',
defaultFontHeight: 'Korkeus (pisteet)',
defaultFontWidth: 'Leveys (dots)',
customFontsHeading: 'Mukautetut fontit',
Expand Down
1 change: 1 addition & 0 deletions src/locales/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const fr = {
mirror: 'Image miroir',
defaultFont: 'Style de texte par défaut',
defaultFontId: 'Police',
defaultFontIdNone: '(aucune)',
defaultFontHeight: 'Hauteur (points)',
defaultFontWidth: 'Largeur (dots)',
customFontsHeading: 'Polices personnalisées',
Expand Down
1 change: 1 addition & 0 deletions src/locales/he.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const he = {
mirror: 'תמונת ראי',
defaultFont: 'סגנון טקסט ברירת מחדל',
defaultFontId: 'גופן',
defaultFontIdNone: '(ללא)',
defaultFontHeight: 'גובה (נקודות)',
defaultFontWidth: 'רוחב (dots)',
customFontsHeading: 'גופנים מותאמים',
Expand Down
1 change: 1 addition & 0 deletions src/locales/hr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const hr = {
mirror: 'Zrcalna slika',
defaultFont: 'Zadani stil teksta',
defaultFontId: 'Font',
defaultFontIdNone: '(nijedan)',
defaultFontHeight: 'Visina (točke)',
defaultFontWidth: 'Širina (dots)',
customFontsHeading: 'Prilagođeni fontovi',
Expand Down
1 change: 1 addition & 0 deletions src/locales/hu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const hu = {
mirror: 'Tükörkép',
defaultFont: 'Alapértelmezett szövegstílus',
defaultFontId: 'Betűtípus',
defaultFontIdNone: '(nincs)',
defaultFontHeight: 'Magasság (pontok)',
defaultFontWidth: 'Szélesség (dots)',
customFontsHeading: 'Egyéni betűtípusok',
Expand Down
1 change: 1 addition & 0 deletions src/locales/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const it = {
mirror: 'Immagine speculare',
defaultFont: 'Stile di testo predefinito',
defaultFontId: 'Carattere',
defaultFontIdNone: '(nessuno)',
defaultFontHeight: 'Altezza (punti)',
defaultFontWidth: 'Larghezza (dots)',
customFontsHeading: 'Font personalizzati',
Expand Down
1 change: 1 addition & 0 deletions src/locales/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const ja = {
mirror: '鏡像',
defaultFont: '既定のテキストスタイル',
defaultFontId: 'フォント',
defaultFontIdNone: '(なし)',
defaultFontHeight: '高さ (ドット)',
defaultFontWidth: '幅 (dots)',
customFontsHeading: 'カスタムフォント',
Expand Down
1 change: 1 addition & 0 deletions src/locales/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const ko = {
mirror: '거울 이미지',
defaultFont: '기본 텍스트 스타일',
defaultFontId: '글꼴',
defaultFontIdNone: '(없음)',
defaultFontHeight: '높이 (도트)',
defaultFontWidth: '너비 (dots)',
customFontsHeading: '사용자 글꼴',
Expand Down
1 change: 1 addition & 0 deletions src/locales/lt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const lt = {
mirror: 'Veidrodinis vaizdas',
defaultFont: 'Numatytasis teksto stilius',
defaultFontId: 'Šriftas',
defaultFontIdNone: '(jokio)',
defaultFontHeight: 'Aukštis (taškai)',
defaultFontWidth: 'Plotis (dots)',
customFontsHeading: 'Pasirinktiniai šriftai',
Expand Down
1 change: 1 addition & 0 deletions src/locales/lv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const lv = {
mirror: 'Spoguļattēls',
defaultFont: 'Noklusējuma teksta stils',
defaultFontId: 'Fonts',
defaultFontIdNone: '(nav)',
defaultFontHeight: 'Augstums (punkti)',
defaultFontWidth: 'Platums (dots)',
customFontsHeading: 'Pielāgotie fonti',
Expand Down
1 change: 1 addition & 0 deletions src/locales/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const nl = {
mirror: 'Spiegelbeeld',
defaultFont: 'Standaard tekststijl',
defaultFontId: 'Lettertype',
defaultFontIdNone: '(geen)',
defaultFontHeight: 'Hoogte (dots)',
defaultFontWidth: 'Breedte (dots)',
customFontsHeading: 'Aangepaste lettertypen',
Expand Down
1 change: 1 addition & 0 deletions src/locales/no.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const no = {
mirror: 'Speilbilde',
defaultFont: 'Standardtekststil',
defaultFontId: 'Skrift',
defaultFontIdNone: '(ingen)',
defaultFontHeight: 'Høyde (punkter)',
defaultFontWidth: 'Bredde (dots)',
customFontsHeading: 'Egendefinerte skrifter',
Expand Down
1 change: 1 addition & 0 deletions src/locales/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const pl = {
mirror: 'Lustrzane odbicie',
defaultFont: 'Domyślny styl tekstu',
defaultFontId: 'Czcionka',
defaultFontIdNone: '(brak)',
defaultFontHeight: 'Wysokość (punkty)',
defaultFontWidth: 'Szerokość (dots)',
customFontsHeading: 'Niestandardowe czcionki',
Expand Down
1 change: 1 addition & 0 deletions src/locales/pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const pt = {
mirror: 'Imagem espelhada',
defaultFont: 'Estilo de texto predefinido',
defaultFontId: 'Fonte',
defaultFontIdNone: '(nenhuma)',
defaultFontHeight: 'Altura (pontos)',
defaultFontWidth: 'Largura (dots)',
customFontsHeading: 'Fontes personalizadas',
Expand Down
1 change: 1 addition & 0 deletions src/locales/ro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const ro = {
mirror: 'Imagine în oglindă',
defaultFont: 'Stil text implicit',
defaultFontId: 'Font',
defaultFontIdNone: '(niciuna)',
defaultFontHeight: 'Înălțime (puncte)',
defaultFontWidth: 'Lățime (dots)',
customFontsHeading: 'Fonturi personalizate',
Expand Down
1 change: 1 addition & 0 deletions src/locales/sk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const sk = {
mirror: 'Zrkadlový obraz',
defaultFont: 'Predvolený štýl textu',
defaultFontId: 'Písmo',
defaultFontIdNone: '(žiadne)',
defaultFontHeight: 'Výška (body)',
defaultFontWidth: 'Šírka (dots)',
customFontsHeading: 'Vlastné písma',
Expand Down
1 change: 1 addition & 0 deletions src/locales/sl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const sl = {
mirror: 'Zrcalna slika',
defaultFont: 'Privzeti slog besedila',
defaultFontId: 'Pisava',
defaultFontIdNone: '(brez)',
defaultFontHeight: 'Višina (točke)',
defaultFontWidth: 'Širina (dots)',
customFontsHeading: 'Pisave po meri',
Expand Down
1 change: 1 addition & 0 deletions src/locales/sr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const sr = {
mirror: 'Огледална слика',
defaultFont: 'Подразумевани стил текста',
defaultFontId: 'Фонт',
defaultFontIdNone: '(ниједно)',
defaultFontHeight: 'Висина (тачке)',
defaultFontWidth: 'Ширина (dots)',
customFontsHeading: 'Прилагођени фонтови',
Expand Down
1 change: 1 addition & 0 deletions src/locales/sv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const sv = {
mirror: 'Spegelbild',
defaultFont: 'Standardtextstil',
defaultFontId: 'Typsnitt',
defaultFontIdNone: '(ingen)',
defaultFontHeight: 'Höjd (punkter)',
defaultFontWidth: 'Bredd (dots)',
customFontsHeading: 'Egna typsnitt',
Expand Down
1 change: 1 addition & 0 deletions src/locales/tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const tr = {
mirror: 'Ayna görüntüsü',
defaultFont: 'Varsayılan metin stili',
defaultFontId: 'Yazı tipi',
defaultFontIdNone: '(yok)',
defaultFontHeight: 'Yükseklik (nokta)',
defaultFontWidth: 'Genişlik (dots)',
customFontsHeading: 'Özel yazı tipleri',
Expand Down
1 change: 1 addition & 0 deletions src/locales/zh-hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const zhHans = {
mirror: '镜像',
defaultFont: '默认文本样式',
defaultFontId: '字体',
defaultFontIdNone: '(无)',
defaultFontHeight: '高度 (点)',
defaultFontWidth: '宽度 (dots)',
customFontsHeading: '自定义字体',
Expand Down
1 change: 1 addition & 0 deletions src/locales/zh-hant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const zhHant = {
mirror: '鏡像',
defaultFont: '預設文字樣式',
defaultFontId: '字型',
defaultFontIdNone: '(無)',
defaultFontHeight: '高度 (點)',
defaultFontWidth: '寬度 (dots)',
customFontsHeading: '自訂字型',
Expand Down