Skip to content

Commit 1b4cba3

Browse files
Martijn Melchersedcarroll
authored andcommitted
feat(localization): Added Dutch language support
1 parent d9f0a19 commit 1b4cba3

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

src/behaviors/localization/locales/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import it from "./it";
1111
import ru from "./ru";
1212
import he from "./he";
1313
import ge from "./ge";
14+
import nl from "./nl";
1415

1516
// This file exists for the demo app. Don't use this in real life.
1617
export default {
@@ -24,5 +25,6 @@ export default {
2425
pt,
2526
ru,
2627
he,
27-
ge
28+
ge,
29+
nl
2830
};
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
import { IPartialLocaleValues } from "../interfaces/values";
2+
3+
/**
4+
* locale : Dutch (nl)
5+
* author : Martijn Melchers : https://github.com/martijnmelchers
6+
*/
7+
8+
const nl:IPartialLocaleValues = {
9+
datepicker: {
10+
months: [
11+
"Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", "November", "December"
12+
],
13+
monthsShort: [
14+
"Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"
15+
],
16+
weekdays: [
17+
"Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag"
18+
],
19+
weekdaysShort: [
20+
"Zo", "Ma", "Di", "Wo", "Do", "Vr", "Za"
21+
],
22+
weekdaysNarrow: [
23+
"Z", "M", "D", "W", "D", "V", "Z"
24+
],
25+
/* Dutch does not have a translation for am/pm */
26+
timesOfDay: [
27+
"a.m.", "p.m."
28+
],
29+
timesOfDayUppercase: [
30+
"AM", "PM"
31+
],
32+
timesOfDayLowercase: [
33+
"am", "pm"
34+
],
35+
formats: {
36+
time: "HH:mm",
37+
datetime: "D MMMM YYYY HH:mm",
38+
date: "D MMMM YYYY",
39+
month: "MMMM YYYY",
40+
year: "YYYY"
41+
},
42+
firstDayOfWeek: 1
43+
},
44+
search: {
45+
placeholder: "Zoeken...",
46+
noResults: {
47+
header: "Geen resultaten",
48+
message: "Er zijn geen resultaten gevonden."
49+
}
50+
},
51+
select: {
52+
noResultsMessage: "Geen resultation",
53+
single: {
54+
placeholder: "Selecteer een"
55+
},
56+
multi: {
57+
placeholder: "Selecteren...",
58+
maxSelectedMessage: "Max #{max} selecteren",
59+
selectedMessage: "#{count} geselecteerd"
60+
}
61+
}
62+
};
63+
64+
export default nl;

0 commit comments

Comments
 (0)