diff --git a/frontend/src/services/i18n/i18n.spec.js b/frontend/src/services/i18n/i18n.spec.js index 1b4edf3c4..b809895e5 100644 --- a/frontend/src/services/i18n/i18n.spec.js +++ b/frontend/src/services/i18n/i18n.spec.js @@ -9,7 +9,7 @@ describe('I18n', () => { // helper function function expectTranslation(id, value) { - expect(i18n.translations[id]).toMatch(value); + expect(i18n.get(id)).toMatch(value); } it('should create', () => { @@ -38,7 +38,7 @@ describe('I18n', () => { describe('get()', () => { it('should return stored translations', () => { - i18n.translations.id1 = 'something'; + i18n.add('id1', 'something'); expect(i18n.get('id1')).toMatch('something'); });