Hindi language

This commit is contained in:
Ben Grant 2021-05-25 16:51:58 +10:00
parent 1a872fb1c3
commit 96fa0b0488
8 changed files with 259 additions and 4 deletions

View file

@ -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}

View file

@ -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' },

View file

@ -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;