forked from ant-design/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* locale: Add Norwegian Bokmål locales to Ant Design * Add Vemund Santi to authors. * docs: add Norwegian to list of i18n language examples * test: add tests for Norwegian Bokmål * Update dependencies. Use locales from rc-pagination.
- Loading branch information
Showing
9 changed files
with
79 additions
and
2 deletions.
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 |
---|---|---|
|
@@ -141,6 +141,7 @@ Tino D <[email protected]> | |
Tyler <[email protected]> | ||
Vadim Macagon <[email protected]> | ||
Valentin Vichnal <[email protected]> | ||
Vemund Santi <[email protected]> | ||
Vincent Zhang <[email protected]> | ||
Walter Barbagallo <[email protected]> | ||
Warren Seymour <[email protected]> | ||
|
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 nb_NO from '../../date-picker/locale/nb_NO'; | ||
export default nb_NO; |
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/nb_NO'; | ||
import TimePickerLocale from '../../time-picker/locale/nb_NO'; | ||
|
||
// Merge into a locale object | ||
const locale = { | ||
lang: { | ||
placeholder: 'Velg dato', | ||
rangePlaceholder: ['Startdato', 'Sluttdato'], | ||
...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('nb'); | ||
|
||
import Pagination from 'rc-pagination/lib/locale/nb_NO'; | ||
import DatePicker from '../date-picker/locale/nb_NO'; | ||
import TimePicker from '../time-picker/locale/nb_NO'; | ||
import Calendar from '../calendar/locale/nb_NO'; | ||
|
||
export default { | ||
locale: 'nb', | ||
DatePicker, | ||
TimePicker, | ||
Calendar, | ||
Pagination, | ||
Table: { | ||
filterTitle: 'Filtermeny', | ||
filterConfirm: 'OK', | ||
filterReset: 'Nullstill', | ||
emptyText: 'Ingen data', | ||
selectAll: 'Velg alle', | ||
selectInvert: 'Inverter valg', | ||
}, | ||
Modal: { | ||
okText: 'OK', | ||
cancelText: 'Avbryt', | ||
justOkText: 'OK', | ||
}, | ||
Popconfirm: { | ||
okText: 'OK', | ||
cancelText: 'Avbryt', | ||
}, | ||
Transfer: { | ||
notFoundContent: 'Ingen treff', | ||
searchPlaceholder: 'Søk her', | ||
itemUnit: 'element', | ||
itemsUnit: 'elementer', | ||
}, | ||
Select: { | ||
notFoundContent: 'Ingen treff', | ||
}, | ||
Upload: { | ||
uploading: 'Laster opp...', | ||
removeFile: 'Fjern fil', | ||
uploadError: 'Feil ved opplastning', | ||
previewFile: 'Forhåndsvisning', | ||
}, | ||
}; |
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: 'Velg tid', | ||
}; | ||
|
||
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 |
---|---|---|
|
@@ -41,6 +41,7 @@ return ( | |
|意大利语|it_IT| | ||
|日语|ja_JP| | ||
|韩语/朝鲜语|ko_KR| | ||
|挪威|nb_NO| | ||
|波斯语|fa_IR| | ||
|波兰语|pl_PL| | ||
|葡萄牙语|pt_BR| | ||
|
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