Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
..
Failed to load latest commit information.
README.md Added README to locales dir
jquery.timeago.ar.js Update jquery.timeago.ar.js
jquery.timeago.bg.js Locales
jquery.timeago.bs.js Locales
jquery.timeago.ca.js Locales
jquery.timeago.cs.js missing semicolons
jquery.timeago.cy.js fixed title comment in welsh locale file
jquery.timeago.da.js Locales
jquery.timeago.de.js 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
jquery.timeago.es-short.js Added Spanish shortened locale
jquery.timeago.es.js Locales
jquery.timeago.et.js missing semicolons
jquery.timeago.fa.js Added Farsi translation
jquery.timeago.fi.js Locales
jquery.timeago.fr-short.js Shortened French Locale
jquery.timeago.fr.js Locales
jquery.timeago.gl.js Create jquery.timeago.gl.js
jquery.timeago.he.js missing semicolons
jquery.timeago.hr.js Added Croatian locale
jquery.timeago.hu.js Locales
jquery.timeago.hy.js Locales
jquery.timeago.id.js Fixed Indonesian locale
jquery.timeago.is.js Syntax issue
jquery.timeago.it.js 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 띄어쓰기 수정.
jquery.timeago.lt.js Lithuanian
jquery.timeago.mk.js missing semicolons
jquery.timeago.nl.js Improved Dutch translation
jquery.timeago.no.js Locales
jquery.timeago.pl.js Locales
jquery.timeago.pt-br-short.js Add Support for Brazilian Portuguese shortened
jquery.timeago.pt-br.js Update jquery.timeago.pt-br.js
jquery.timeago.pt.js Locales
jquery.timeago.ro.js Fix jquery.timeago.ro.js
jquery.timeago.rs.js Update jquery.timeago.rs.js
jquery.timeago.ru.js Locales
jquery.timeago.si.js Sinhalese language
jquery.timeago.sk.js Add Slovak locale
jquery.timeago.sl.js handle slovenian translation correctly
jquery.timeago.sv.js Locales
jquery.timeago.th.js add Thai translations
jquery.timeago.tr.js Fix jquery.timeago.tr.js
jquery.timeago.uk.js spelling mistake in uk locale
jquery.timeago.uz.js missing semicolons
jquery.timeago.vi.js 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

README.md

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.