mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
WIP: Arabic localization.|
This commit is contained in:
@@ -17,6 +17,8 @@ http.interceptors.request.use((request) => {
|
||||
if (locale) {
|
||||
request.headers.common['Accept-Language'] = locale;
|
||||
}
|
||||
request.headers.common['Accept-Language'] = 'ar';
|
||||
|
||||
return request;
|
||||
}, (error) => {
|
||||
return Promise.reject(error);
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
import { createIntl, createIntlCache } from 'react-intl';
|
||||
// import messages from 'lang/en/index.json';
|
||||
import messages from 'lang/ar/index.json';
|
||||
import arabicMessages from 'lang/ar/index.json';
|
||||
import englishMessages from 'lang/en/index.json';
|
||||
|
||||
import { setLocale } from 'yup';
|
||||
import { locale } from 'lang/en/locale';
|
||||
|
||||
// This is optional but highly recommended
|
||||
// since it prevents memory leak
|
||||
// This is optional but highly recommended since it prevents memory leak
|
||||
const cache = createIntlCache();
|
||||
|
||||
// Creates globa intl instance.
|
||||
const intl = createIntl(
|
||||
{
|
||||
locale: 'en',
|
||||
|
||||
Reference in New Issue
Block a user