Skip to content
This repository

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

..
Octocat-spinner-32 README.md Added README to locales dir March 18, 2012
Octocat-spinner-32 jquery.timeago.ar.js
Octocat-spinner-32 jquery.timeago.bg.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.bs.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.ca.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.cy.js fixed title comment in welsh locale file April 11, 2012
Octocat-spinner-32 jquery.timeago.cz.js
Octocat-spinner-32 jquery.timeago.da.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.de.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.el.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.en-short.js Add concise english locale June 08, 2012
Octocat-spinner-32 jquery.timeago.en.js Added English locale to use as a template for other languages March 21, 2012
Octocat-spinner-32 jquery.timeago.es.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.fa.js Added Farsi translation April 11, 2012
Octocat-spinner-32 jquery.timeago.fi.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.fr-short.js Shortened French Locale January 23, 2013
Octocat-spinner-32 jquery.timeago.fr.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.he.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.hr.js Added Croatian locale March 14, 2012
Octocat-spinner-32 jquery.timeago.hu.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.hy.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.id.js
Octocat-spinner-32 jquery.timeago.it.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.ja.js
Octocat-spinner-32 jquery.timeago.ko.js 띄어쓰기 수정. May 07, 2012
Octocat-spinner-32 jquery.timeago.mk.js Added Macedonian localization November 21, 2012
Octocat-spinner-32 jquery.timeago.nl.js Fixed error, thanks to @trilobyte June 13, 2012
Octocat-spinner-32 jquery.timeago.no.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.pl.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.pt-br.js
Octocat-spinner-32 jquery.timeago.pt.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.ro.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.ru.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.sv.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.th.js add Thai translations November 27, 2012
Octocat-spinner-32 jquery.timeago.tr.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.uk.js spelling mistake in uk locale August 10, 2012
Octocat-spinner-32 jquery.timeago.uz.js wrapper function removed, comments added April 27, 2012
Octocat-spinner-32 jquery.timeago.zh-CN.js
Octocat-spinner-32 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.