Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Failed to load latest commit information. Added README to locales dir Added Afrikaans language Update Locales Locales Locales
jquery.timeago.cs.js missing semicolons fixed title comment in welsh locale file
jquery.timeago.da.js Locales Locales
jquery.timeago.dv.js Create jquery.timeago.dv.js
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 Added Spanish shortened locale Locales missing semicolons
jquery.timeago.fa.js Added Farsi translation Locales Shortened French Locale Locales Create
jquery.timeago.he.js missing semicolons Added Croatian locale Locales
jquery.timeago.hy.js Locales Fixed Indonesian locale Syntax issue Add italian shortened file Locales
jquery.timeago.ja.js Update locales/jquery.timeago.ja.js
jquery.timeago.jv.js Moved jv locale to locales dir #147
jquery.timeago.ko.js Update jquery.timeago.ko.js Added locale for kyrgyz language. Lithuanian missing semicolons Improved Dutch translation Locales Locales Add Support for Brazilian Portuguese shortened Update Add Support for Portuguese shortened Locales Fix Update Locales Create Sinhalese language Add Slovak locale handle slovenian translation correctly Locales add Thai translations Fix spelling mistake in uk locale missing semicolons Added Vietnamese (vi) locale
jquery.timeago.zh-CN.js update jquery.timeago.zh-CN.js
jquery.timeago.zh-TW.js update jquery.timeago.zh-TW.js

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.