Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat: add is_IS locale (#7561)
- Loading branch information
1 parent
7bee69a
commit 0ac7cca
Showing
6 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import is_IS from '../../date-picker/locale/is_IS'; | ||
export default is_IS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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á', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const locale = { | ||
placeholder: 'Velja tíma', | ||
}; | ||
|
||
export default locale; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters