import { getLanguage } from "./Language";

const languageStrings = {
    en: {
        // Common
        and: 'and',
        copy: 'copy',
        date: 'date',
        hour: 'hour(s)',
        on: 'on',
        name: 'name',
        // 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',
        // Scale Model
        scalemodel: 'Scale model',
        // Software
        code_pages: 'Code sections',
        code_pages_intro: 'Some notes and examples of code.',
        // Footer
        footer_contentparsed: 'Content is parsed by',
        footer_madewith: 'This site was made with',
    },
    nl: {
        // Common
        and: 'en',
        copy: 'kopieer',
        date: 'datum',
        hour: 'uur',
        on: 'op',
        name: 'naam',
        // 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',
        // Scale Model
        scalemodel: 'Schaalmodel',
        // Software
        code_pages: 'Code secties',
        code_pages_intro: 'Notities en voorbeelden van code.',
        // 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}}`;
}