mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
feat: 🇭🇷 hr_HR locale (#16258)
* Added Croatian locale * fixed lint error * ✅ Add test cases for hr_HR * 📝 update i18n documentation
This commit is contained in:
parent
b0f05094a7
commit
e83302c1ff
2
components/calendar/locale/hr_HR.tsx
Normal file
2
components/calendar/locale/hr_HR.tsx
Normal file
@ -0,0 +1,2 @@
|
||||
import hr_HR from '../../date-picker/locale/hr_HR';
|
||||
export default hr_HR;
|
19
components/date-picker/locale/hr_HR.tsx
Normal file
19
components/date-picker/locale/hr_HR.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import CalendarLocale from 'rc-calendar/lib/locale/hr_HR';
|
||||
import TimePickerLocale from '../../time-picker/locale/hr_HR';
|
||||
|
||||
// Merge into a locale object
|
||||
const locale = {
|
||||
lang: {
|
||||
placeholder: 'Odaberite datum',
|
||||
rangePlaceholder: ['Početni datum', 'Završni datum'],
|
||||
...CalendarLocale,
|
||||
},
|
||||
timePickerLocale: {
|
||||
...TimePickerLocale,
|
||||
},
|
||||
};
|
||||
|
||||
// All settings at:
|
||||
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
||||
|
||||
export default locale;
|
File diff suppressed because it is too large
Load Diff
@ -32,6 +32,7 @@ import frBE from '../fr_BE';
|
||||
import frFR from '../fr_FR';
|
||||
import heIL from '../he_IL';
|
||||
import hiIN from '../hi_IN';
|
||||
import hrHR from '../hr_HR';
|
||||
import huHU from '../hu_HU';
|
||||
import isIS from '../is_IS';
|
||||
import itIT from '../it_IT';
|
||||
@ -78,6 +79,7 @@ const locales = [
|
||||
frFR,
|
||||
heIL,
|
||||
hiIN,
|
||||
hrHR,
|
||||
huHU,
|
||||
isIS,
|
||||
itIT,
|
||||
|
56
components/locale-provider/hr_HR.tsx
Normal file
56
components/locale-provider/hr_HR.tsx
Normal file
@ -0,0 +1,56 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/hr_HR';
|
||||
import DatePicker from '../date-picker/locale/hr_HR';
|
||||
import TimePicker from '../time-picker/locale/hr_HR';
|
||||
import Calendar from '../calendar/locale/hr_HR';
|
||||
|
||||
export default {
|
||||
locale: 'hr',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
global: {
|
||||
placeholder: 'Molimo označite',
|
||||
},
|
||||
Table: {
|
||||
filterTitle: 'Filter meni',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Reset',
|
||||
selectAll: 'Označi trenutnu stranicu',
|
||||
selectInvert: 'Invertiraj trenutnu stranicu',
|
||||
sortTitle: 'Sortiraj',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Odustani',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Odustani',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
searchPlaceholder: 'Pretraži ovdje',
|
||||
itemUnit: 'stavka',
|
||||
itemsUnit: 'stavke',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Upload u tijeku...',
|
||||
removeFile: 'Makni datoteku',
|
||||
uploadError: 'Greška kod uploada',
|
||||
previewFile: 'Pogledaj datoteku',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Nema podataka',
|
||||
},
|
||||
Icon: {
|
||||
icon: 'ikona',
|
||||
},
|
||||
Text: {
|
||||
edit: 'uredi',
|
||||
copy: 'kopiraj',
|
||||
copied: 'kopiranje uspješno',
|
||||
expand: 'proširi',
|
||||
},
|
||||
};
|
5
components/time-picker/locale/hr_HR.tsx
Normal file
5
components/time-picker/locale/hr_HR.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
const locale = {
|
||||
placeholder: 'Odaberite vrijeme',
|
||||
};
|
||||
|
||||
export default locale;
|
@ -44,6 +44,7 @@ Supported languages:
|
||||
|French (Belgium)|fr_BE|
|
||||
|French (France)|fr_FR|
|
||||
|Hebrew|he_IL|
|
||||
|Croatian|hr_HR|
|
||||
|Hindi|hi_IN|
|
||||
|Hungarian|hu_HU|
|
||||
|Indonesian|id_ID|
|
||||
|
@ -43,6 +43,7 @@ return (
|
||||
|法语|fr_FR|
|
||||
|希伯来语|he_IL|
|
||||
|印地语|hi_IN|
|
||||
|克罗地亚语|hr_HR|
|
||||
|匈牙利|hu_HU|
|
||||
|冰岛语|is_IS|
|
||||
|印度尼西亚语|id_ID|
|
||||
|
Loading…
Reference in New Issue
Block a user