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

import i18next from 'i18next';

export const NAMESPACE = 'SPORTS_POOL_LOCAL';

i18next.addResources('es', NAMESPACE, {
  position: 'Posición',
  numberPosition: '#{{number}}',
  startsIn: 'Comienza en:',
  days: 'Días',
  hours: 'Horas',
  minutes: 'Minutos',
  seconds: 'Segundos',
});

i18next.addResources('en', NAMESPACE, {
  position: 'Position',
  numberPosition: '#{{number}}',
  startsIn: 'Starts in:',
  days: 'Days',
  hours: 'Hours',
  minutes: 'Minutes',
  seconds: 'Seconds',
});

i18next.addResources('pt', NAMESPACE, {
  position: 'Posição',
  numberPosition: '#{{number}}',
  startsIn: 'Começa em:',
  days: 'Dias',
  hours: 'Horas',
  minutes: 'Minutos',
  seconds: 'Segundos',
});

i18next.addResources('pt-br', NAMESPACE, {
  position: 'Posição',
  numberPosition: '#{{number}}',
  startsIn: 'Começa em:',
  days: 'Dias',
  hours: 'Horas',
  minutes: 'Minutos',
  seconds: 'Segundos',
});

i18next.addResources('de', NAMESPACE, {
  position: 'Position',
  numberPosition: '#{{number}}',
  startsIn: 'Beginnt in:',
  days: 'Tage',
  hours: 'Stunden',
  minutes: 'Minuten',
  seconds: 'Sekunden',
});

i18next.addResources('it', NAMESPACE, {
  position: 'Posizione',
  numberPosition: '#{{number}}',
  startsIn: 'Inizia tra:',
  days: 'Giorni',
  hours: 'Ore',
  minutes: 'Minuti',
  seconds: 'Secondi',
});

i18next.addResources('fr', NAMESPACE, {
  position: 'Position',
  numberPosition: '#{{number}}',
  startsIn: 'Commence dans :',
  days: 'Jours',
  hours: 'Heures',
  minutes: 'Minutes',
  seconds: 'Secondes',
});

i18next.addResources('no', NAMESPACE, {
  position: 'Posisjon',
  numberPosition: '#{{number}}',
  startsIn: 'Starter om:',
  days: 'Dager',
  hours: 'Timer',
  minutes: 'Minutter',
  seconds: 'Sekunder',
});

i18next.addResources('bg', NAMESPACE, {
  position: 'Позиция',
  numberPosition: '#{{number}}',
  startsIn: 'Започва след:',
  days: 'Дни',
  hours: 'Часове',
  minutes: 'Минути',
  seconds: 'Секунди',
});

i18next.addResources('is', NAMESPACE, {
  position: 'Staða',
  numberPosition: '#{{number}}',
  startsIn: 'Byrjar eftir:',
  days: 'Dagar',
  hours: 'Klukkustundir',
  minutes: 'Mínútur',
  seconds: 'Sekúndur',
});

i18next.addResources('pl', NAMESPACE, {
  position: 'Pozycja',
  numberPosition: '#{{number}}',
  startsIn: 'Zaczyna się za:',
  days: 'Dni',
  hours: 'Godziny',
  minutes: 'Minuty',
  seconds: 'Sekundy',
});

i18next.addResources('sv', NAMESPACE, {
  position: 'Position',
  numberPosition: '#{{number}}',
  startsIn: 'Börjar om:',
  days: 'Dagar',
  hours: 'Timmar',
  minutes: 'Minuter',
  seconds: 'Sekunder',
});

i18next.addResources('ru', NAMESPACE, {
  position: 'Позиция',
  numberPosition: '#{{number}}',
  startsIn: 'Начинается через:',
  days: 'Дни',
  hours: 'Часы',
  minutes: 'Минуты',
  seconds: 'Секунды',
});

i18next.addResources('ro', NAMESPACE, {
  position: 'Poziție',
  numberPosition: '#{{number}}',
  startsIn: 'Începe în:',
  days: 'Zile',
  hours: 'Ore',
  minutes: 'Minute',
  seconds: 'Secunde',
});

i18next.addResources('uk', NAMESPACE, {
  position: 'Позиція',
  numberPosition: '#{{number}}',
  startsIn: 'Починається через:',
  days: 'Дні',
  hours: 'Години',
  minutes: 'Хвилини',
  seconds: 'Секунди',
});

i18next.addResources('th', NAMESPACE, {
  position: 'ตำแหน่ง',
  numberPosition: '#{{number}}',
  startsIn: 'เริ่มใน:',
  days: 'วัน',
  hours: 'ชั่วโมง',
  minutes: 'นาที',
  seconds: 'วินาที',
});

i18next.addResources('fi', NAMESPACE, {
  position: 'Sijoitus',
  numberPosition: '#{{number}}',
  startsIn: 'Alkaa:',
  days: 'Päivät',
  hours: 'Tunnit',
  minutes: 'Minuutit',
  seconds: 'Sekunnit',
});

i18next.addResources('da', NAMESPACE, {
  position: 'Position',
  numberPosition: '#{{number}}',
  startsIn: 'Starter om:',
  days: 'Dage',
  hours: 'Timer',
  minutes: 'Minutter',
  seconds: 'Sekunder',
});

i18next.addResources('nl', NAMESPACE, {
  position: 'Positie',
  numberPosition: '#{{number}}',
  startsIn: 'Begint over:',
  days: 'Dagen',
  hours: 'Uren',
  minutes: 'Minuten',
  seconds: 'Seconden',
});

i18next.addResources('id', NAMESPACE, {
  position: 'Posisi',
  numberPosition: '#{{number}}',
  startsIn: 'Dimulai dalam:',
  days: 'Hari',
  hours: 'Jam',
  minutes: 'Menit',
  seconds: 'Detik',
});

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