Skip to content

Commit

Permalink
Merge pull request #38 from leszekkrol/patch-5
Browse files Browse the repository at this point in the history
Added Polish locale
  • Loading branch information
jama5262 authored Jan 7, 2020
2 parents 620ed66 + 8988572 commit 9433d05
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/src/relative_time/locales/pl_locale.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import 'package:jiffy/src/relative_time/lookup_messages.dart';

class PlLocale extends LookUpMessages {
String prefixAgo() => '';
String prefixFromNow() => 'w';
String suffixAgo() => 'temu';
String suffixFromNow() => '';
String lessThanOneMinute(int seconds) => 'chwilę temu';
String aboutAMinute(int minutes) => 'minutę temu';
String minutes(int minutes) => '$minutes min';
String aboutAnHour(int minutes) => 'godzinę temu';
String hours(int hours) => '$hours h';
String aDay(int hours) => 'dzień temu';
String days(int days) => '$days dni';
String aboutAMonth(int days) => 'miesiąc temu';
String months(int months) => '$months msc';
String aboutAYear(int year) => 'rok temu';
String years(int years) => '$years lat';
String wordSeparator() => ' ';
}
2 changes: 2 additions & 0 deletions lib/src/relative_time/relative_time.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:jiffy/src/relative_time/locales/it_locale.dart';
import 'package:jiffy/src/relative_time/locales/ja_locale.dart';
import 'package:jiffy/src/relative_time/locales/ko_locale.dart';
import 'package:jiffy/src/relative_time/locales/pt_locale.dart';
import 'package:jiffy/src/relative_time/locales/pl_locale.dart';
import 'package:jiffy/src/relative_time/locales/ru_locale.dart';
import 'package:jiffy/src/relative_time/locales/zh_locale.dart';
import 'package:jiffy/src/relative_time/lookup_messages.dart';
Expand Down Expand Up @@ -49,6 +50,7 @@ Map<String, LookUpMessages> _lookupMessagesMap = {
"arma": ArSaMaDzKwTnLocale(false),
"artn": ArSaMaDzKwTnLocale(false),
"pt": PtLocale(),
"pl": PlLocale(),
"ptbr": PtLocale(),
};

Expand Down

0 comments on commit 9433d05

Please sign in to comment.