'use strict';

var React = require('react');
var reactI18next = require('react-i18next');
var i18next = require('i18next');
var en = require('./en-B1i-pQJm.js');
var jsxRuntime = require('react/jsx-runtime');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var i18next__default = /*#__PURE__*/_interopDefault(i18next);

var neetoui$5 = {
	blockNavigation: {
		alertMessage: "Das Verlassen dieser Seite wird Ihre nicht gespeicherten Daten verwerfen. Diese Aktion kann nicht rückgängig gemacht werden.",
		submitButtonLabel: "Auf dieser Seite bleiben",
		alertTitle: "Du hast nicht gespeicherte Änderungen",
		cancelButtonLabel: "Verwerfen und diese Seite verlassen"
	},
	actionBlock: {
		cancel: "Stornieren",
		saveChanges: "Änderungen speichern"
	},
	colorPicker: {
		recentlyUsed: "Kürzlich verwendet"
	},
	datePicker: {
		today: "Heute"
	},
	table: {
		insertColRight: "Spalte rechts einfügen",
		insertColLeft: "Spalte links einfügen",
		columnInfo: "Spalteninformationen",
		hideColumn: "Spalte ausblenden",
		deleteColumn: "Spalte löschen",
		ascending: "Aufsteigend",
		descending: "Absteigend",
		allRowsSelected: "Alle Zeilen sind ausgewählt",
		clearSelection: "Klare Auswahl",
		freezeColumn: "Spalte einfrieren",
		unFreezeColumn: "Spalte aufheben",
		moveColumnLeft: "Spalte nach links verschieben",
		moveColumnRight: "Spalte nach rechts verschieben",
		addColumnInfo: "Spalteninformation hinzufügen",
		editColumnInfo: "Spalteninformation bearbeiten",
		info: "Tabelleninformationen",
		columnName: "Spaltenname"
	},
	timePicker: {
		hours: "Stunden",
		minutes: "Minuten",
		seconds: "Sekunden"
	},
	treeSelect: {
		noOptions: "Keine Optionen."
	},
	common: {
		timezone: "Zeitzone",
		description: "Beschreibung"
	}
};
var deTranslations = {
	neetoui: neetoui$5
};

var neetoui$4 = {
	blockNavigation: {
		alertMessage: "Salir de esta página descartará tus datos no guardados. Esta acción no se puede deshacer.",
		submitButtonLabel: "Permanecer en esta página",
		alertTitle: "Tiene cambios sin guardar",
		cancelButtonLabel: "Descartar y salir de esta página"
	},
	actionBlock: {
		cancel: "Cancelar",
		saveChanges: "Guardar cambios"
	},
	datePicker: {
		today: "Hoy"
	},
	colorPicker: {
		recentlyUsed: "Usado recientemente"
	},
	table: {
		insertColRight: "Insertar columna a la derecha",
		insertColLeft: "Insertar columna a la izquierda",
		columnInfo: "Información de la columna",
		hideColumn: "Ocultar columna",
		deleteColumn: "Eliminar columna",
		ascending: "Ascendente",
		descending: "Descendente",
		allRowsSelected: "Todas las filas están seleccionadas",
		clearSelection: "Borrar selección",
		freezeColumn: "Congelar columna",
		unFreezeColumn: "Descongelar columna",
		moveColumnLeft: "Mover columna a la izquierda",
		moveColumnRight: "Mover columna a la derecha",
		addColumnInfo: "Agregar información de columna",
		editColumnInfo: "Editar información de columna",
		info: "Información de la tabla",
		columnName: "Nombre de la columna"
	},
	timePicker: {
		hours: "Horas",
		minutes: "Minutos",
		seconds: "Segundos"
	},
	treeSelect: {
		noOptions: "No hay opciones."
	},
	common: {
		timezone: "Zona horaria",
		description: "Descripción"
	}
};
var esTranslations = {
	neetoui: neetoui$4
};

var neetoui$3 = {
	blockNavigation: {
		alertMessage: "Quitter cette page entraînera la perte de vos données non enregistrées. Cette action ne peut pas être annulée.",
		submitButtonLabel: "Rester sur cette page",
		alertTitle: "Vous avez des changements non enregistrés",
		cancelButtonLabel: "Annuler et quitter cette page"
	},
	actionBlock: {
		cancel: "Annuler",
		saveChanges: "Sauvegarder les modifications"
	},
	datePicker: {
		today: "Aujourd'hui"
	},
	colorPicker: {
		recentlyUsed: "Récemment utilisé"
	},
	table: {
		insertColRight: "Insérer une colonne à droite",
		insertColLeft: "Insérer une colonne à gauche",
		columnInfo: "Informations sur la colonne",
		hideColumn: "Masquer la colonne",
		deleteColumn: "Supprimer la colonne",
		ascending: "Ascendant",
		descending: "Descendant",
		allRowsSelected: "Toutes les lignes sont sélectionnées",
		clearSelection: "Effacer la sélection",
		freezeColumn: "Geler la colonne",
		unFreezeColumn: "Dégeler la colonne",
		moveColumnLeft: "Déplacer la colonne vers la gauche",
		moveColumnRight: "Déplacer la colonne vers la droite",
		addColumnInfo: "Ajouter des informations sur la colonne",
		editColumnInfo: "Modifier les informations sur la colonne",
		info: "Informations sur la table",
		columnName: "Nom de la colonne"
	},
	timePicker: {
		hours: "Heures",
		minutes: "Minutes",
		seconds: "Seconds"
	},
	treeSelect: {
		noOptions: "Pas d'options."
	},
	common: {
		timezone: "Fuseau horaire",
		description: "Description"
	}
};
var frTranslations = {
	neetoui: neetoui$3
};

var neetoui$2 = {
	blockNavigation: {
		alertMessage: "Het verlaten van deze pagina gaat jouw niet-opgeslagen gegevens verliezen. Deze actie kan niet ongedaan worden gemaakt.",
		submitButtonLabel: "Blijf op deze pagina",
		alertTitle: "U heeft niet-opgeslagen wijzigingen",
		cancelButtonLabel: "Verwerp en verlaat deze pagina"
	},
	actionBlock: {
		cancel: "Annuleren",
		saveChanges: "Wijzigingen opslaan"
	},
	colorPicker: {
		recentlyUsed: "Recent gebruikt"
	},
	datePicker: {
		today: "Vandaag"
	},
	table: {
		insertColRight: "Kolom rechts invoegen",
		insertColLeft: "Kolom links invoegen",
		columnInfo: "Kolominformatie",
		hideColumn: "Kolom verbergen",
		deleteColumn: "Kolom verwijderen",
		ascending: "Oplopend",
		descending: "Aflopend",
		allRowsSelected: "Alle rijen zijn geselecteerd",
		clearSelection: "Duidelijke selectie",
		freezeColumn: "Kolom vastzetten",
		unFreezeColumn: "Kolom ontgrendelen",
		moveColumnLeft: "Verplaats kolom naar links",
		moveColumnRight: "Verplaats kolom naar rechts",
		addColumnInfo: "Voeg kolominformatie toe",
		editColumnInfo: "Bewerk kolominformatie",
		info: "Tabel informatie",
		columnName: "Kolomnaam"
	},
	timePicker: {
		hours: "Uur",
		minutes: "Minuten",
		seconds: "Seconden"
	},
	treeSelect: {
		noOptions: "Geen opties."
	},
	common: {
		timezone: "Tijdszone",
		description: "Beschrijving"
	}
};
var nlTranslations = {
	neetoui: neetoui$2
};

var neetoui$1 = {
	blockNavigation: {
		alertMessage: "Opuszczenie tej strony spowoduje utratę niezapisanych danych. Ta akcja nie może być cofnięta.",
		submitButtonLabel: "Zostań na tej stronie",
		alertTitle: "masz niezapisane zmiany",
		cancelButtonLabel: "Anuluj i opuść tę stronę"
	},
	actionBlock: {
		cancel: "Anulować",
		saveChanges: "Zapisz zmiany"
	},
	colorPicker: {
		recentlyUsed: "Ostatnio używany"
	},
	datePicker: {
		today: "Dzisiaj"
	},
	table: {
		insertColRight: "Wstaw kolumnę po prawej stronie",
		insertColLeft: "Wstaw kolumnę po lewej stronie",
		columnInfo: "Informacje o kolumnie",
		hideColumn: "Ukryj kolumnę",
		deleteColumn: "Usuń kolumnę",
		ascending: "Rosnąco",
		descending: "Malejąco",
		allRowsSelected: "Wszystkie wiersze są zaznaczone",
		clearSelection: "Wyczyść wybór",
		freezeColumn: "Zablokuj kolumnę",
		unFreezeColumn: "Odblokuj kolumnę",
		moveColumnLeft: "Przenieś kolumnę w lewo",
		moveColumnRight: "Przenieś kolumnę w prawo",
		addColumnInfo: "Dodaj informacje o kolumnie",
		editColumnInfo: "Edytuj informacje o kolumnie",
		info: "Informacje o tabeli",
		columnName: "Nazwa kolumny"
	},
	timePicker: {
		hours: "godziny",
		minutes: "Minuty",
		seconds: "sekundy"
	},
	treeSelect: {
		noOptions: "Brak opcji."
	},
	common: {
		timezone: "Strefa czasowa",
		description: "Opis"
	}
};
var plTranslations = {
	neetoui: neetoui$1
};

var neetoui = {
	blockNavigation: {
		alertMessage: "Sair desta página descartará seus dados não salvos. Esta ação não pode ser desfeita.",
		submitButtonLabel: "Ficar nesta página",
		alertTitle: "Você tem alterações não salvas",
		cancelButtonLabel: "Descartar e sair desta página"
	},
	actionBlock: {
		cancel: "Cancelar",
		saveChanges: "Salvar alterações"
	},
	colorPicker: {
		recentlyUsed: "Usado recentemente"
	},
	datePicker: {
		today: "Hoje"
	},
	table: {
		insertColRight: "Inserir coluna à direita",
		insertColLeft: "Inserir coluna à esquerda",
		columnInfo: "Informações da coluna",
		hideColumn: "Ocultar coluna",
		deleteColumn: "Excluir coluna",
		ascending: "Ascendente",
		descending: "Descendente",
		allRowsSelected: "Todas as linhas estão selecionadas",
		clearSelection: "Limpar seleção",
		freezeColumn: "Congelar coluna",
		unFreezeColumn: "Descongelar coluna",
		moveColumnLeft: "Mover coluna para a esquerda",
		moveColumnRight: "Mover coluna para a direita",
		addColumnInfo: "Adicionar informações da coluna",
		editColumnInfo: "Editar informações da coluna",
		info: "Informações da tabela",
		columnName: "Nome da coluna"
	},
	timePicker: {
		hours: "Horas",
		minutes: "Minutos",
		seconds: "Segundos"
	},
	treeSelect: {
		noOptions: "Sem opções."
	},
	common: {
		timezone: "Fuso horário",
		description: "Descrição"
	}
};
var ptTranslations = {
	neetoui: neetoui
};

/* eslint-disable import/extensions */
var resources = {
  en: {
    translation: en.enTranslations
  },
  es: {
    translation: esTranslations
  },
  fr: {
    translation: frTranslations
  },
  de: {
    translation: deTranslations
  },
  nl: {
    translation: nlTranslations
  },
  pl: {
    translation: plTranslations
  },
  pt: {
    translation: ptTranslations
  }
};

/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */
/* eslint-disable import/extensions */

var initializeI18n = function initializeI18n() {
  var language = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "en";
  i18next__default.default.use(reactI18next.initReactI18next).init({
    resources: resources,
    lang: language,
    fallbackLng: "en",
    interpolation: {
      escapeValue: false
    }
  });
  return i18next__default.default;
};

var TranslationProvider = function TranslationProvider(_ref) {
  var children = _ref.children,
    language = _ref.language;
  var i18n = initializeI18n(language);
  React.useEffect(function () {
    if (!language || i18n.language === language) return;
    i18n.changeLanguage(language);
  }, [language]);
  return /*#__PURE__*/jsxRuntime.jsx(reactI18next.I18nextProvider, {
    i18n: i18n,
    children: children
  });
};

module.exports = TranslationProvider;
//# sourceMappingURL=TranslationProvider.js.map
