import type { WysiwygLang, WysiwygTranslations } from './types'; const en: WysiwygTranslations = { viewHTML: 'View HTML', formatting: 'Formatting', p: 'Paragraph', blockquote: 'Quote', code: 'Code', header: 'Heading', bold: 'Bold', italic: 'Italic', strikethrough: 'Strikethrough', underline: 'Underline', strong: 'Bold', em: 'Italic', del: 'Delete', unorderedList: 'Unordered list', orderedList: 'Ordered list', insertImage: 'Insert image', insertVideo: 'Insert video', link: 'Link', createLink: 'Insert/Edit link', unlink: 'Remove link', justifyLeft: 'Align left', justifyCenter: 'Align center', justifyRight: 'Align right', justifyFull: 'Justify', horizontalRule: 'Horizontal rule', removeformat: 'Remove format', fullscreen: 'Fullscreen', close: 'Close', submit: 'Confirm', reset: 'Cancel', required: 'Required', description: 'Description', title: 'Title', text: 'Text', url: 'URL', foreColor: 'Text color', backColor: 'Background color', foreColorRemove: 'Remove text color', backColorRemove: 'Remove background color', customColor: 'Custom color', customSize: 'Custom size', upload: 'Upload', file: 'File', uploadImage: 'Upload picture', uploadFile: 'Upload file', uploadError: 'Error', fontsize: 'Font size', lineheight: 'Line height', image: 'Image', width: 'Width', historyUndo: 'Undo', historyRedo: 'Redo', embed: 'Embed', embedError: 'Sorry, we couldn\'t embed this URL', noembed: 'Insert embed', }; const sk: WysiwygTranslations = { ...en, viewHTML: 'Zobraziť HTML', formatting: 'Formátovanie', p: 'Paragraf', blockquote: 'Citácia', code: 'Kód', header: 'Nadpis', bold: 'Tučné', italic: 'Kurzíva', strikethrough: 'Preškrtnuté', underline: 'Podčiarknuté', strong: 'Tučné', em: 'Zvýrazniť', del: 'Zmazať', unorderedList: 'Netriedený zoznam', orderedList: 'Triedený zoznam', insertImage: 'Vložiť obrázok', insertVideo: 'Vložiť video', link: 'Odkaz', createLink: 'Vložiť/Upraviť odkaz', unlink: 'Zmazať odkaz', justifyLeft: 'Zarovnať doľava', justifyCenter: 'Zarovnať na stred', justifyRight: 'Zarovnať doprava', justifyFull: 'Zarovnať do bloku', horizontalRule: 'Vložit vodorovnú čiaru', fullscreen: 'Režim celej obrazovky', close: 'Zavrieť', submit: 'Potvrdiť', reset: 'Zrušiť', required: 'Povinné', description: 'Popis', title: 'Popis', text: 'Text', url: 'URL', foreColor: 'Farba textu', backColor: 'Farba pozadia', foreColorRemove: 'Odstrániť farbu textu', backColorRemove: 'Odstrániť farbu pozadia', customColor: 'Vlastná farba', customSize: 'Vlastná veľkosť', upload: 'Nahrať', file: 'Súbor', uploadImage: 'Nahrať obrázok', uploadFile: 'Nahrať súbor', uploadError: 'Chyba', fontsize: 'Veľkosť písma', lineheight: 'Výška riadku', image: 'Obrázok', width: 'Šírka', historyUndo: 'Späť', historyRedo: 'Vpred', embed: 'Vložiť', embedError: 'Nepodarilo sa vložiť tento odkaz', noembed: 'Vložiť embed', }; const cs: WysiwygTranslations = { ...en, viewHTML: 'Zobrazit HTML', formatting: 'Formátování', p: 'Odstavec', blockquote: 'Citace', code: 'Kód', header: 'Nadpis', bold: 'Tučné', italic: 'Kurzíva', strikethrough: 'Přeškrtnuté', underline: 'Podtržené', strong: 'Tučné', em: 'Zvýraznit', del: 'Smazat', unorderedList: 'Netříděný seznam', orderedList: 'Tříděný seznam', insertImage: 'Vložit obrázek', insertVideo: 'Vložit video', link: 'Odkaz', createLink: 'Vložit/Upravit odkaz', unlink: 'Smazat odkaz', justifyLeft: 'Zarovnat doleva', justifyCenter: 'Zarovnat na střed', justifyRight: 'Zarovnat doprava', justifyFull: 'Zarovnat do bloku', horizontalRule: 'Vložit vodorovnou čáru', fullscreen: 'Režim celé obrazovky', close: 'Zavřít', submit: 'Potvrdit', reset: 'Zrušit', required: 'Povinné', description: 'Popis', title: 'Popis', text: 'Text', url: 'URL', customColor: 'Vlastní barva', customSize: 'Vlastní velikost', upload: 'Nahrát obrázek', file: 'Soubor', uploadImage: 'Nahrát obrázek', uploadFile: 'Nahrát soubor', uploadError: 'Chyba', fontsize: 'Velikost písma', lineheight: 'Výška řádku', image: 'Obrázek', width: 'Šířka', historyUndo: 'Zpět', historyRedo: 'Vpřed', embed: 'Vložit', embedError: 'Nepodařilo se vložit tento odkaz', noembed: 'Vložit embed', }; const de: WysiwygTranslations = { ...en, viewHTML: 'HTML anzeigen', formatting: 'Formatieren', p: 'Absatz', blockquote: 'Zitat', code: 'Code', header: 'Überschrift', bold: 'Fett', italic: 'Kursiv', strikethrough: 'Durchgestrichen', underline: 'Unterstrichen', strong: 'Wichtig', em: 'Betont', del: 'Gelöscht', unorderedList: 'Ungeordnete Liste', orderedList: 'Geordnete Liste', image: 'Bild', insertImage: 'Bild einfügen', insertVideo: 'Video einfügen', link: 'Link', createLink: 'Link einfügen/bearbeiten', unlink: 'Link entfernen', justifyLeft: 'Links ausrichten', justifyCenter: 'Zentrieren', justifyRight: 'Rechts ausrichten', justifyFull: 'Blocksatz', horizontalRule: 'Horizontale Linie einfügen', removeformat: 'Format entfernen', fullscreen: 'Vollbild', close: 'Schließen', submit: 'Bestätigen', reset: 'Abbrechen', required: 'Erforderlich', description: 'Beschreibung', title: 'Titel', text: 'Text', url: 'URL', foreColor: 'Textfarbe', backColor: 'Hintergrundfarbe', foreColorRemove: 'Textfarbe entfernen', backColorRemove: 'Hintergrundfarbe entfernen', customColor: 'Eigene Farbe', customSize: 'Eigene Größe', upload: 'Hochladen', file: 'Datei', uploadImage: 'Bild hochladen', uploadFile: 'Datei hochladen', uploadError: 'Fehler', fontsize: 'Schriftgröße', lineheight: 'Zeilenhöhe', width: 'Breite', historyUndo: 'Rückgängig', historyRedo: 'Wiederherstellen', embed: 'Einbetten', embedError: 'Diese URL konnte nicht eingebettet werden', noembed: 'Embed einfügen', }; const pl: WysiwygTranslations = { ...en, viewHTML: 'Pokaż HTML', formatting: 'Formatowanie', p: 'Akapit', blockquote: 'Cytat', code: 'Kod', header: 'Nagłówek', bold: 'Pogrubienie', italic: 'Kursywa', strikethrough: 'Przekreślenie', underline: 'Podkreślenie', strong: 'Pogrubienie', em: 'Pochylenie', del: 'Usuń', unorderedList: 'Lista nieuporządkowana', orderedList: 'Lista uporządkowana', insertImage: 'Wstaw obraz', insertVideo: 'Wstaw wideo', link: 'Link', createLink: 'Wstaw/edytuj link', unlink: 'Usuń link', justifyLeft: 'Wyrównaj do lewej', justifyCenter: 'Wyśrodkuj', justifyRight: 'Wyrównaj do prawej', justifyFull: 'Wyjustuj', horizontalRule: 'Wstaw linię poziomą', removeformat: 'Usuń formatowanie', fullscreen: 'Pełen ekran', close: 'Zamknij', submit: 'Potwierdź', reset: 'Anuluj', required: 'Wymagane', description: 'Opis', title: 'Tytuł', text: 'Tekst', foreColor: 'Kolor tekstu', backColor: 'Kolor tła', foreColorRemove: 'Usuń kolor tekstu', backColorRemove: 'Usuń kolor tła', customColor: 'Niestandardowy kolor', customSize: 'Niestandardowy rozmiar', upload: 'Prześlij', file: 'Plik', uploadImage: 'Prześlij obraz', uploadFile: 'Prześlij plik', uploadError: 'Błąd', fontsize: 'Rozmiar czcionki', lineheight: 'Wysokość linii', image: 'Obraz', width: 'Szerokość', historyUndo: 'Cofnij', historyRedo: 'Ponów', embed: 'Osadź', embedError: 'Nie można osadzić tego adresu URL', noembed: 'Wstaw osadzanie', }; const it: WysiwygTranslations = { ...en, viewHTML: 'Mostra HTML', formatting: 'Formattazione', p: 'Paragrafo', blockquote: 'Citazione', code: 'Codice', header: 'Intestazione', bold: 'Grassetto', italic: 'Corsivo', strikethrough: 'Barrato', underline: 'Sottolineato', strong: 'Grassetto', em: 'Corsivo', del: 'Elimina', unorderedList: 'Elenco puntato', orderedList: 'Elenco numerato', insertImage: 'Inserisci immagine', insertVideo: 'Inserisci video', link: 'Collegamento', createLink: 'Inserisci/Modifica collegamento', unlink: 'Rimuovi collegamento', justifyLeft: 'Allinea a sinistra', justifyCenter: 'Allinea al centro', justifyRight: 'Allinea a destra', justifyFull: 'Giustifica', horizontalRule: 'Linea orizzontale', removeformat: 'Rimuovi formattazione', fullscreen: 'Schermo intero', close: 'Chiudi', submit: 'Conferma', reset: 'Annulla', required: 'Obbligatorio', description: 'Descrizione', title: 'Titolo', text: 'Testo', foreColor: 'Colore testo', backColor: 'Colore sfondo', foreColorRemove: 'Rimuovi colore testo', backColorRemove: 'Rimuovi colore sfondo', customColor: 'Colore personalizzato', customSize: 'Dimensione personalizzata', upload: 'Carica', file: 'File', uploadImage: 'Carica immagine', uploadFile: 'Carica file', uploadError: 'Errore', fontsize: 'Dimensione carattere', lineheight: 'Altezza riga', image: 'Immagine', width: 'Larghezza', historyUndo: 'Annulla', historyRedo: 'Ripeti', embed: 'Incorpora', embedError: 'Impossibile incorporare questo URL', noembed: 'Inserisci incorporamento', }; const hu: WysiwygTranslations = { ...en, viewHTML: 'HTML megtekintése', formatting: 'Formázás', p: 'Bekezdés', blockquote: 'Idézet', code: 'Kód', header: 'Címsor', bold: 'Félkövér', italic: 'Dőlt', strikethrough: 'Áthúzott', underline: 'Aláhúzott', strong: 'Félkövér', em: 'Dőlt', del: 'Törölt', unorderedList: 'Felsorolás', orderedList: 'Számozott lista', insertImage: 'Kép beszúrása', insertVideo: 'Videó beszúrása', link: 'Link', createLink: 'Link beszúrása/szerkesztése', unlink: 'Link eltávolítása', justifyLeft: 'Balra igazítás', justifyCenter: 'Középre igazítás', justifyRight: 'Jobbra igazítás', justifyFull: 'Sorkizárt', horizontalRule: 'Vízszintes vonal', removeformat: 'Formázás eltávolítása', fullscreen: 'Teljes képernyő', close: 'Bezárás', submit: 'Megerősítés', reset: 'Mégse', required: 'Kötelező', description: 'Leírás', title: 'Cím', text: 'Szöveg', foreColor: 'Szövegszín', backColor: 'Háttérszín', foreColorRemove: 'Szövegszín eltávolítása', backColorRemove: 'Háttérszín eltávolítása', customColor: 'Egyéni szín', customSize: 'Egyéni méret', upload: 'Feltöltés', file: 'Fájl', uploadImage: 'Kép feltöltése', uploadFile: 'Fájl feltöltése', uploadError: 'Hiba', fontsize: 'Betűméret', lineheight: 'Sormagasság', image: 'Kép', width: 'Szélesség', historyUndo: 'Visszavonás', historyRedo: 'Újra', embed: 'Beágyazás', embedError: 'Ezt az URL-t nem sikerült beágyazni', noembed: 'Beágyazás beszúrása', }; const dict: Record = { en, sk, cs, de, pl, it, hu, }; export const getTranslations = (lang: string | WysiwygLang): WysiwygTranslations => { return dict[lang as WysiwygLang] || en; };