import { getLanguage } from "./Language";

const languageStrings = {
    en: {
        // Common
        and: 'and',
        colour: 'colour',
        copy: 'copy',
        date: 'date',
        hour: 'hour(s)',
        identifier: 'identifier',
        on: 'on',
        name: 'name',
        stock: 'stock',
        total: 'total',
        type: 'type',
        // Titles
        japan: 'Japan',
        japanese: 'Japanese',
        radio_amateur: 'Radio amateur',
        software: 'Software',
        // Japan
        download_map_at_github: 'Get this map at Github',
        // Education
        certification: 'Certification',
        completed: 'Completed',
        course: 'Cursus',
        courses: 'Courses',
        duration: 'Duration',
        education: 'Education',
        institution: 'Institution',
        instructor: 'Instructor',
        issued: 'issued',
        skills: 'Skills',
        // Navigation
        portal: 'Portal',
        language: 'Language',
        // Radio
        antenna: 'antenna',
        bands: 'bands',
        equipment: 'Equipment',
        components: 'components',
        fielddays: 'Field days',
        nvisAntenna: 'NVIS Antenna',
        totalUniqueQSO: 'total unique QSO',
        // Plamo
        category: 'Category',
        plamo: 'Plamo',
        manufacturer: 'Manufacturer',
        model_name: 'Model name',
        purchase_date: 'Purchase date',
        purchase_store: 'Store',
        purchase_price: 'Price',
        released: 'Released',
        scale: 'Scale',
        scalemodel: 'Scale model',
        collection: 'Collection',
        collection_text: 'My collection of kits that I bought over the years. Some still in box, some completed and some in limbo.',
        // Software
        code_pages: 'Code sections',
        code_pages_intro: 'Some notes and examples of code.',
        software_projects: 'Projects',
        // Projects
        attachment_module: 'Attachment module',
        boebot: 'Board of Education robot',
        config_automation: 'Configuration automation',
        dxp_development: 'DXP development',
        embedded_internet_radio: 'Embedded internet radio',
        embedded_game: 'Embedded game',
        ios_airports: 'iOS airport',
        festival_simulator: 'Festival simulator',
        kanji_application: 'Japanese memory mobile application',
        metroid_horizontal_shooter: 'Metroid horizontal shooter game',
        raspberry_pi_jukebox: 'Raspberry Pi Jukebox',
        teslamaze: 'TeslaMaze',
        wifi_prototype: 'Wi-Fi prototype board',
        windows10_cookbook: 'Windows 10 cookbook',
        // Footer
        footer_contentparsed: 'Content is parsed by',
        footer_madewith: 'This site was made with',
    },
    nl: {
        // Common
        and: 'en',
        colour: 'kleur',
        copy: 'kopieer',
        date: 'datum',
        hour: 'uur',
        identifier: 'identificatiecode',
        on: 'op',
        name: 'naam',
        stock: 'voorraad',
        total: 'totaal',
        type: 'type',
        // Titles
        japan: 'Japan',
        japanese: 'Japans',
        radio_amateur: 'Radiozendamateur',
        software: 'Software',
        // Japan
        download_map_at_github: 'Download deze kaart op Github',
        // Education
        certification: 'Certificering',
        completed: 'Voltooid',
        course: 'Cursus',
        courses: 'Cursussen',
        duration: 'Duur',
        education: 'Opleiding',
        institution: 'Institutie',
        instructor: 'Instructeur',
        issued: 'uitgegeven',
        skills: 'Vaardigheden',
        // Navigation
        portal: 'Portaal',
        language: 'Taal',
        // Radio
        antenna: 'antenne',
        bands: 'banden',
        equipment: 'Apparatuur',
        components: 'componenten',
        fielddays: 'Velddagen',
        nvisAntenna: 'NVIS antenne',
        totalUniqueQSO: 'totaal unieke QSO',
        // Plamo
        category: 'Categorie',
        plamo: 'Plamo',
        manufacturer: 'Fabrikant',
        model_name: 'Modelnaam',
        purchase_date: 'Datum van aankoop',
        purchase_store: 'Winkel',
        purchase_price: 'Prijs',
        released: 'Jaar van uitgave',
        scale: 'Schaal',
        scalemodel: 'Schaalmodel',
        collection: 'Verzameling',
        collection_text: 'Mijn verzameling van model kits die ik de afgelopen jaren heb verzamelt. Sommige nog in de doos, sommige half afgemaakt en sommige compleet met diorama.',
        // Software
        code_pages: 'Code secties',
        code_pages_intro: 'Notities en voorbeelden van code.',
        software_projects: 'Projecten',
        // Projects
        attachment_module: 'Attachment module',
        boebot: 'Board of Education robot',
        config_automation: 'Configuratie automatisering',
        dxp_development: 'DXP development',
        embedded_internet_radio: 'Embedded internet radio',
        embedded_game: 'Embedded spel',
        ios_airports: 'iOS luchthavens',
        festival_simulator: 'Festival simulator',
        kanji_application: 'Japanse geheugensteun mobiele applicatie',
        metroid_horizontal_shooter: 'Metroid horizontale shooter spel',
        raspberry_pi_jukebox: 'Raspberry Pi Jukebox',
        teslamaze: 'TeslaMaze',
        wifi_prototype: 'Wi-Fi prototype board',
        windows10_cookbook: 'Windows 10 kookboek',

        // Footer
        footer_contentparsed: 'Inhoud is verwerkt door',
        footer_madewith: 'Deze website is gemaakt met',
    },
};

export function getString(key) {
    const language = getLanguage();
    return languageStrings[language][key] || `{${key}}`;
}