ant-design/components/date-picker/locale/ml_IN.tsx
Jabir K.H b3c4cebd96
feat: Malayalam(ml_IN) translation (#31521)
*  added ml_IN locale

*  malayalam localization - rc-packages updated

* ml_IN test cases added

Review comments integrated

* ml_IN translation - en doc updated

PR review comments integrated

* ml_IN translation zh doc updated

PR review comment integrated

* ❇️ changes after running npm test locally

* 🚀 npm test after removing and reinstalling node modules and package-lock
2021-07-27 10:56:41 +08:00

28 lines
1.2 KiB
TypeScript

import CalendarLocale from 'rc-picker/lib/locale/ml_IN';
import TimePickerLocale from '../../time-picker/locale/ml_IN';
import { PickerLocale } from '../generatePicker';
// Merge into a locale object
const locale: PickerLocale = {
lang: {
placeholder: 'തിയതി തിരഞ്ഞെടുക്കുക',
yearPlaceholder: 'വർഷം തിരഞ്ഞെടുക്കുക',
quarterPlaceholder: 'ത്രൈമാസം തിരഞ്ഞെടുക്കുക',
monthPlaceholder: 'മാസം തിരഞ്ഞെടുക്കുക',
weekPlaceholder: 'വാരം തിരഞ്ഞെടുക്കുക',
rangePlaceholder: ['ആരംഭ ദിനം', 'അവസാന ദിനം'],
rangeYearPlaceholder: ['ആരംഭ വർഷം', 'അവസാന വർഷം'],
rangeMonthPlaceholder: ['ആരംഭ മാസം', 'അവസാന മാസം'],
rangeWeekPlaceholder: ['ആരംഭ വാരം', 'അവസാന വാരം'],
...CalendarLocale,
},
timePickerLocale: {
...TimePickerLocale,
},
};
// All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
export default locale;