Skip to content

Commit

Permalink
Add serbian translation
Browse files Browse the repository at this point in the history
  • Loading branch information
GrbavaCigla authored and andresaraujo committed Jul 3, 2023
1 parent bbf6605 commit 5c98467
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions packages/timeago/lib/src/messages/sr_messages.dart
Original file line number Diff line number Diff line change
@@ -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() => ' ';
}

0 comments on commit 5c98467

Please sign in to comment.