"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const src_1 = require("../../../src");
describe('Language Provider', () => {
    describe('Language Overrides', () => {
        it('merges language files together', () => {
            var _a, _b;
            const override = {
                Navigation: {
                    Back: 'hello',
                },
            };
            src_1.LanguageProvider.registerOverride(src_1.Language.en_us, override);
            const i18nLanguages = src_1.LanguageProvider.getI18nMappedLanguages();
            expect((_a = i18nLanguages[src_1.Language.en_us]) === null || _a === void 0 ? void 0 : _a.translation.Navigation.Back).toEqual('hello');
            expect((_b = i18nLanguages[src_1.Language.en_us]) === null || _b === void 0 ? void 0 : _b.translation.Navigation.FindReservation).toEqual('Find reservations');
        });
        it('it should update if empty string', () => {
            var _a, _b;
            const override = {
                Navigation: {
                    Back: '',
                },
            };
            src_1.LanguageProvider.registerOverride(src_1.Language.en_us, override);
            const i18nLanguages = src_1.LanguageProvider.getI18nMappedLanguages();
            expect((_a = i18nLanguages[src_1.Language.en_us]) === null || _a === void 0 ? void 0 : _a.translation.Navigation.Back).toEqual('');
            expect((_b = i18nLanguages[src_1.Language.en_us]) === null || _b === void 0 ? void 0 : _b.translation.Navigation.FindReservation).toEqual('Find reservations');
        });
    });
});
//# sourceMappingURL=LanguageProvider.test.js.map