mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat: lang.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { formatMessage } from 'services/intl';
|
||||
|
||||
|
||||
export default [
|
||||
{ name: 'Libya', value: 'libya' },
|
||||
]
|
||||
export default [{ name: formatMessage({ id: 'libya' }), value: 'libya' }];
|
||||
|
||||
@@ -1,40 +1,41 @@
|
||||
import moment from 'moment';
|
||||
import { formatMessage } from 'services/intl';
|
||||
|
||||
export default [
|
||||
{
|
||||
id: 1,
|
||||
name: 'MM/DD/YY',
|
||||
name: formatMessage({ id: 'mm_dd_yy' }),
|
||||
label: `${moment().format('MM/DD/YYYY')}`,
|
||||
value: 'mm/dd/yy',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: 'DD/MM/YY',
|
||||
name: formatMessage({ id: 'dd_mm_yy' }),
|
||||
label: `${moment().format('DD/MM/YYYY')}`,
|
||||
value: 'dd/mm/yy',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: 'YY/MM/DD',
|
||||
name: formatMessage({ id: 'yy_mm_dd' }),
|
||||
label: `${moment().format('YYYY/MM/DD')}`,
|
||||
value: 'yy/mm/dd',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: 'MM-DD-YY',
|
||||
name: formatMessage({ id: 'mm_dd_yy' }),
|
||||
label: `${moment().format('MM-DD-YYYY')}`,
|
||||
value: 'mm-dd-yy',
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
name: 'DD-MM-YY',
|
||||
name: formatMessage({ id: 'dd_mm_yy_' }),
|
||||
label: `${moment().format('DD-MM-YYYY')}`,
|
||||
value: 'dd-mm-yy',
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
name: 'YY-MM-DD',
|
||||
name: formatMessage({ id: 'yy_mm_dd_' }),
|
||||
label: `${moment().format('YYYY-MM-DD')}`,
|
||||
value: 'yy-mm-dd',
|
||||
},
|
||||
]
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user