{"version":3,"sources":["common/appContext/spec/i18nSpec.ts"],"names":[],"mappings":"","file":"../../../../common/appContext/spec/i18nSpec.d.ts","sourcesContent":["import { getI18n } from '../i18n.js';\n\ndescribe('appContext i18n support', () => {\n  let i18n = null;\n\n  beforeAll(async () => {\n    i18n = await getI18n();\n    expect(i18n).toBeTruthy();\n  });\n\n  it('can apply en translations from the little-elements package', async () => {\n    expect(i18n).not.toBeNull();\n    const tr = await i18n.getFixedT(null, ['little-elements']);\n    expect(i18n.t('ok')).toBe('ok');\n    expect(i18n.t('cancel')).toBe('cancel');\n    expect(i18n.t('bogus', 'whatever')).toBe('whatever');\n    expect(i18n.t('little-elements:test')).toBe('for the test case');\n    // without explicit namespace\n    expect(i18n.t('test')).toBe('whatever');\n    expect(tr('test')).toBe('for the test case');\n  });\n});\n"]}