Skip to content

Commit

Permalink
feat: Basque (eu-ES) translation (#39371)
Browse files Browse the repository at this point in the history
* Added basque (eu-ES) translation

* Update components/locale/eu_ES.tsx

Co-authored-by: Amumu <yoyo837@hotmail.com>

* Update docs/react/i18n.zh-CN.md

Co-authored-by: Amumu <yoyo837@hotmail.com>

* added test cases

Co-authored-by: Amumu <yoyo837@hotmail.com>
  • Loading branch information
Ian-Inizias and yoyo837 committed Dec 8, 2022
1 parent f381789 commit c2afa97
Show file tree
Hide file tree
Showing 9 changed files with 5,280 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/calendar/locale/eu_ES.tsx
@@ -0,0 +1,3 @@
import euES from '../../date-picker/locale/eu_ES';

export default euES;
20 changes: 20 additions & 0 deletions components/date-picker/locale/eu_ES.tsx
@@ -0,0 +1,20 @@
import CalendarLocale from 'rc-picker/lib/locale/eu_ES';
import TimePickerLocale from '../../time-picker/locale/eu_ES';
import type { PickerLocale } from '../generatePicker';

// Merge into a locale object
const locale: PickerLocale = {
lang: {
placeholder: 'Hautatu data',
rangePlaceholder: ['Hasierako data', 'Amaiera data'],
...CalendarLocale,
},
timePickerLocale: {
...TimePickerLocale,
},
};

// All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json

export default locale;

0 comments on commit c2afa97

Please sign in to comment.