import type { Dictionary } from '@shoptet/ui-core-web'; type RangeInputTranslations = { value: (value: [string | null, string | null], separator: string) => string; startValue: string; endValue: string; }; function explainSeparator(separator: string): string { return [...separator].join(', '); } // Fix translations according to en-US and sk-SK which are correct. export const dictionary: Dictionary = { 'en-US': { value: ([start, end], separator) => `Range, from ${start === null ? 'unset' : start}, to ${end === null ? 'unset' : end}, use ${explainSeparator(separator)} to separate values`, startValue: 'Range, value from:', endValue: 'Range, value to:', }, 'cs-CZ': { value: ([start, end], separator) => `Rozsah, od ${start === null ? 'nevyplněno' : start}, do ${end === null ? 'nevyplněno' : end}, použijte ${explainSeparator(separator)} k oddělení hodnot`, startValue: 'Rozsah, hodnota od:', endValue: 'Rozsah, hodnota do:', }, 'de-DE': { value: ([start, end], separator) => `Bereich, von ${start === null ? 'nicht gesetzt' : start}, bis ${end === null ? 'nicht gesetzt' : end}, verwenden Sie ${explainSeparator(separator)} um die Werte zu trennen`, startValue: 'Bereich, Wert von:', endValue: 'Bereich, Wert bis:', }, 'hu-HU': { value: ([start, end], separator) => `Tartomány, kezdőérték: ${start === null ? 'nincs megadva' : start}, záróérték: ${end === null ? 'nincs megadva' : end}, használja a(z) ${explainSeparator(separator)} karaktert az értékek elválasztásához`, startValue: 'Tartomány, kezdőérték:', endValue: 'Tartomány, záróérték:', }, 'pl-PL': { value: ([start, end], separator) => `Zakres, od ${start === null ? 'nie ustawiono' : start}, do ${end === null ? 'nie ustawiono' : end}, użyj ${explainSeparator(separator)} do oddzielenia wartości`, startValue: 'Zakres, wartość od:', endValue: 'Zakres, wartość do:', }, 'ro-RO': { value: ([start, end], separator) => `Interval, de la ${start === null ? 'neconfigurat' : start}, până la ${end === null ? 'neconfigurat' : end}, folosiți ${explainSeparator(separator)} pentru a separa valorile`, startValue: 'Interval, valoare de la:', endValue: 'Interval, valoare până la:', }, 'sk-SK': { value: ([start, end], separator) => `Rozsah, od ${start === null ? 'nevyplneno' : start}, do ${end === null ? 'nevyplneno' : end}, použite ${explainSeparator(separator)} na oddelenie hodnôt`, startValue: 'Rozsah, hodnota od:', endValue: 'Rozsah, hodnota do:', }, 'vi-VN': { value: ([start, end], separator) => `Khoảng, từ ${start === null ? 'chưa đặt' : start}, đến ${end === null ? 'chưa đặt' : end}, sử dụng ${explainSeparator(separator)} để tách các giá trị`, startValue: 'Khoảng, giá trị từ:', endValue: 'Khoảng, giá trị đến:', }, } as const;