From 5c984671a5130d11e2ce03ec52980d6220a2f661 Mon Sep 17 00:00:00 2001 From: Alexa Ognjanovic Date: Sun, 9 Oct 2022 15:57:22 +0000 Subject: [PATCH] Add serbian translation --- .../timeago/lib/src/messages/sr_messages.dart | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 packages/timeago/lib/src/messages/sr_messages.dart diff --git a/packages/timeago/lib/src/messages/sr_messages.dart b/packages/timeago/lib/src/messages/sr_messages.dart new file mode 100644 index 00000000..74199c17 --- /dev/null +++ b/packages/timeago/lib/src/messages/sr_messages.dart @@ -0,0 +1,73 @@ +import 'package:timeago/src/messages/lookupmessages.dart'; + +/// Serbian Messages +class SrMessages implements LookupMessages { + @override + String prefixAgo() => 'пре'; + @override + String prefixFromNow() => 'за'; + @override + String suffixAgo() => ''; + @override + String suffixFromNow() => ''; + @override + String lessThanOneMinute(int seconds) => 'мање од минута'; + @override + String aboutAMinute(int minutes) => 'пре минут'; + @override + String minutes(int minutes) => '$minutes минута'; + @override + String aboutAnHour(int minutes) => '~1 сат'; + @override + String hours(int hours) => '$hours сати'; + @override + String aDay(int hours) => '~1 дан'; + @override + String days(int days) => '$days дана'; + @override + String aboutAMonth(int days) => '~1 месец'; + @override + String months(int months) => '$months месеци'; + @override + String aboutAYear(int year) => '~1 година'; + @override + String years(int years) => '$years године'; + @override + String wordSeparator() => ' '; +} + +/// Serbian short Messages +class SrShortMessages implements LookupMessages { + @override + String prefixAgo() => ''; + @override + String prefixFromNow() => ''; + @override + String suffixAgo() => ''; + @override + String suffixFromNow() => ''; + @override + String lessThanOneMinute(int seconds) => 'сад'; + @override + String aboutAMinute(int minutes) => '1 мин.'; + @override + String minutes(int minutes) => '$minutes мин.'; + @override + String aboutAnHour(int minutes) => '~1 ч.'; + @override + String hours(int hours) => '$hours ч.'; + @override + String aDay(int hours) => '~1 д.'; + @override + String days(int days) => '$days д.'; + @override + String aboutAMonth(int days) => '~1 м.'; + @override + String months(int months) => '$months м.'; + @override + String aboutAYear(int year) => '~1 г.'; + @override + String years(int years) => '$years г.'; + @override + String wordSeparator() => ' '; +}