import { useTranslation as usei18nextTranslation } from 'react-i18next';

import i18next from 'i18next';

const NAMESPACE = 'SCORM';

i18next.addResources('es', NAMESPACE, {
  TRAININGS: 'Capacitaciones',
  COURSES: 'Cursos',
  COURSE: 'Curso',
  TITLE: 'Título',
  STATE: 'Estado',
  REGISTER: 'Registrarse',
  COURSES_SCORM: 'Capacitaciones',
  INCOMPLETE: 'En progreso',
  UNKNOWN: 'Sin iniciar',
  COMPLETED: 'Completado',
  EMPTY_COURSES: 'No hay cursos disponibles',
  PLAY: 'Reproducir',
  TENARIS_COURSES: 'Cursos scorm',
  COURSES_AMOUNT: 'Cursos: {{courses_amount}}',
  SEARCH_BY_THEME: 'Buscar por tema',
  SEARCH_BY_COURSE_NAME: 'Buscar por nombre del curso',
  THEME: 'Tema',
  APPLY: 'Aplicar',
  COURSE_STATUS: 'Estado del curso',
  GO_BACK: 'Volver',
  DOWNLOAD: 'Descargar',
  PASSED: 'Aprobado',
  FAILED: 'Desaprobado',
  SCORM_PLAYER: 'Reproductor',
});

i18next.addResources('en', NAMESPACE, {
  TRAININGS: 'Training',
  COURSES: 'Courses',
  COURSE: 'Course',
  TITLE: 'Title',
  STATE: 'State',
  REGISTER: 'Sign in',
  COURSES_SCORM: 'Training',
  INCOMPLETE: 'In progress',
  UNKNOWN: 'Not started',
  COMPLETED: 'Completed',
  EMPTY_COURSES: 'No courses available',
  PLAY: 'Play',
  TENARIS_COURSES: 'Scorm courses',
  COURSES_AMOUNT: 'Courses: {{courses_amount}}',
  SEARCH_BY_THEME: 'Search by theme',
  SEARCH_BY_COURSE_NAME: 'Search by course name',
  THEME: 'Theme',
  APPLY: 'Apply',
  COURSE_STATUS: 'Course status',
  GO_BACK: 'Go back',
  DOWNLOAD: 'Download',
  PASSED: 'Passed',
  FAILED: 'Failed',
  SCORM_PLAYER: 'Player',
});

i18next.addResources('pt', NAMESPACE, {
  TRAININGS: 'Formações',
  COURSES: 'Cursos',
  COURSE: 'Curso',
  TITLE: 'Título',
  STATE: 'Estado',
  REGISTER: 'Registar',
  COURSES_SCORM: 'Formação Scorm',
  INCOMPLETE: 'Em progresso',
  UNKNOWN: 'Não iniciado',
  COMPLETED: 'Concluído',
  EMPTY_COURSES: 'Não existem cursos disponíveis',
  PLAY: 'Reproduzir',
  TENARIS_COURSES: 'Cursos Scorm',
  COURSES_AMOUNT: 'Cursos: {{courses_amount}}',
  SEARCH_BY_THEME: 'Pesquisar por tema',
  SEARCH_BY_COURSE_NAME: 'Pesquisar por nome do curso',
  THEME: 'Tema',
  APPLY: 'Aplicar',
  COURSE_STATUS: 'Estado do curso',
  GO_BACK: 'Voltar',
  DOWNLOAD: 'Transferir',
  PASSED: 'Aprovado',
  FAILED: 'Reprovado',
  SCORM_PLAYER: 'Reprodutor',
});

i18next.addResources('pt-br', NAMESPACE, {
  TRAININGS: 'Treinamentos',
  COURSES: 'Courses',
  COURSE: 'Curso',
  TITLE: 'Título',
  STATE: 'Estado',
  REGISTER: 'Registrarse',
  COURSES_SCORM: 'Treinamento de Camareira',
  INCOMPLETE: 'Em progresso',
  UNKNOWN: 'Não iniciado',
  COMPLETED: 'Preenchido',
  EMPTY_COURSES: 'Não há cursos disponíveis',
  PLAY: 'Jogar',
  TENARIS_COURSES: 'Cursos Scorm',
  COURSES_AMOUNT: 'Cursos: {{courses_amount}}',
  SEARCH_BY_THEME: 'Pesquisar por tópico',
  SEARCH_BY_COURSE_NAME: 'Pesquisar por curso',
  THEME: 'Emitir',
  APPLY: 'Aplicar',
  COURSE_STATUS: 'Status do curso',
  GO_BACK: 'Retornar',
  DOWNLOAD: 'Descarga',
  PASSED: 'Passado',
  FAILED: 'Fracassado',
  SCORM_PLAYER: 'Jogador',
});

i18next.addResources('it', NAMESPACE, {
  TRAININGS: 'Formazioni',
  COURSES: 'Corsi',
  COURSE: 'Corso',
  TITLE: 'Titolo',
  STATE: 'Stato',
  REGISTER: 'Registrati',
  COURSES_SCORM: 'Formazioni',
  INCOMPLETE: 'In corso',
  UNKNOWN: 'Non iniziato',
  COMPLETED: 'Completato',
  EMPTY_COURSES: 'Non ci sono corsi disponibili',
  PLAY: 'Riproduci',
  TENARIS_COURSES: 'Corsi scorm',
  COURSES_AMOUNT: 'Corsi: {{courses_amount}}',
  SEARCH_BY_THEME: 'Cerca per tema',
  SEARCH_BY_COURSE_NAME: 'Cerca per nome del corso',
  THEME: 'Tema',
  APPLY: 'Applica',
  COURSE_STATUS: 'Stato del corso',
  GO_BACK: 'Torna indietro',
  DOWNLOAD: 'Scarica',
  PASSED: 'Approvato',
  FAILED: 'Non approvato',
  SCORM_PLAYER: 'Lettore',
});

i18next.addResources('fr', NAMESPACE, {
  TRAININGS: 'Formations',
  COURSES: 'Cours',
  COURSE: 'Cours',
  TITLE: 'Titre',
  STATE: 'État',
  REGISTER: "S'inscrire",
  COURSES_SCORM: 'Formations',
  INCOMPLETE: 'En cours',
  UNKNOWN: 'Non commencé',
  COMPLETED: 'Terminé',
  EMPTY_COURSES: 'Aucun cours disponible',
  PLAY: 'Lire',
  TENARIS_COURSES: 'Cours scorm',
  COURSES_AMOUNT: 'Cours: {{courses_amount}}',
  SEARCH_BY_THEME: 'Rechercher par thème',
  SEARCH_BY_COURSE_NAME: 'Rechercher par nom du cours',
  THEME: 'Thème',
  APPLY: 'Appliquer',
  COURSE_STATUS: 'État du cours',
  GO_BACK: 'Retour',
  DOWNLOAD: 'Télécharger',
  PASSED: 'Réussi',
  FAILED: 'Échoué',
  SCORM_PLAYER: 'Lecteur',
});

i18next.addResources('no', NAMESPACE, {
  TRAININGS: 'Opplæringer',
  COURSES: 'Kurs',
  COURSE: 'Kurs',
  TITLE: 'Tittel',
  STATE: 'Tilstand',
  REGISTER: 'Registrer deg',
  COURSES_SCORM: 'Opplæringer',
  INCOMPLETE: 'Pågår',
  UNKNOWN: 'Ikke startet',
  COMPLETED: 'Fullført',
  EMPTY_COURSES: 'Ingen kurs tilgjengelig',
  PLAY: 'Spill av',
  TENARIS_COURSES: 'Scorm-kurs',
  COURSES_AMOUNT: 'Kurs: {{courses_amount}}',
  SEARCH_BY_THEME: 'Søk etter tema',
  SEARCH_BY_COURSE_NAME: 'Søk etter kursnavn',
  THEME: 'Tema',
  APPLY: 'Bruk',
  COURSE_STATUS: 'Kursstatus',
  GO_BACK: 'Gå tilbake',
  DOWNLOAD: 'Last ned',
  PASSED: 'Bestått',
  FAILED: 'Ikke bestått',
  SCORM_PLAYER: 'Spiller',
});

i18next.addResources('bg', NAMESPACE, {
  TRAININGS: 'Обучения',
  COURSES: 'Курсове',
  COURSE: 'Курс',
  TITLE: 'Заглавие',
  STATE: 'Състояние',
  REGISTER: 'Регистрирай се',
  COURSES_SCORM: 'Обучения',
  INCOMPLETE: 'В процес',
  UNKNOWN: 'Не е започнато',
  COMPLETED: 'Завършено',
  EMPTY_COURSES: 'Няма налични курсове',
  PLAY: 'Възпроизвеждане',
  TENARIS_COURSES: 'Scorm курсове',
  COURSES_AMOUNT: 'Курсове: {{courses_amount}}',
  SEARCH_BY_THEME: 'Търсене по тема',
  SEARCH_BY_COURSE_NAME: 'Търсене по име на курс',
  THEME: 'Тема',
  APPLY: 'Приложи',
  COURSE_STATUS: 'Статус на курса',
  GO_BACK: 'Върни се',
  DOWNLOAD: 'Изтегли',
  PASSED: 'Одобрен',
  FAILED: 'Неодобрен',
  SCORM_PLAYER: 'Плейър',
});

i18next.addResources('is', NAMESPACE, {
  TRAININGS: 'Þjálfun',
  COURSES: 'Námskeið',
  COURSE: 'Námskeið',
  TITLE: 'Titill',
  STATE: 'Staða',
  REGISTER: 'Skráðu þig',
  COURSES_SCORM: 'Þjálfun',
  INCOMPLETE: 'Í vinnslu',
  UNKNOWN: 'Óþekkt',
  COMPLETED: 'Lokið',
  EMPTY_COURSES: 'Engin námskeið í boði',
  PLAY: 'Spila',
  TENARIS_COURSES: 'Scorm námskeið',
  COURSES_AMOUNT: 'Námskeið: {{courses_amount}}',
  SEARCH_BY_THEME: 'Leita eftir þema',
  SEARCH_BY_COURSE_NAME: 'Leita eftir nafni námskeiðs',
  THEME: 'Þema',
  APPLY: 'Sækja um',
  COURSE_STATUS: 'Staða námskeiðs',
  GO_BACK: 'Fara til baka',
  DOWNLOAD: 'Sækja',
  PASSED: 'Staðist',
  FAILED: 'Fallið',
  SCORM_PLAYER: 'Spilari',
});

i18next.addResources('pl', NAMESPACE, {
  TRAININGS: 'Szkolenia',
  COURSES: 'Kursy',
  COURSE: 'Kurs',
  TITLE: 'Tytuł',
  STATE: 'Stan',
  REGISTER: 'Zarejestruj się',
  COURSES_SCORM: 'Szkolenia',
  INCOMPLETE: 'W trakcie',
  UNKNOWN: 'Nie rozpoczęto',
  COMPLETED: 'Zakończone',
  EMPTY_COURSES: 'Brak dostępnych kursów',
  PLAY: 'Odtwórz',
  TENARIS_COURSES: 'Kursy scorm',
  COURSES_AMOUNT: 'Kursy: {{courses_amount}}',
  SEARCH_BY_THEME: 'Szukaj według tematu',
  SEARCH_BY_COURSE_NAME: 'Szukaj według nazwy kursu',
  THEME: 'Temat',
  APPLY: 'Zastosuj',
  COURSE_STATUS: 'Status kursu',
  GO_BACK: 'Wróć',
  DOWNLOAD: 'Pobierz',
  PASSED: 'Zaliczony',
  FAILED: 'Nie zaliczony',
  SCORM_PLAYER: 'Odtwarzacz',
});

i18next.addResources('sv', NAMESPACE, {
  TRAININGS: 'Utbildningar',
  COURSES: 'Kurser',
  COURSE: 'Kurs',
  TITLE: 'Titel',
  STATE: 'Status',
  REGISTER: 'Registrera dig',
  COURSES_SCORM: 'Utbildningar',
  INCOMPLETE: 'Pågående',
  UNKNOWN: 'Ej påbörjad',
  COMPLETED: 'Avslutad',
  EMPTY_COURSES: 'Inga kurser tillgängliga',
  PLAY: 'Spela upp',
  TENARIS_COURSES: 'Scorm-kurser',
  COURSES_AMOUNT: 'Kurser: {{courses_amount}}',
  SEARCH_BY_THEME: 'Sök efter tema',
  SEARCH_BY_COURSE_NAME: 'Sök efter kursnamn',
  THEME: 'Tema',
  APPLY: 'Tillämpa',
  COURSE_STATUS: 'Kursstatus',
  GO_BACK: 'Gå tillbaka',
  DOWNLOAD: 'Ladda ner',
  PASSED: 'Godkänd',
  FAILED: 'Underkänd',
  SCORM_PLAYER: 'Spelare',
});

i18next.addResources('th', NAMESPACE, {
  TRAININGS: 'การฝึกอบรม',
  COURSES: 'หลักสูตร',
  COURSE: 'หลักสูตร',
  TITLE: 'หัวข้อ',
  STATE: 'สถานะ',
  REGISTER: 'ลงทะเบียน',
  COURSES_SCORM: 'การฝึกอบรม',
  INCOMPLETE: 'กำลังดำเนินการ',
  UNKNOWN: 'ยังไม่เริ่ม',
  COMPLETED: 'เสร็จสิ้น',
  EMPTY_COURSES: 'ไม่มีหลักสูตรที่พร้อมใช้งาน',
  PLAY: 'เล่น',
  TENARIS_COURSES: 'หลักสูตร SCORM',
  COURSES_AMOUNT: 'หลักสูตร: {{courses_amount}}',
  SEARCH_BY_THEME: 'ค้นหาตามหัวข้อ',
  SEARCH_BY_COURSE_NAME: 'ค้นหาตามชื่อหลักสูตร',
  THEME: 'หัวข้อ',
  APPLY: 'ใช้',
  COURSE_STATUS: 'สถานะหลักสูตร',
  GO_BACK: 'กลับ',
  DOWNLOAD: 'ดาวน์โหลด',
  PASSED: 'ผ่าน',
  FAILED: 'ไม่ผ่าน',
  SCORM_PLAYER: 'เครื่องเล่น',
});

i18next.addResources('uk', NAMESPACE, {
  TRAININGS: 'Навчання',
  COURSES: 'Курси',
  COURSE: 'Курс',
  TITLE: 'Назва',
  STATE: 'Стан',
  REGISTER: 'Зареєструватися',
  COURSES_SCORM: 'Навчання',
  INCOMPLETE: 'В процесі',
  UNKNOWN: 'Не розпочато',
  COMPLETED: 'Завершено',
  EMPTY_COURSES: 'Немає доступних курсів',
  PLAY: 'Відтворити',
  TENARIS_COURSES: 'SCORM курси',
  COURSES_AMOUNT: 'Курси: {{courses_amount}}',
  SEARCH_BY_THEME: 'Пошук за темою',
  SEARCH_BY_COURSE_NAME: 'Пошук за назвою курсу',
  THEME: 'Тема',
  APPLY: 'Застосувати',
  COURSE_STATUS: 'Статус курсу',
  GO_BACK: 'Повернутися',
  DOWNLOAD: 'Завантажити',
  PASSED: 'Пройдено',
  FAILED: 'Не пройдено',
  SCORM_PLAYER: 'Плеєр',
});

i18next.addResources('ru', NAMESPACE, {
  TRAININGS: 'Обучение',
  COURSES: 'Курсы',
  COURSE: 'Курс',
  TITLE: 'Название',
  STATE: 'Состояние',
  REGISTER: 'Зарегистрироваться',
  COURSES_SCORM: 'Обучение',
  INCOMPLETE: 'В процессе',
  UNKNOWN: 'Не начато',
  COMPLETED: 'Завершено',
  EMPTY_COURSES: 'Нет доступных курсов',
  PLAY: 'Воспроизвести',
  TENARIS_COURSES: 'SCORM курсы',
  COURSES_AMOUNT: 'Курсы: {{courses_amount}}',
  SEARCH_BY_THEME: 'Поиск по теме',
  SEARCH_BY_COURSE_NAME: 'Поиск по названию курса',
  THEME: 'Тема',
  APPLY: 'Применить',
  COURSE_STATUS: 'Статус курса',
  GO_BACK: 'Вернуться',
  DOWNLOAD: 'Скачать',
  PASSED: 'Пройдено',
  FAILED: 'Не пройдено',
  SCORM_PLAYER: 'Плеер',
});

i18next.addResources('ro', NAMESPACE, {
  TRAININGS: 'Instruire',
  COURSES: 'Cursuri',
  COURSE: 'Curs',
  TITLE: 'Titlu',
  STATE: 'Stare',
  REGISTER: 'Înregistrează-te',
  COURSES_SCORM: 'Instruire',
  INCOMPLETE: 'În progres',
  UNKNOWN: 'Nu a început',
  COMPLETED: 'Completat',
  EMPTY_COURSES: 'Nu există cursuri disponibile',
  PLAY: 'Redă',
  TENARIS_COURSES: 'Cursuri SCORM',
  COURSES_AMOUNT: 'Cursuri: {{courses_amount}}',
  SEARCH_BY_THEME: 'Caută după temă',
  SEARCH_BY_COURSE_NAME: 'Caută după numele cursului',
  THEME: 'Temă',
  APPLY: 'Aplică',
  COURSE_STATUS: 'Statusul cursului',
  GO_BACK: 'Înapoi',
  DOWNLOAD: 'Descarcă',
  PASSED: 'Trecut',
  FAILED: 'Nepromovat',
  SCORM_PLAYER: 'Player',
});

i18next.addResources('da', NAMESPACE, {
  TRAININGS: 'Træninger',
  COURSES: 'Kurser',
  COURSE: 'Kurs',
  TITLE: 'Titel',
  STATE: 'Status',
  REGISTER: 'Registrer dig',
  COURSES_SCORM: 'Træninger',
  INCOMPLETE: 'Igang',
  UNKNOWN: 'Ikke startet',
  COMPLETED: 'Fuldført',
  EMPTY_COURSES: 'Ingen kurser tilgængelige',
  PLAY: 'Afspil',
  TENARIS_COURSES: 'Scorm kurser',
  COURSES_AMOUNT: 'Kurser: {{courses_amount}}',
  SEARCH_BY_THEME: 'Søg efter tema',
  SEARCH_BY_COURSE_NAME: 'Søg efter kursnavn',
  THEME: 'Tema',
  APPLY: 'Anvend',
  COURSE_STATUS: 'Kursstatus',
  GO_BACK: 'Tilbage',
  DOWNLOAD: 'Download',
  PASSED: 'Bestået',
  FAILED: 'Ikke bestået',
  SCORM_PLAYER: 'Afspiller',
});

i18next.addResources('fi', NAMESPACE, {
  TRAININGS: 'Harjoitukset',
  COURSES: 'Kurssit',
  COURSE: 'Kurssi',
  TITLE: 'Otsikko',
  STATE: 'Tila',
  REGISTER: 'Rekisteröidy',
  COURSES_SCORM: 'Harjoitukset',
  INCOMPLETE: 'Kesken',
  UNKNOWN: 'Ei aloitettu',
  COMPLETED: 'Valmis',
  EMPTY_COURSES: 'Ei kurssia saatavilla',
  PLAY: 'Toista',
  TENARIS_COURSES: 'Scorm kurssit',
  COURSES_AMOUNT: 'Kurssit: {{courses_amount}}',
  SEARCH_BY_THEME: 'Etsi teemaa',
  SEARCH_BY_COURSE_NAME: 'Etsi kurssin nimeä',
  THEME: 'Teema',
  APPLY: 'Käytä',
  COURSE_STATUS: 'Kurssin tila',
  GO_BACK: 'Palaa',
  DOWNLOAD: 'Lataa',
  PASSED: 'Menestynyt',
  FAILED: 'Epäonnistunut',
  SCORM_PLAYER: 'Toistaja',
});

i18next.addResources('de', NAMESPACE, {
  TRAININGS: 'Schulungen',
  COURSES: 'Kurse',
  COURSE: 'Kurs',
  TITLE: 'Titel',
  STATE: 'Status',
  REGISTER: 'Registrieren',
  COURSES_SCORM: 'Schulungen',
  INCOMPLETE: 'In Bearbeitung',
  UNKNOWN: 'Nicht gestartet',
  COMPLETED: 'Abgeschlossen',
  EMPTY_COURSES: 'Keine Kurse verfügbar',
  PLAY: 'Abspielen',
  TENARIS_COURSES: 'Scorm-Kurse',
  COURSES_AMOUNT: 'Kurse: {{courses_amount}}',
  SEARCH_BY_THEME: 'Nach Thema suchen',
  SEARCH_BY_COURSE_NAME: 'Nach Kursname suchen',
  THEME: 'Thema',
  APPLY: 'Anwenden',
  COURSE_STATUS: 'Kursstatus',
  GO_BACK: 'Zurück',
  DOWNLOAD: 'Herunterladen',
  PASSED: 'Bestanden',
  FAILED: 'Nicht bestanden',
  SCORM_PLAYER: 'Player',
});

i18next.addResources('nl', NAMESPACE, {
  TRAININGS: 'Trainingen',
  COURSES: 'Cursussen',
  COURSE: 'Cursus',
  TITLE: 'Titel',
  STATE: 'Status',
  REGISTER: 'Registreren',
  COURSES_SCORM: 'Trainingen',
  INCOMPLETE: 'Bezig',
  UNKNOWN: 'Niet gestart',
  COMPLETED: 'Voltooid',
  EMPTY_COURSES: 'Geen cursussen beschikbaar',
  PLAY: 'Afspelen',
  TENARIS_COURSES: 'Scorm-cursussen',
  COURSES_AMOUNT: 'Cursussen: {{courses_amount}}',
  SEARCH_BY_THEME: 'Zoeken op thema',
  SEARCH_BY_COURSE_NAME: 'Zoeken op cursusnaam',
  THEME: 'Thema',
  APPLY: 'Toepassen',
  COURSE_STATUS: 'Cursusstatus',
  GO_BACK: 'Terug',
  DOWNLOAD: 'Downloaden',
  PASSED: 'Geslaagd',
  FAILED: 'Gezakt',
  SCORM_PLAYER: 'Speler',
});

i18next.addResources('id', NAMESPACE, {
  TRAININGS: 'Pelatihan',
  COURSES: 'Kursus',
  COURSE: 'Kursus',
  TITLE: 'Judul',
  STATE: 'Status',
  REGISTER: 'Daftar',
  COURSES_SCORM: 'Pelatihan',
  INCOMPLETE: 'Sedang berjalan',
  UNKNOWN: 'Belum dimulai',
  COMPLETED: 'Selesai',
  EMPTY_COURSES: 'Tidak ada kursus tersedia',
  PLAY: 'Putar',
  TENARIS_COURSES: 'Kursus Scorm',
  COURSES_AMOUNT: 'Kursus: {{courses_amount}}',
  SEARCH_BY_THEME: 'Cari berdasarkan tema',
  SEARCH_BY_COURSE_NAME: 'Cari berdasarkan nama kursus',
  THEME: 'Tema',
  APPLY: 'Terapkan',
  COURSE_STATUS: 'Status kursus',
  GO_BACK: 'Kembali',
  DOWNLOAD: 'Unduh',
  PASSED: 'Lulus',
  FAILED: 'Gagal',
  SCORM_PLAYER: 'Pemutar',
});

export const useTranslation = () => usei18nextTranslation([NAMESPACE]);
