Skip to content
This repository

Fetching latest commit…

Cannot retrieve the latest commit at this time

.. Added README to locales dir Update Locales Locales Locales fixed title comment in welsh locale file
jquery.timeago.da.js Locales Locales
jquery.timeago.el.js Locales
jquery.timeago.en-short.js Add concise english locale
jquery.timeago.en.js Added English locale to use as a template for other languages Locales
jquery.timeago.fa.js Added Farsi translation Locales Shortened French Locale Locales
jquery.timeago.he.js Added Croatian locale Locales
jquery.timeago.hy.js Locales Locales
jquery.timeago.ja.js Update locales/jquery.timeago.ja.js
jquery.timeago.ko.js 띄어쓰기 수정. Lithuanian Added Macedonian localization Fixed error, thanks to @trilobyte Locales Locales Locales Locales Add Slovak locale Slovenian translation Locales add Thai translations spelling mistake in uk locale wrapper function removed, comments added

Locale override examples for timeago

You can represent time statements in most western languages where a prefix and/or suffix is used.

The default case is to use suffix only (as in English), which you do by providing the suffixAgo and suffixFromNow settings in the strings hash (earlier versions of timeago used the deprecated ago and fromNow options). If present, they are used.

2 minutes [suffixAgo]
2 minutes [suffixFromNow]

In case you want to use prefix only instead of suffix (e.g. Greek), you provide the prefixAgo and prefixFromNow options in the strings hash and leave suffixAgo and suffixFromNow empty or null.

[prefixAgo] 2 minutes
[prefixFromNow] 2 minutes

For languages where you want to use a prefix only for future tense and prefix/suffix for past tense (for example swedish), you can combine the prefix and suffixes as needed.

[prefixAgo] 2 minutes [suffixAgo]
[prefixFromNow] 2 minutes
Something went wrong with that request. Please try again.