feat: add is_IS locale (#7561)

This commit is contained in:
Stefan Paunovic 2017-09-12 03:10:42 +02:00 committed by Benjy Cui
parent 7bee69a9df
commit 0ac7ccaa8f
6 changed files with 76 additions and 1 deletions

View File

@ -0,0 +1,2 @@
import is_IS from '../../date-picker/locale/is_IS';
export default is_IS;

View File

@ -0,0 +1,19 @@
import CalendarLocale from 'rc-calendar/lib/locale/is_IS';
import TimePickerLocale from '../../time-picker/locale/is_IS';
// Merge into a locale object
const locale = {
lang: {
placeholder: 'Veldu dag',
rangePlaceholder: ['Upphafsdagur', 'Lokadagur'],
...CalendarLocale,
},
timePickerLocale: {
...TimePickerLocale,
},
};
// All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
export default locale;

View File

@ -32,8 +32,9 @@ import faIR from '../fa_IR';
import elGR from '../el_GR';
import nbNO from '../nb_NO';
import srRS from '../sr_RS';
import isIS from '../is_IS';
const locales = [enUS, ptBR, ruRU, esES, svSE, frBE, deDE, nlNL, caES, csCZ, koKR, etEE, skSK, jaJP, trTR, zhTW, fiFI, plPL, bgBG, enGB, frFR, nlBE, itIT, viVN, thTH, faIR, elGR, nbNO, srRS];
const locales = [enUS, ptBR, ruRU, esES, svSE, frBE, deDE, nlNL, caES, csCZ, koKR, etEE, skSK, jaJP, trTR, zhTW, fiFI, plPL, bgBG, enGB, frFR, nlBE, itIT, viVN, thTH, faIR, elGR, nbNO, srRS, isIS];
const Option = Select.Option;
const RangePicker = DatePicker.RangePicker;

View File

@ -0,0 +1,47 @@
import moment from 'moment';
moment.locale('is');
import Pagination from 'rc-pagination/lib/locale/is_IS';
import DatePicker from '../date-picker/locale/is_IS';
import TimePicker from '../time-picker/locale/is_IS';
import Calendar from '../calendar/locale/is_IS';
export default {
locale: 'is',
Pagination,
DatePicker,
TimePicker,
Calendar,
Table: {
filterTitle: 'Afmarkanir',
filterConfirm: 'Staðfesta',
filterReset: 'Núllstilla',
emptyText: 'Engin gögn',
selectAll: 'Velja allt',
selectInvert: 'Viðsnúa vali',
},
Modal: {
okText: 'Áfram',
cancelText: 'Hætta við',
justOkText: 'Í lagi',
},
Popconfirm: {
okText: 'Áfram',
cancelText: 'Hætta við',
},
Transfer: {
notFoundContent: 'Engar færslur',
searchPlaceholder: 'Leita hér',
itemUnit: 'færsla',
itemsUnit: 'færslur',
},
Select: {
notFoundContent: 'Ekkert finnst',
},
Upload: {
uploading: 'Hleð upp...',
removeFile: 'Fjarlægja skrá',
uploadError: 'Villa við að hlaða upp',
previewFile: 'Forskoða skrá',
},
};

View File

@ -0,0 +1,5 @@
const locale = {
placeholder: 'Velja tíma',
};
export default locale;

View File

@ -40,6 +40,7 @@ Supported languages:
|French (Belgium)|fr_BE|
|French (France)|fr_FR|
|German|de_DE|
|Icelandic|is_IS|
|Italian|it_IT|
|Japanese|ja_JP|
|Korean|ko_KR|