import React from 'react';
import { I18nProvider, filterDictionaryScopes } from '@smg-automotive/i18n-pkg';
import { dictionaries } from '../../locales/index.js';
import logger from '../../lib/logger.js';

var TranslationProvider = function (_a) {
    var language = _a.language, scopes = _a.scopes, children = _a.children;
    return (React.createElement(I18nProvider, { language: language, lngDict: filterDictionaryScopes({
            dictionaries: dictionaries,
            language: language,
            dictionaryScopes: scopes,
        }), onMissingTranslation: logger.onMissingTranslation }, children));
};

export { TranslationProvider as default };
//# sourceMappingURL=index.js.map
