-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be4009a
commit bd58fcc
Showing
3 changed files
with
53 additions
and
0 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
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,50 @@ | ||
import '../messages.dart'; | ||
|
||
/// The [DutchMessages] class provides Dutch language-specific | ||
/// implementations of the [Messages] interface. This class is used to format | ||
/// the "time ago" strings in Dutch. | ||
class DutchMessages implements Messages { | ||
/// Prefix added before the time message. | ||
@override | ||
String prefixAgo() => ''; | ||
|
||
/// Suffix added after the time message. | ||
@override | ||
String suffixAgo() => 'geleden'; | ||
|
||
/// Message when the elapsed time is less than 15 seconds. | ||
@override | ||
String justNow(int seconds) => 'zojuist'; | ||
|
||
/// Message for when the elapsed time is less than a minute. | ||
@override | ||
String secsAgo(int seconds) => '$seconds seconden'; | ||
|
||
/// Message for when the elapsed time is about a minute. | ||
@override | ||
String minAgo(int minutes) => 'een minuut'; | ||
|
||
/// Message for when the elapsed time is in minutes. | ||
@override | ||
String minsAgo(int minutes) => '$minutes minuten'; | ||
|
||
/// Message for when the elapsed time is about an hour. | ||
@override | ||
String hourAgo(int minutes) => 'een uur'; | ||
|
||
/// Message for when the elapsed time is in hours. | ||
@override | ||
String hoursAgo(int hours) => '$hours uren'; | ||
|
||
/// Message for when the elapsed time is about a day. | ||
@override | ||
String dayAgo(int hours) => 'een dag'; | ||
|
||
/// Message for when the elapsed time is in days. | ||
@override | ||
String daysAgo(int days) => '$days dagen'; | ||
|
||
/// Word separator to be used when joining the parts of the message. | ||
@override | ||
String wordSeparator() => ' '; | ||
} |
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