Hindi language
This commit is contained in:
parent
1a872fb1c3
commit
96fa0b0488
8 changed files with 259 additions and 4 deletions
|
|
@ -213,11 +213,11 @@ const CalendarField = ({
|
|||
</>
|
||||
) : (
|
||||
<CalendarBody>
|
||||
{dayjs.weekdaysShort().map((name, i) =>
|
||||
{(weekStart ? [...dayjs.weekdaysShort().filter((_,i) => i !== 0), dayjs.weekdaysShort()[0]] : dayjs.weekdaysShort()).map((name, i) =>
|
||||
<Date
|
||||
key={name}
|
||||
isToday={dayjs.weekdaysShort()[dayjs().day()-weekStart] === name}
|
||||
title={dayjs.weekdaysShort()[dayjs().day()-weekStart] === name ? t('form.dates.tooltips.today') : ''}
|
||||
isToday={(weekStart ? [...dayjs.weekdaysShort().filter((_,i) => i !== 0), dayjs.weekdaysShort()[0]] : dayjs.weekdaysShort())[dayjs().day()-weekStart] === name}
|
||||
title={(weekStart ? [...dayjs.weekdaysShort().filter((_,i) => i !== 0), dayjs.weekdaysShort()[0]] : dayjs.weekdaysShort())[dayjs().day()-weekStart] === name ? t('form.dates.tooltips.today') : ''}
|
||||
selected={selectedDays.includes(((i + weekStart) % 7 + 7) % 7)}
|
||||
selecting={selectingDays.includes(((i + weekStart) % 7 + 7) % 7)}
|
||||
mode={mode}
|
||||
|
|
|
|||
|
|
@ -89,10 +89,11 @@ const Settings = () => {
|
|||
name="language"
|
||||
id="language"
|
||||
options={{
|
||||
'en': 'English',
|
||||
'de': 'Deutsch',
|
||||
'en': 'English',
|
||||
'es': 'Español',
|
||||
'fr': 'Français',
|
||||
'hi': 'हिंदी',
|
||||
'id': 'Indonesia',
|
||||
'ko': '한국어',
|
||||
...process.env.NODE_ENV !== 'production' && { 'cimode': 'DEV' },
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ const locales = {
|
|||
ko: () => import('dayjs/locale/ko'),
|
||||
fr: () => import('dayjs/locale/fr'),
|
||||
id: () => import('dayjs/locale/id'),
|
||||
hi: () => import('dayjs/locale/hi'),
|
||||
};
|
||||
|
||||
export default locales;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue