diff --git a/index.html b/index.html index 14e033b..9df6513 100644 --- a/index.html +++ b/index.html @@ -116,6 +116,15 @@ jQuery.timeago(jQuery("abbr#some_id")); //=> " jQuery.timeago.settings.allowFuture = true; +

+ To disable timestamps in the past, use the allowPast setting. + This setting is set to true by default. When set to false, if the time is in the past then instead of displaying a message like "5 minutes ago" a static message will be displayed. + The staic message displayed can be configured with the strings.inPast setting: +

+
+jQuery.timeago.settings.strings.inPast = "time has elapsed";
+jQuery.timeago.settings.allowPast = false;
+

Excusez-moi?

Yes, timeago has locale/i18n/language support. Here are some configuration examples. Please submit a GitHub pull request for corrections or additional languages.