Compare commits

...

2 Commits

Author SHA1 Message Date
sebseb7
4f5a44dc7d feat(i18n): add 'more' translation key across multiple languages and enhance SearchBar
- Introduce a new 'more' translation key in various language files to improve internationalization support.
- Update SearchBar component to include an IconButton for additional actions, enhancing user interaction.
- Ensure consistency in language context by adding the 'more' key in Arabic, Bulgarian, Czech, German, Greek, English, Spanish, French, Croatian, Hungarian, Italian, Polish, Romanian, Russian, Slovak, Slovenian, Albanian, Serbian, Swedish, Turkish, Ukrainian, and Chinese.
2025-11-16 07:58:08 +01:00
sebseb7
bf2e5f56ce fix(i18n): update SearchBar placeholder for translation support
- Change SearchBar placeholder text to utilize translation function for improved internationalization.
- Ensure consistency in language context across the application by integrating translation keys.
2025-11-16 07:44:39 +01:00
26 changed files with 71 additions and 30 deletions

View File

@@ -244,7 +244,7 @@ const SearchBar = () => {
> >
<TextField <TextField
ref={inputRef} ref={inputRef}
placeholder="Produkte suchen..." placeholder={t('search.searchProducts')}
variant="outlined" variant="outlined"
size="small" size="small"
fullWidth fullWidth
@@ -353,6 +353,25 @@ const SearchBar = () => {
</ListItem> </ListItem>
))} ))}
</List> </List>
<Box sx={{ p: 1, borderTop: 1, borderColor: 'divider' }}>
<IconButton
fullWidth
onClick={handleEnterClick}
sx={{
justifyContent: 'center',
py: 1,
color: 'primary.main',
'&:hover': {
backgroundColor: 'action.hover',
},
}}
>
<Typography variant="body2" sx={{ mr: 1 }}>
{t('common.more')}
</Typography>
<KeyboardReturnIcon fontSize="small" />
</IconButton>
</Box>
</Paper> </Paper>
)} )}
</Box> </Box>

View File

@@ -15,5 +15,6 @@ export default {
"remove": "إزالة", "remove": "إزالة",
"products": "منتجات", "products": "منتجات",
"product": "منتج", "product": "منتج",
"days": "أيام" "days": "أيام",
"more": "المزيد"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Премахни", "remove": "Премахни",
"products": "Продукти", "products": "Продукти",
"product": "Продукт", "product": "Продукт",
"days": "Дни" "days": "Дни",
"more": "още"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Odebrat", "remove": "Odebrat",
"products": "Produkty", "products": "Produkty",
"product": "Produkt", "product": "Produkt",
"days": "Dny" "days": "Dny",
"more": "více"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Entfernen", "remove": "Entfernen",
"products": "Produkte", "products": "Produkte",
"product": "Produkt", "product": "Produkt",
"days": "Tage" "days": "Tage",
"more": "mehr"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Αφαίρεση", "remove": "Αφαίρεση",
"products": "Προϊόντα", "products": "Προϊόντα",
"product": "Προϊόν", "product": "Προϊόν",
"days": "Ημέρες" "days": "Ημέρες",
"more": "περισσότερα"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Remove", // Entfernen "remove": "Remove", // Entfernen
"products": "Products", // Produkte "products": "Products", // Produkte
"product": "Product", // Produkt "product": "Product", // Produkt
"days": "Days" // Tage "days": "Days", // Tage
"more": "more" // mehr
}; };

View File

@@ -11,9 +11,10 @@ export default {
"back": "Atrás", "back": "Atrás",
"edit": "Editar", "edit": "Editar",
"delete": "Eliminar", "delete": "Eliminar",
"add": "Agregar", "add": "Añadir",
"remove": "Quitar", "remove": "Quitar",
"products": "Productos", "products": "Productos",
"product": "Producto", "product": "Producto",
"days": "Días" "days": "Días",
"more": "más"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Retirer", "remove": "Retirer",
"products": "Produits", "products": "Produits",
"product": "Produit", "product": "Produit",
"days": "Jours" "days": "Jours",
"more": "plus"
}; };

View File

@@ -1,5 +1,5 @@
export default { export default {
"placeholder": "Vous pouvez me demander des informations sur les variétés de cannabis...", "placeholder": "Vous pouvez me demander des variétés de cannabis...",
"recording": "Enregistrement en cours...", "recording": "Enregistrement en cours...",
"searchProducts": "Rechercher des produits...", "searchProducts": "Rechercher des produits...",
}; };

View File

@@ -7,7 +7,7 @@ export default {
"ok": "OK", "ok": "OK",
"yes": "Da", "yes": "Da",
"no": "Ne", "no": "Ne",
"next": "Sljedeće", "next": "Dalje",
"back": "Natrag", "back": "Natrag",
"edit": "Uredi", "edit": "Uredi",
"delete": "Izbriši", "delete": "Izbriši",
@@ -15,5 +15,6 @@ export default {
"remove": "Ukloni", "remove": "Ukloni",
"products": "Proizvodi", "products": "Proizvodi",
"product": "Proizvod", "product": "Proizvod",
"days": "Dani" "days": "Dani",
"more": "više"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Eltávolítás", "remove": "Eltávolítás",
"products": "Termékek", "products": "Termékek",
"product": "Termék", "product": "Termék",
"days": "Napok" "days": "Napok",
"more": "több"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Rimuovi", "remove": "Rimuovi",
"products": "Prodotti", "products": "Prodotti",
"product": "Prodotto", "product": "Prodotto",
"days": "Giorni" "days": "Giorni",
"more": "altro"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Usuń", "remove": "Usuń",
"products": "Produkty", "products": "Produkty",
"product": "Produkt", "product": "Produkt",
"days": "Dni" "days": "Dni",
"more": "więcej"
}; };

View File

@@ -7,7 +7,7 @@ export default {
"ok": "OK", "ok": "OK",
"yes": "Da", "yes": "Da",
"no": "Nu", "no": "Nu",
"next": "Următorul", "next": "Următor",
"back": "Înapoi", "back": "Înapoi",
"edit": "Editează", "edit": "Editează",
"delete": "Șterge", "delete": "Șterge",
@@ -15,5 +15,6 @@ export default {
"remove": "Elimină", "remove": "Elimină",
"products": "Produse", "products": "Produse",
"product": "Produs", "product": "Produs",
"days": "Zile" "days": "Zile",
"more": "mai mult"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Удалить", "remove": "Удалить",
"products": "Товары", "products": "Товары",
"product": "Товар", "product": "Товар",
"days": "Дни" "days": "Дни",
"more": "ещё"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Odstrániť", "remove": "Odstrániť",
"products": "Produkty", "products": "Produkty",
"product": "Produkt", "product": "Produkt",
"days": "Dni" "days": "Dni",
"more": "viac"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Odstrani", "remove": "Odstrani",
"products": "Izdelki", "products": "Izdelki",
"product": "Izdelek", "product": "Izdelek",
"days": "Dnevi" "days": "Dnevi",
"more": "več"
}; };

View File

@@ -13,7 +13,8 @@ export default {
"delete": "Fshi", "delete": "Fshi",
"add": "Shto", "add": "Shto",
"remove": "Hiq", "remove": "Hiq",
"products": "Produktet", "products": "Produkte",
"product": "Produkt", "product": "Produkt",
"days": "Ditë" "days": "Ditë",
"more": "më shumë"
}; };

View File

@@ -1,5 +1,5 @@
export default { export default {
"placeholder": "Mund të më pyesni për llojet e kanabisit...", "placeholder": "Mund të më pyesni për llojet e kanabisit...",
"recording": "Regjistrimi në proces...", "recording": "Regjistrimi në vazhdim...",
"searchProducts": "Kërko produkte...", "searchProducts": "Kërko produkte...",
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Ukloni", "remove": "Ukloni",
"products": "Proizvodi", "products": "Proizvodi",
"product": "Proizvod", "product": "Proizvod",
"days": "Dani" "days": "Dani",
"more": "više"
}; };

View File

@@ -1,5 +1,5 @@
export default { export default {
"placeholder": "Možete me pitati o vrstama kanabisa...", "placeholder": "Možete me pitati o sortama kanabisa...",
"recording": "Snimanje u toku...", "recording": "Snimanje u toku...",
"searchProducts": "Pretraži proizvode...", "searchProducts": "Pretraži proizvode...",
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Ta bort", "remove": "Ta bort",
"products": "Produkter", "products": "Produkter",
"product": "Produkt", "product": "Produkt",
"days": "Dagar" "days": "Dagar",
"more": "mer"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Kaldır", "remove": "Kaldır",
"products": "Ürünler", "products": "Ürünler",
"product": "Ürün", "product": "Ürün",
"days": "Günler" "days": "Günler",
"more": "daha fazla"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "Видалити", "remove": "Видалити",
"products": "Продукти", "products": "Продукти",
"product": "Продукт", "product": "Продукт",
"days": "Дні" "days": "Дні",
"more": "більше"
}; };

View File

@@ -15,5 +15,6 @@ export default {
"remove": "移除", "remove": "移除",
"products": "产品", "products": "产品",
"product": "产品", "product": "产品",
"days": "天" "days": "天",
"more": "更多"
}; };