diff --git a/messages/de.json b/messages/de.json index 1eaea11dc..2d5d74489 100644 --- a/messages/de.json +++ b/messages/de.json @@ -665,7 +665,17 @@ "community": "Community Inserate" }, "categories": { - "all": "Alle" + "all": "Alle", + "10": "Laptops", + "20": "Desktop PCs", + "30": "Monitore", + "40": "Tablets", + "50": "Smartphones", + "60": "Drucker & Scanner", + "70": "Komponenten", + "80": "Peripherie", + "90": "Netzwerk", + "99": "Sonstiges" }, "filters": { "label": "Filter", @@ -724,7 +734,9 @@ "backToMarketplace": "Zurück zum Marketplace", "imageAriaLabel": "Bild {n} anzeigen", "conditionMeaningFor": "Was bedeutet \"{condition}\" für {category}?", - "loadError": "Fehler beim Laden des Inserats" + "loadError": "Fehler beim Laden des Inserats", + "verified": "Verifiziert", + "free": "Gratis" }, "listing_actions": { "payment_info": "Direkte Zahlung zwischen Käufer und Verkäufer", @@ -761,7 +773,18 @@ "likeNew": "Wie neu", "good": "Gut", "fair": "Akzeptabel", - "forParts": "Für Ersatzteile" + "forParts": "Für Ersatzteile", + "like_new": "Wie neu", + "poor": "Schlecht", + "defect": "Defekt", + "descriptions": { + "new": "Originalverpackt, unbenutzt", + "like_new": "Keine sichtbaren Gebrauchsspuren, voll funktionsfähig", + "good": "Leichte Gebrauchsspuren, voll funktionsfähig", + "fair": "Deutliche Gebrauchsspuren, funktionsfähig", + "poor": "Starke Gebrauchsspuren, funktionsfähig mit Einschränkungen", + "defect": "Nicht funktionsfähig, für Ersatzteile" + } }, "conditionExplainer": "Was bedeutet \"{condition}\" für {category}?", "pagination": { @@ -913,6 +936,31 @@ "shipped": "Versandt", "delivered": "Erhalten", "reviewed": "Bewertet" + }, + "delivery": { + "pickup": "Abholung", + "shipping": "Versand", + "both": "Abholung & Versand" + }, + "payment": { + "secure": "Sichere Zahlung — demnächst verfügbar", + "direct": "Direkt (TWINT, Bar, Überweisung)", + "both": "Beide Optionen" + }, + "sort": { + "newest": "Neueste zuerst", + "price_asc": "Preis aufsteigend", + "price_desc": "Preis absteigend", + "popular": "Beliebteste" + }, + "chips": { + "orgDevices": "{orgName} Geräte", + "community": "Community", + "priceFrom": "ab CHF {min}", + "priceTo": "bis CHF {max}", + "gratis": "Gratis", + "verified": "Geprüft", + "remove": "{label} entfernen" } }, "services": { @@ -5660,35 +5708,119 @@ "intro": "Diese Werte sind interne Schätzungen, basierend auf der bisherigen Produktion und auf typischen Energie- und Materialwerten pro Gerät. Die definitive Bilanz erstellt die ZHAW im Schlussbericht (geplant Q3 2026).", "disclaimer": "Schätzung — verifizierte Werte folgen mit ZHAW-LCA", "cards": [ - { "key": "ewaste", "label": "E-Schrott vermieden", "unit": "kg" }, - { "key": "workshop", "label": "Stunden in Werkstätten", "unit": "h" }, - { "key": "co2", "label": "CO₂-Einsparung (geschätzt)", "unit": "kg" }, - { "key": "reuse", "label": "Wiederverwendungs-Rate", "unit": "%" } + { + "key": "ewaste", + "label": "E-Schrott vermieden", + "unit": "kg" + }, + { + "key": "workshop", + "label": "Stunden in Werkstätten", + "unit": "h" + }, + { + "key": "co2", + "label": "CO₂-Einsparung (geschätzt)", + "unit": "kg" + }, + { + "key": "reuse", + "label": "Wiederverwendungs-Rate", + "unit": "%" + } ] }, "timeline": { "title": "Meilensteine", "intro": "Vergangenes, Laufendes und Geplantes auf einen Blick.", - "labels": { "done": "Abgeschlossen", "active": "Laufend", "upcoming": "Geplant" }, + "labels": { + "done": "Abgeschlossen", + "active": "Laufend", + "upcoming": "Geplant" + }, "items": [ - { "key": "kickoff", "date": "Okt 2025", "label": "Projektstart & Konzept" }, - { "key": "prototype", "date": "Feb 2026", "label": "Erste funktionale Prototypen" }, - { "key": "lca-start", "date": "Apr 2026", "label": "ZHAW-Ökobilanz startet" }, - { "key": "series", "date": "Jun 2026", "label": "Kleinserie-Produktion läuft" }, - { "key": "swico", "date": "3. Jul 2026", "label": "Swico-Innovationsfonds-Präsentation" }, - { "key": "lca-final", "date": "Q3 2026", "label": "LCA-Schlussbericht (ZHAW)" }, - { "key": "scale", "date": "2027", "label": "Skalierungsphase II — Modellpalette & Vertrieb" } + { + "key": "kickoff", + "date": "Okt 2025", + "label": "Projektstart & Konzept" + }, + { + "key": "prototype", + "date": "Feb 2026", + "label": "Erste funktionale Prototypen" + }, + { + "key": "lca-start", + "date": "Apr 2026", + "label": "ZHAW-Ökobilanz startet" + }, + { + "key": "series", + "date": "Jun 2026", + "label": "Kleinserie-Produktion läuft" + }, + { + "key": "swico", + "date": "3. Jul 2026", + "label": "Swico-Innovationsfonds-Präsentation" + }, + { + "key": "lca-final", + "date": "Q3 2026", + "label": "LCA-Schlussbericht (ZHAW)" + }, + { + "key": "scale", + "date": "2027", + "label": "Skalierungsphase II — Modellpalette & Vertrieb" + } ] }, "partners": { "title": "Partner-Ökosystem", "intro": "Das Projekt funktioniert nur als Netzwerk. Wer welche Rolle übernimmt:", "groups": [ - { "key": "production", "title": "Produktion & Werkstätten", "names": ["Drahtzug", "FARO", "St. Jakob", "Palme"] }, - { "key": "pilots", "title": "Pilot-Standorte (Liegenschaften)", "names": ["Livit", "Wincasa", "Allreal", "ISS"] }, - { "key": "material", "title": "Material-Quelle", "names": ["ERZ Zürich"] }, - { "key": "science", "title": "Wissenschaftliche Begleitung", "names": ["ZHAW (Ökobilanz & Kosten-Nutzen-Analyse)"] }, - { "key": "funding", "title": "Förderung", "names": ["Swico Innovationsfonds"] } + { + "key": "production", + "title": "Produktion & Werkstätten", + "names": [ + "Drahtzug", + "FARO", + "St. Jakob", + "Palme" + ] + }, + { + "key": "pilots", + "title": "Pilot-Standorte (Liegenschaften)", + "names": [ + "Livit", + "Wincasa", + "Allreal", + "ISS" + ] + }, + { + "key": "material", + "title": "Material-Quelle", + "names": [ + "ERZ Zürich" + ] + }, + { + "key": "science", + "title": "Wissenschaftliche Begleitung", + "names": [ + "ZHAW (Ökobilanz & Kosten-Nutzen-Analyse)" + ] + }, + { + "key": "funding", + "title": "Förderung", + "names": [ + "Swico Innovationsfonds" + ] + } ] }, "calls": { @@ -8046,4 +8178,4 @@ } } } -} +} \ No newline at end of file diff --git a/messages/en.json b/messages/en.json index 467da7468..076385a6a 100644 --- a/messages/en.json +++ b/messages/en.json @@ -725,7 +725,9 @@ "backToMarketplace": "Back to Marketplace", "imageAriaLabel": "Show image {n}", "conditionMeaningFor": "What does \"{condition}\" mean for {category}?", - "loadError": "Error loading listing" + "loadError": "Error loading listing", + "verified": "Verified", + "free": "Free" }, "empty": "No listings found", "conditions": { @@ -733,7 +735,18 @@ "likeNew": "Like new", "good": "Good", "fair": "Fair", - "forParts": "For parts" + "forParts": "For parts", + "like_new": "Like new", + "poor": "Poor", + "defect": "For parts", + "descriptions": { + "new": "Original packaging, unused", + "like_new": "No visible wear, fully functional", + "good": "Light wear, fully functional", + "fair": "Visible wear, functional", + "poor": "Heavy wear, functional with limits", + "defect": "Not functional, for parts" + } }, "listingsAvailable": "{count, plural, one {# listing} other {# listings}} available", "searchPlaceholder": "Laptop, monitor, smartphone...", @@ -745,7 +758,17 @@ "community": "Community listings" }, "categories": { - "all": "All" + "all": "All", + "10": "Laptops", + "20": "Desktop PCs", + "30": "Monitors", + "40": "Tablets", + "50": "Smartphones", + "60": "Printers & Scanners", + "70": "Components", + "80": "Peripherals", + "90": "Networking", + "99": "Other" }, "listing_actions": { "payment_info": "Direct payment between buyer and seller", @@ -926,6 +949,31 @@ "shipped": "Shipped", "delivered": "Received", "reviewed": "Reviewed" + }, + "delivery": { + "pickup": "Pickup", + "shipping": "Shipping", + "both": "Pickup & Shipping" + }, + "payment": { + "secure": "Secure payment — coming soon", + "direct": "Direct (TWINT, cash, transfer)", + "both": "Both options" + }, + "sort": { + "newest": "Newest first", + "price_asc": "Price low to high", + "price_desc": "Price high to low", + "popular": "Most popular" + }, + "chips": { + "orgDevices": "{orgName} devices", + "community": "Community", + "priceFrom": "from CHF {min}", + "priceTo": "up to CHF {max}", + "gratis": "Free", + "verified": "Verified", + "remove": "Remove {label}" } }, "services": { @@ -8137,4 +8185,4 @@ } } } -} +} \ No newline at end of file diff --git a/messages/es.json b/messages/es.json index e677d2f86..a87380494 100644 --- a/messages/es.json +++ b/messages/es.json @@ -2755,7 +2755,17 @@ "community": "Anuncios de la comunidad" }, "categories": { - "all": "Todos" + "all": "Todos", + "10": "Portátiles", + "20": "PCs de sobremesa", + "30": "Monitores", + "40": "Tabletas", + "50": "Smartphones", + "60": "Impresoras y escáneres", + "70": "Componentes", + "80": "Periféricos", + "90": "Red", + "99": "Otros" }, "filters": { "label": "Filtros", @@ -2814,7 +2824,9 @@ "backToMarketplace": "Volver al mercado", "imageAriaLabel": "Mostrar imagen {n}", "conditionMeaningFor": "¿Qué significa \"{condition}\" para {category}?", - "loadError": "Error al cargar el anuncio" + "loadError": "Error al cargar el anuncio", + "verified": "Verificado", + "free": "Gratis" }, "listing_actions": { "payment_info": "Pago directo entre comprador y vendedor", @@ -2851,7 +2863,18 @@ "likeNew": "Como nuevo", "good": "Bueno", "fair": "Aceptable", - "forParts": "Para piezas" + "forParts": "Para piezas", + "like_new": "Como nuevo", + "poor": "Malo", + "defect": "Para piezas", + "descriptions": { + "new": "Embalaje original, sin usar", + "like_new": "Sin signos visibles, totalmente funcional", + "good": "Ligeros signos de uso, totalmente funcional", + "fair": "Signos de uso visibles, funcional", + "poor": "Uso intenso, funcional con limitaciones", + "defect": "No funcional, para piezas" + } }, "conditionExplainer": "¿Qué significa «{condition}» para {category}?", "pagination": { @@ -3003,6 +3026,31 @@ "shipped": "Enviado", "delivered": "Recibido", "reviewed": "Valorado" + }, + "delivery": { + "pickup": "Recogida", + "shipping": "Envío", + "both": "Recogida y envío" + }, + "payment": { + "secure": "Pago seguro — próximamente", + "direct": "Directo (TWINT, efectivo, transferencia)", + "both": "Ambas opciones" + }, + "sort": { + "newest": "Más recientes", + "price_asc": "Precio ascendente", + "price_desc": "Precio descendente", + "popular": "Más populares" + }, + "chips": { + "orgDevices": "Dispositivos de {orgName}", + "community": "Comunidad", + "priceFrom": "desde CHF {min}", + "priceTo": "hasta CHF {max}", + "gratis": "Gratis", + "verified": "Verificado", + "remove": "Quitar {label}" } }, "membership": { @@ -8137,4 +8185,4 @@ } } } -} +} \ No newline at end of file diff --git a/messages/fr.json b/messages/fr.json index 200103f86..da42b6e1e 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -725,7 +725,9 @@ "backToMarketplace": "Retour à la place de marché", "imageAriaLabel": "Afficher image {n}", "conditionMeaningFor": "Que signifie \"{condition}\" pour {category}?", - "loadError": "Erreur lors du chargement de l'annonce" + "loadError": "Erreur lors du chargement de l'annonce", + "verified": "Vérifié", + "free": "Gratuit" }, "empty": "Aucune annonce trouvée", "conditions": { @@ -733,7 +735,18 @@ "likeNew": "Comme neuf", "good": "Bon", "fair": "Acceptable", - "forParts": "Pour pièces" + "forParts": "Pour pièces", + "like_new": "Comme neuf", + "poor": "Mauvais", + "defect": "Pour pièces", + "descriptions": { + "new": "Emballage d'origine, neuf", + "like_new": "Aucune trace visible, parfait état de fonctionnement", + "good": "Légères traces d'usage, parfait fonctionnement", + "fair": "Traces visibles, fonctionne", + "poor": "Usure marquée, fonctionne avec limitations", + "defect": "Non fonctionnel, pour pièces détachées" + } }, "listingsAvailable": "{count, plural, one {# annonce} other {# annonces}} disponible{count, plural, one {} other {s}}", "searchPlaceholder": "Laptop, écran, smartphone...", @@ -745,7 +758,17 @@ "community": "Annonces communautaires" }, "categories": { - "all": "Tous" + "all": "Tous", + "10": "Ordinateurs portables", + "20": "Ordinateurs de bureau", + "30": "Écrans", + "40": "Tablettes", + "50": "Smartphones", + "60": "Imprimantes & scanners", + "70": "Composants", + "80": "Périphériques", + "90": "Réseau", + "99": "Autres" }, "listing_actions": { "payment_info": "Paiement direct entre acheteur et vendeur", @@ -926,6 +949,31 @@ "shipped": "Expédié", "delivered": "Reçu", "reviewed": "Évalué" + }, + "delivery": { + "pickup": "Retrait sur place", + "shipping": "Livraison", + "both": "Retrait & livraison" + }, + "payment": { + "secure": "Paiement sécurisé — bientôt disponible", + "direct": "Direct (TWINT, espèces, virement)", + "both": "Les deux options" + }, + "sort": { + "newest": "Plus récents", + "price_asc": "Prix croissant", + "price_desc": "Prix décroissant", + "popular": "Plus populaires" + }, + "chips": { + "orgDevices": "Appareils {orgName}", + "community": "Communauté", + "priceFrom": "dès CHF {min}", + "priceTo": "jusqu'à CHF {max}", + "gratis": "Gratuit", + "verified": "Vérifié", + "remove": "Retirer {label}" } }, "services": { @@ -8138,4 +8186,4 @@ } } } -} +} \ No newline at end of file diff --git a/messages/it.json b/messages/it.json index 5a8d7c4df..9ac7dfc78 100644 --- a/messages/it.json +++ b/messages/it.json @@ -2755,7 +2755,17 @@ "community": "Annunci community" }, "categories": { - "all": "Tutti" + "all": "Tutti", + "10": "Laptop", + "20": "PC fissi", + "30": "Monitor", + "40": "Tablet", + "50": "Smartphone", + "60": "Stampanti e scanner", + "70": "Componenti", + "80": "Periferiche", + "90": "Rete", + "99": "Altro" }, "filters": { "label": "Filtri", @@ -2814,7 +2824,9 @@ "backToMarketplace": "Torna al marketplace", "imageAriaLabel": "Mostra immagine {n}", "conditionMeaningFor": "Cosa significa \"{condition}\" per {category}?", - "loadError": "Errore nel caricamento dell'annuncio" + "loadError": "Errore nel caricamento dell'annuncio", + "verified": "Verificato", + "free": "Gratis" }, "listing_actions": { "payment_info": "Pagamento diretto tra acquirente e venditore", @@ -2851,7 +2863,18 @@ "likeNew": "Come nuovo", "good": "Buono", "fair": "Accettabile", - "forParts": "Per ricambi" + "forParts": "Per ricambi", + "like_new": "Come nuovo", + "poor": "Cattivo", + "defect": "Per ricambi", + "descriptions": { + "new": "Confezione originale, mai usato", + "like_new": "Nessun segno visibile, perfettamente funzionante", + "good": "Lievi segni d'uso, perfettamente funzionante", + "fair": "Segni d'uso visibili, funzionante", + "poor": "Forte usura, funzionante con limitazioni", + "defect": "Non funzionante, per pezzi di ricambio" + } }, "conditionExplainer": "Cosa significa \"{condition}\" per {category}?", "pagination": { @@ -3003,6 +3026,31 @@ "shipped": "Spedito", "delivered": "Ricevuto", "reviewed": "Recensito" + }, + "delivery": { + "pickup": "Ritiro", + "shipping": "Spedizione", + "both": "Ritiro e spedizione" + }, + "payment": { + "secure": "Pagamento sicuro — in arrivo", + "direct": "Diretto (TWINT, contanti, bonifico)", + "both": "Entrambe le opzioni" + }, + "sort": { + "newest": "Più recenti", + "price_asc": "Prezzo crescente", + "price_desc": "Prezzo decrescente", + "popular": "Più popolari" + }, + "chips": { + "orgDevices": "Dispositivi {orgName}", + "community": "Comunità", + "priceFrom": "da CHF {min}", + "priceTo": "fino a CHF {max}", + "gratis": "Gratis", + "verified": "Verificato", + "remove": "Rimuovi {label}" } }, "membership": { @@ -8137,4 +8185,4 @@ } } } -} +} \ No newline at end of file diff --git a/messages/ja.json b/messages/ja.json index 62c35062e..aac056a96 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -2755,7 +2755,17 @@ "community": "コミュニティ出品" }, "categories": { - "all": "すべて" + "all": "すべて", + "10": "ノートパソコン", + "20": "デスクトップPC", + "30": "モニター", + "40": "タブレット", + "50": "スマートフォン", + "60": "プリンター・スキャナー", + "70": "コンポーネント", + "80": "周辺機器", + "90": "ネットワーク", + "99": "その他" }, "filters": { "label": "フィルター", @@ -2814,7 +2824,9 @@ "backToMarketplace": "マーケットプレイスに戻る", "imageAriaLabel": "画像{n}を表示", "conditionMeaningFor": "{category}における「{condition}」とは?", - "loadError": "リスト読み込みエラー" + "loadError": "リスト読み込みエラー", + "verified": "検証済み", + "free": "無料" }, "listing_actions": { "payment_info": "購入者と販売者の間の直接支払い", @@ -2850,8 +2862,19 @@ "new": "新品", "likeNew": "ほぼ新品", "good": "良好", - "fair": "普通", - "forParts": "部品取り用" + "fair": "可", + "forParts": "部品取り用", + "like_new": "ほぼ新品", + "poor": "難あり", + "defect": "部品取り用", + "descriptions": { + "new": "未開封・未使用", + "like_new": "使用感なし、完全動作", + "good": "軽い使用感、完全動作", + "fair": "目立つ使用感あり、動作する", + "poor": "強い使用感、制限付きで動作", + "defect": "動作不可、部品取り用" + } }, "conditionExplainer": "{category}にとって「{condition}」はどういう意味ですか?", "pagination": { @@ -3003,6 +3026,31 @@ "shipped": "発送済み", "delivered": "受取済み", "reviewed": "レビュー済み" + }, + "delivery": { + "pickup": "受け取り", + "shipping": "配送", + "both": "受け取り・配送" + }, + "payment": { + "secure": "安全な支払い — 近日対応", + "direct": "直接 (TWINT、現金、振込)", + "both": "両方" + }, + "sort": { + "newest": "新着順", + "price_asc": "価格が安い順", + "price_desc": "価格が高い順", + "popular": "人気順" + }, + "chips": { + "orgDevices": "{orgName} の機器", + "community": "コミュニティ", + "priceFrom": "CHF {min} から", + "priceTo": "CHF {max} まで", + "gratis": "無料", + "verified": "検証済み", + "remove": "{label} を削除" } }, "membership": { @@ -8137,4 +8185,4 @@ } } } -} +} \ No newline at end of file diff --git a/messages/ko.json b/messages/ko.json index c2b3bed63..c658781fa 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -2755,7 +2755,17 @@ "community": "커뮤니티 판매 목록" }, "categories": { - "all": "전체" + "all": "전체", + "10": "노트북", + "20": "데스크톱 PC", + "30": "모니터", + "40": "태블릿", + "50": "스마트폰", + "60": "프린터·스캐너", + "70": "부품", + "80": "주변기기", + "90": "네트워크", + "99": "기타" }, "filters": { "label": "필터", @@ -2814,7 +2824,9 @@ "backToMarketplace": "마켓플레이스로 돌아가기", "imageAriaLabel": "이미지 {n} 보기", "conditionMeaningFor": "{category}에서 \"{condition}\"은(는) 무엇을 의미하나요?", - "loadError": "게시물 로드 오류" + "loadError": "게시물 로드 오류", + "verified": "검증됨", + "free": "무료" }, "listing_actions": { "payment_info": "구매자와 판매자 간 직접 결제", @@ -2847,11 +2859,22 @@ }, "empty": "판매 목록을 찾을 수 없습니다", "conditions": { - "new": "새 것", + "new": "새 제품", "likeNew": "거의 새 것", "good": "양호", "fair": "보통", - "forParts": "부품용" + "forParts": "부품용", + "like_new": "거의 새것", + "poor": "나쁨", + "defect": "부품용", + "descriptions": { + "new": "미개봉, 미사용", + "like_new": "사용 흔적 없음, 완전 작동", + "good": "약간의 사용 흔적, 완전 작동", + "fair": "사용 흔적 뚜렷, 작동함", + "poor": "사용감 강함, 제한적으로 작동", + "defect": "작동 불가, 부품용" + } }, "conditionExplainer": "{category}에서 \"{condition}\"이 의미하는 것은?", "pagination": { @@ -3003,6 +3026,31 @@ "shipped": "배송됨", "delivered": "수령됨", "reviewed": "리뷰됨" + }, + "delivery": { + "pickup": "직접 수령", + "shipping": "배송", + "both": "수령·배송" + }, + "payment": { + "secure": "안전 결제 — 곧 출시", + "direct": "직접 (TWINT, 현금, 송금)", + "both": "두 가지 옵션" + }, + "sort": { + "newest": "최신순", + "price_asc": "가격 낮은순", + "price_desc": "가격 높은순", + "popular": "인기순" + }, + "chips": { + "orgDevices": "{orgName} 기기", + "community": "커뮤니티", + "priceFrom": "CHF {min}부터", + "priceTo": "CHF {max}까지", + "gratis": "무료", + "verified": "검증됨", + "remove": "{label} 제거" } }, "membership": { @@ -8137,4 +8185,4 @@ } } } -} +} \ No newline at end of file diff --git a/messages/ru.json b/messages/ru.json index d3dbfb2c3..efd4d7f92 100644 --- a/messages/ru.json +++ b/messages/ru.json @@ -665,7 +665,17 @@ "community": "Объявления сообщества" }, "categories": { - "all": "Все" + "all": "Все", + "10": "Ноутбуки", + "20": "Настольные ПК", + "30": "Мониторы", + "40": "Планшеты", + "50": "Смартфоны", + "60": "Принтеры и сканеры", + "70": "Компоненты", + "80": "Периферия", + "90": "Сеть", + "99": "Прочее" }, "filters": { "label": "Фильтр", @@ -724,7 +734,9 @@ "backToMarketplace": "Вернуться на маркетплейс", "imageAriaLabel": "Показать изображение {n}", "conditionMeaningFor": "Что означает «{condition}» для {category}?", - "loadError": "Ошибка при загрузке объявления" + "loadError": "Ошибка при загрузке объявления", + "verified": "Проверено", + "free": "Бесплатно" }, "listing_actions": { "payment_info": "Прямая оплата между покупателем и продавцом", @@ -761,7 +773,18 @@ "likeNew": "Как новое", "good": "Хорошее", "fair": "Приемлемое", - "forParts": "На запчасти" + "forParts": "На запчасти", + "like_new": "Как новое", + "poor": "Плохое", + "defect": "На запчасти", + "descriptions": { + "new": "В оригинальной упаковке, не использовалось", + "like_new": "Без видимых следов использования, полностью работает", + "good": "Лёгкие следы использования, полностью работает", + "fair": "Заметные следы использования, работает", + "poor": "Сильный износ, работает с ограничениями", + "defect": "Не работает, на запчасти" + } }, "conditionExplainer": "Что означает «{condition}» для {category}?", "pagination": { @@ -913,6 +936,31 @@ "shipped": "Отправлено", "delivered": "Получено", "reviewed": "Оценено" + }, + "delivery": { + "pickup": "Самовывоз", + "shipping": "Доставка", + "both": "Самовывоз и доставка" + }, + "payment": { + "secure": "Безопасный платёж — скоро", + "direct": "Напрямую (TWINT, наличные, перевод)", + "both": "Оба варианта" + }, + "sort": { + "newest": "Сначала новые", + "price_asc": "Сначала дешёвые", + "price_desc": "Сначала дорогие", + "popular": "Популярные" + }, + "chips": { + "orgDevices": "Устройства {orgName}", + "community": "Сообщество", + "priceFrom": "от CHF {min}", + "priceTo": "до CHF {max}", + "gratis": "Бесплатно", + "verified": "Проверено", + "remove": "Убрать {label}" } }, "services": { @@ -8129,4 +8177,4 @@ } } } -} +} \ No newline at end of file diff --git a/src/app/[locale]/marketplace/MarketplacePageClient.tsx b/src/app/[locale]/marketplace/MarketplacePageClient.tsx index 41d3699b2..a503b3bb5 100644 --- a/src/app/[locale]/marketplace/MarketplacePageClient.tsx +++ b/src/app/[locale]/marketplace/MarketplacePageClient.tsx @@ -147,7 +147,7 @@ export default function MarketplacePage() { aria-label={t('filters.sort')} > {SORT_OPTIONS.map((opt) => ( - + ))} @@ -180,7 +180,7 @@ export default function MarketplacePage() { aria-label={t('filters.sort')} > {SORT_OPTIONS.map((opt) => ( - + ))} diff --git a/src/components/marketplace/ActiveFilterChips.tsx b/src/components/marketplace/ActiveFilterChips.tsx index 9a034a381..502ee14c1 100644 --- a/src/components/marketplace/ActiveFilterChips.tsx +++ b/src/components/marketplace/ActiveFilterChips.tsx @@ -4,10 +4,7 @@ import { X } from 'lucide-react' import { useTranslations } from 'next-intl' import { Button } from '@/components/ui/button' import { - MARKETPLACE_CATEGORY_LABELS, CATEGORY_ICONS, - DELIVERY_LABELS, - PAYMENT_MODE_LABELS, MARKETPLACE_SELLER_TYPE, getSpecFiltersForCategory, type DeliveryOption, @@ -17,6 +14,8 @@ import { ZUSTAND_OPTIONS } from '@/config/erfassung/conditions' import { ORG } from '@/config/org' import type { FiltersObj } from './MarketplaceFilterSidebar' +type Translator = ReturnType> + interface ActiveFilterChipsProps { filters: FiltersObj resetOffset: () => void @@ -32,15 +31,17 @@ interface Chip { function buildChips( filters: FiltersObj, resetOffset: () => void, - orgName: string + orgName: string, + t: Translator ): Chip[] { const chips: Chip[] = [] if (filters.category) { const icon = CATEGORY_ICONS[filters.category] + const label = t(`categories.${filters.category}` as never) chips.push({ key: 'category', - label: `${icon ? icon + ' ' : ''}${MARKETPLACE_CATEGORY_LABELS[filters.category] || filters.category}`, + label: `${icon ? icon + ' ' : ''}${label}`, onRemove: () => { filters.setCategory(''); resetOffset() }, }) } @@ -50,8 +51,8 @@ function buildChips( key: 'sellerType', label: filters.sellerType === MARKETPLACE_SELLER_TYPE.REVAMPIT - ? `${orgName} Geräte` - : 'Community', + ? t('chips.orgDevices', { orgName }) + : t('chips.community'), onRemove: () => { filters.setSellerType(''); resetOffset() }, }) } @@ -60,7 +61,7 @@ function buildChips( const opt = ZUSTAND_OPTIONS.find((o) => o.value === filters.condition) chips.push({ key: 'condition', - label: opt?.label ?? filters.condition, + label: opt ? t(`conditions.${opt.value}` as never) : filters.condition, onRemove: () => { filters.setCondition(''); resetOffset() }, }) } @@ -79,13 +80,13 @@ function buildChips( } else if (filters.priceMin) { chips.push({ key: 'priceMin', - label: `ab CHF ${filters.priceMin}`, + label: t('chips.priceFrom', { min: filters.priceMin }), onRemove: () => { filters.setPriceMin(''); filters.setPriceError(null); resetOffset() }, }) } else if (filters.priceMax) { chips.push({ key: 'priceMax', - label: `bis CHF ${filters.priceMax}`, + label: t('chips.priceTo', { max: filters.priceMax }), onRemove: () => { filters.setPriceMax(''); filters.setPriceError(null); resetOffset() }, }) } @@ -93,7 +94,7 @@ function buildChips( if (filters.delivery) { chips.push({ key: 'delivery', - label: DELIVERY_LABELS[filters.delivery as DeliveryOption] ?? filters.delivery, + label: t(`delivery.${filters.delivery as DeliveryOption}` as never), onRemove: () => { filters.setDelivery(''); resetOffset() }, }) } @@ -101,7 +102,7 @@ function buildChips( if (filters.payment) { chips.push({ key: 'payment', - label: PAYMENT_MODE_LABELS[filters.payment as PaymentMode] ?? filters.payment, + label: t(`payment.${filters.payment as PaymentMode}` as never), onRemove: () => { filters.setPayment(''); resetOffset() }, }) } @@ -109,7 +110,7 @@ function buildChips( if (filters.gratisOnly) { chips.push({ key: 'gratis', - label: 'Gratis', + label: t('chips.gratis'), onRemove: () => { filters.setGratisOnly(false); resetOffset() }, }) } @@ -117,7 +118,7 @@ function buildChips( if (filters.verifiedOnly) { chips.push({ key: 'verified', - label: 'Geprüft', + label: t('chips.verified'), onRemove: () => { filters.setVerifiedOnly(false); resetOffset() }, }) } @@ -161,7 +162,7 @@ export function ActiveFilterChips({ clearFilters, }: ActiveFilterChipsProps) { const t = useTranslations('marketplace') - const chips = buildChips(filters, resetOffset, ORG.name) + const chips = buildChips(filters, resetOffset, ORG.name, t) if (chips.length === 0) return null @@ -178,7 +179,7 @@ export function ActiveFilterChips({ variant="ghost" size="icon" onClick={chip.onRemove} - aria-label={`${chip.label} entfernen`} + aria-label={t('chips.remove', { label: chip.label })} className="ml-0.5 flex items-center justify-center w-4 h-4 rounded-full hover:bg-secondary-200 text-secondary-500 hover:text-secondary-700 h-auto p-0 bg-transparent" > diff --git a/src/components/marketplace/ListingCard.tsx b/src/components/marketplace/ListingCard.tsx index dbf0df1b0..27c16bd14 100644 --- a/src/components/marketplace/ListingCard.tsx +++ b/src/components/marketplace/ListingCard.tsx @@ -12,11 +12,14 @@ */ import { Link } from '@/i18n/navigation' -import { getConditionLabel } from '@/config/erfassung/conditions' +import { useTranslations } from 'next-intl' +import { normalizeConditionValue, ZUSTAND_OPTIONS } from '@/config/erfassung/conditions' import { formatCHF } from '@/config/marketplace' import { ListingImage } from './ListingImage' import { ORG } from '@/config/org' +const CANONICAL_CONDITION_VALUES = new Set(ZUSTAND_OPTIONS.map(o => o.value)) + export interface ListingCardData { id: string title: string @@ -43,18 +46,22 @@ interface ListingCardProps { } export function ListingCard({ listing, variant = 'default', className = '' }: ListingCardProps) { + const t = useTranslations('marketplace') const sellerName = listing.seller_display_name || listing.seller_name const isCompact = variant === 'compact' const isGratis = Number(listing.price_chf) === 0 const isVerified = !!listing.verified_at - const conditionLabel = getConditionLabel(listing.condition) + const conditionKey = normalizeConditionValue(listing.condition) + const conditionLabel = CANONICAL_CONDITION_VALUES.has(conditionKey) + ? t(`conditions.${conditionKey}` as never) + : null // Eyebrow = monochrome meta line. Order: source (RevampIT vs P2P) · // condition · verified. Pure text, no chrome. const eyebrowParts = [ listing.is_revampit ? ORG.name : null, conditionLabel?.toUpperCase() ?? null, - isVerified ? 'VERIFIZIERT' : null, + isVerified ? t('listing.verified').toUpperCase() : null, ].filter(Boolean) as string[] const location = listing.pickup_location || listing.seller_city @@ -84,7 +91,7 @@ export function ListingCard({ listing, variant = 'default', className = '' }: Li
- {isGratis ? 'GRATIS' : formatCHF(Number(listing.price_chf))} + {isGratis ? t('listing.free').toUpperCase() : formatCHF(Number(listing.price_chf))}
diff --git a/src/components/marketplace/MarketplaceFilterSidebar.tsx b/src/components/marketplace/MarketplaceFilterSidebar.tsx index a8b5e264a..2cc812a76 100644 --- a/src/components/marketplace/MarketplaceFilterSidebar.tsx +++ b/src/components/marketplace/MarketplaceFilterSidebar.tsx @@ -5,12 +5,9 @@ import { ChevronDown, ChevronUp } from 'lucide-react' import { useTranslations } from 'next-intl' import { MARKETPLACE_CATEGORY_VALUES, - MARKETPLACE_CATEGORY_LABELS, CATEGORY_ICONS, DELIVERY_OPTIONS, - DELIVERY_LABELS, PAYMENT_MODES, - PAYMENT_MODE_LABELS, MARKETPLACE_LIMITS, MARKETPLACE_SELLER_TYPE, SPEC_FILTER_STATE_MAP, @@ -172,7 +169,7 @@ export function MarketplaceFilterSidebar({ {CATEGORY_ICONS[val] && ( {CATEGORY_ICONS[val]} )} - {MARKETPLACE_CATEGORY_LABELS[val] || val} + {t(`categories.${val}` as never)} } /> @@ -215,7 +212,7 @@ export function MarketplaceFilterSidebar({ name="condition" checked={filters.condition === opt.value} onChange={() => { filters.setCondition(opt.value); resetOffset() }} - label={opt.label} + label={t(`conditions.${opt.value}` as never)} /> ))} @@ -286,7 +283,7 @@ export function MarketplaceFilterSidebar({ name="delivery" checked={filters.delivery === opt} onChange={() => { filters.setDelivery(opt); resetOffset() }} - label={DELIVERY_LABELS[opt]} + label={t(`delivery.${opt}` as never)} /> ))} @@ -305,7 +302,7 @@ export function MarketplaceFilterSidebar({ name="payment" checked={filters.payment === opt} onChange={() => { filters.setPayment(opt); resetOffset() }} - label={PAYMENT_MODE_LABELS[opt]} + label={t(`payment.${opt}` as never)} /> ))}