Skip to content

Commit 142e929

Browse files
authored
feat(locales): add Norwegian Nynorsk locale (#439)
* Add Norwegian Nynorsk locale. * Add 'nn-NO' to LocaleOptions type. * Add 'nn-NO' to locale options. * Correct previous year and month forms in 'nn-NO' * Correct typo for Tuesday in nn-NO locale. * Revert "Correct typo for Tuesday in nn-NO locale." This reverts commit c4725de * Correct form for 'today' in nn-NO locale. * Correct typo for 'Tuesday' in nb-NO locale.
1 parent 43819b3 commit 142e929

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

src/locales/nb-NO.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"weekdays": [
88
"Søndag",
99
"Mandag",
10-
"Tisdag",
10+
"Tirsdag",
1111
"Onsdag",
1212
"Torsdag",
1313
"Fredag",

src/locales/nn-NO.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"todayButton": "I dag",
3+
"nextMonth": "Neste månad",
4+
"previousMonth": "Førre månad",
5+
"nextYear": "Neste år",
6+
"previousYear": "Førre år",
7+
"weekdays": [
8+
"Søndag",
9+
"Måndag",
10+
"Tysdag",
11+
"Onsdag",
12+
"Torsdag",
13+
"Fredag",
14+
"Laurdag"
15+
],
16+
"months": [
17+
"Januar",
18+
"Februar",
19+
"Mars",
20+
"April",
21+
"Mai",
22+
"Juni",
23+
"Juli",
24+
"August",
25+
"September",
26+
"Oktober",
27+
"November",
28+
"Desember"
29+
]
30+
}

src/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export type LocaleOptions =
2828
| 'ja-JP'
2929
| 'ko-KR'
3030
| 'nb-NO'
31+
| 'nn-NO'
3132
| 'pl-PL'
3233
| 'pt-BR'
3334
| 'ru-RU'

stories/data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const locale = <const>[
1818
'ja-JP',
1919
'ko-KR',
2020
'nb-NO',
21+
'nn-NO',
2122
'pl-PL',
2223
'pt-BR',
2324
'ru-RU',

0 commit comments

Comments
 (0)