Skip to content
This repository

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
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.cy.js fixed title comment in welsh locale file
jquery.timeago.cz.js
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.js Locales
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.he.js
jquery.timeago.hr.js Added Croatian locale
jquery.timeago.hu.js Locales
jquery.timeago.hy.js Locales
jquery.timeago.id.js
jquery.timeago.it.js Locales
jquery.timeago.ja.js Update locales/jquery.timeago.ja.js
jquery.timeago.ko.js 띄어쓰기 수정.
jquery.timeago.lt.js Lithuanian
jquery.timeago.mk.js Added Macedonian localization
jquery.timeago.nl.js Fixed error, thanks to @trilobyte
jquery.timeago.no.js Locales
jquery.timeago.pl.js Locales
jquery.timeago.pt-br.js
jquery.timeago.pt.js Locales
jquery.timeago.ro.js
jquery.timeago.ru.js Locales
jquery.timeago.sk.js Add Slovak locale
jquery.timeago.sl.js Slovenian translation
jquery.timeago.sv.js Locales
jquery.timeago.th.js add Thai translations
jquery.timeago.tr.js
jquery.timeago.uk.js spelling mistake in uk locale
jquery.timeago.uz.js wrapper function removed, comments added
jquery.timeago.zh-CN.js
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.