timeago 2.0.4 timeago: ^2.0.4 copied to clipboard
A library useful for creating fuzzy timestamps. (e.g. "15 minutes ago")
Changelog #
2.0.4 #
- Fix plural days in pt_BR thanks to @leocavalcante
2.0.3 #
- Adds missing return type (
String
) toformat
function
2.0.2 #
- Adds Nl translation thanks to @Elvander
2.0.1 #
- Adds missing Fa, It and Ru Locales from merge conflict
2.0.0 #
BREAKING CHANGES:
-
v2 of this library does not depend on package
intl
anymore, It didn't make sense for the small amount of text and now we can use the same code for browser, Flutter and server. -
API is now a lot simpler, no need to create instance just use the
format
method. -
Allows to add and override locales messages with
setLocaleMessages
-
All v1 locale messages are available to use, currently library only loads by default
en
,en_short
,es
andes_short
. To add the remaining just callsetLocaleMessages
, see example. -
See test and example folder file for examples
1.3.0 #
- Dart 2.0 support
1.2.6 #
- Fixes to German translation
1.2.6 #
- Adds Russian translation thanks to @asstet
1.2.5 #
- Adds Italian translation thanks to @nicofossa
1.2.4 #
- Adds Farsi translation thanks to @siavash-mohseni
1.2.3 #
- Fixes Portuguese not working in non deferred import
1.2.2 #
- Adds Portuguese translation thanks to @jeanpimentel
1.2.1 #
- Adds German translation thanks to @btastic
1.2.0 #
- Split import declaration into browser(lazy load) and server.
For browser(lazy load) use: import 'package:timeago/browser_timeago.dart';
For Flutter/server use: import 'package:timeago/browser_timeago.dart';
Breaking: TimeAgo.initializeLocale
is no longer a static method
1.1.0 #
- Adds Chinese and Simplified Chinese thanks to @oraclebox
1.0.2 #
- Update intl dependency
1.0.0 #
- API change for better clarity
0.1.2 #
- Increase
intl
dependency to accept <0.15.0
0.1.1 #
- Add fr and ja locales
0.1.0 #
- Update messages to be more concise
0.0.1 #
- Add en, en_short, es, and es_short locales