Skip to content
Snippets Groups Projects
I18n.js 280 B
Newer Older
  • Learn to ignore specific revisions
  • Hugo NOUTS's avatar
    Hugo NOUTS committed
    'use strict'
    
    import { I18n } from 'cozy-ui/react/I18n'
    
    const I18nComponent = new I18n({
      lang: 'en',
      dictRequire: lang => require(`../../src/locales/${lang}`),
    })
    
    export const mockT = I18nComponent.getChildContext().t
    
    export const mockF = I18nComponent.getChildContext().f