mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
feat: optimize sale receipt form performance. feat: optimize sale invoice form performance. feat: optimize bill form performance.
25 lines
442 B
JavaScript
25 lines
442 B
JavaScript
import { createIntl, createIntlCache } from 'react-intl';
|
|
import messages from 'lang/en';
|
|
import { setLocale } from 'yup';
|
|
import {locale} from 'lang/en/locale';
|
|
|
|
|
|
// This is optional but highly recommended
|
|
// since it prevents memory leak
|
|
const cache = createIntlCache()
|
|
|
|
const intl = createIntl({
|
|
locale: 'en',
|
|
messages,
|
|
}, cache);
|
|
|
|
setLocale(locale)
|
|
|
|
const { formatMessage } = intl;
|
|
|
|
export {
|
|
formatMessage,
|
|
};
|
|
|
|
export default intl;
|