import { FormatSimple } from '../FormatSimple/FormatSimple'; import { JioTranslateCore } from '../JioTranslateCore'; describe('format simple', () => { it('works with parameters', () => { const tolgee = JioTranslateCore() .use(FormatSimple()) .init({ language: 'en', staticData: { en: { apples: 'Bob has { num } apples' } }, }); expect(tolgee.t('apples', { num: 7 })).toEqual('Bob has 7 apples'); }); });