rimiti/invoice-it

View on GitHub
src/lib/i18n.js

Summary

Maintainability
A
0 mins
Test Coverage
import i18nFactory from 'i18n-factory';

const i18n = i18nFactory.create();

i18n.configure({
  locales: ['en', 'fr'],
  directory: `${__dirname}/../config/locales`,
  defaultLocale: 'en',
  logWarnFn: (message) => console.warn('warn', message), // eslint-disable-line no-console
  logErrorFn: (message) => console.error('error', message), // eslint-disable-line no-console
});

export default i18n;