-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from tverra/norwegian_language_support
Added Norwegian language support
- Loading branch information
Showing
4 changed files
with
141 additions
and
11 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 |
---|---|---|
|
@@ -31,4 +31,5 @@ See the example for simple use | |
- Hebrew (HE) | ||
- Indonesian (ID) | ||
- Turkish (TR) | ||
- Norwegian (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
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,60 @@ | ||
part of 'date_picker_i18n.dart'; | ||
|
||
/// Norwegian Bokmål (NO) | ||
class _StringsNoNb extends _StringsI18n { | ||
const _StringsNoNb(); | ||
|
||
@override | ||
String getCancelText() { | ||
return 'Avbryt'; | ||
} | ||
|
||
@override | ||
String getDoneText() { | ||
return 'Ferdig'; | ||
} | ||
|
||
@override | ||
List<String> getMonths() { | ||
return [ | ||
"Januar", | ||
"Februar", | ||
"Mars", | ||
"April", | ||
"Mai", | ||
"Juni", | ||
"Juli", | ||
"August", | ||
"September", | ||
"Oktober", | ||
"November", | ||
"Desember" | ||
]; | ||
} | ||
|
||
@override | ||
List<String> getWeeksFull() { | ||
return [ | ||
"Mandag", | ||
"Tirsdag", | ||
"Onsdag", | ||
"Torsdag", | ||
"Fredag", | ||
"Lørdag", | ||
"Søndag", | ||
]; | ||
} | ||
|
||
@override | ||
List<String> getWeeksShort() { | ||
return [ | ||
"Man", | ||
"Tir", | ||
"Ons", | ||
"Tor", | ||
"Fre", | ||
"Lør", | ||
"Søn", | ||
]; | ||
} | ||
} |
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,60 @@ | ||
part of 'date_picker_i18n.dart'; | ||
|
||
/// Norwegian Nynorsk (NO) | ||
class _StringsNoNn extends _StringsI18n { | ||
const _StringsNoNn(); | ||
|
||
@override | ||
String getCancelText() { | ||
return 'Avbryt'; | ||
} | ||
|
||
@override | ||
String getDoneText() { | ||
return 'Ferdig'; | ||
} | ||
|
||
@override | ||
List<String> getMonths() { | ||
return [ | ||
"Januar", | ||
"Februar", | ||
"Mars", | ||
"April", | ||
"Mai", | ||
"Juni", | ||
"Juli", | ||
"August", | ||
"September", | ||
"Oktober", | ||
"November", | ||
"Desember" | ||
]; | ||
} | ||
|
||
@override | ||
List<String> getWeeksFull() { | ||
return [ | ||
"Måndag", | ||
"Tysdag", | ||
"Onsdag", | ||
"Torsdag", | ||
"Fredag", | ||
"Laurdag", | ||
"Søndag", | ||
]; | ||
} | ||
|
||
@override | ||
List<String> getWeeksShort() { | ||
return [ | ||
"Mån", | ||
"Tys", | ||
"Ons", | ||
"Tor", | ||
"Fre", | ||
"Lau", | ||
"Søn", | ||
]; | ||
} | ||
} |