Skip to content
This repository

Merge pull request #179 from zfben/patch-1

update jquery.timeago.zh-CN.js
latest commit 2245c795d0
Ryan McGeary authored
..
Octocat-spinner-32 README.md Added README to locales dir March 18, 2012
Octocat-spinner-32 jquery.timeago.ar.js Update jquery.timeago.ar.js May 05, 2013
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.cs.js Use proper ISO 639-1 code for Czech translation. March 05, 2014
Octocat-spinner-32 jquery.timeago.cy.js fixed title comment in welsh locale file April 11, 2012
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-short.js Added Spanish shortened locale April 14, 2014
Octocat-spinner-32 jquery.timeago.es.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.et.js Estonian translation with better word cases, detection of future and … June 27, 2013
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.gl.js Create jquery.timeago.gl.js December 02, 2013
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 Fixed Indonesian locale May 18, 2013
Octocat-spinner-32 jquery.timeago.is.js Syntax issue October 07, 2013
Octocat-spinner-32 jquery.timeago.it.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.ja.js Update locales/jquery.timeago.ja.js March 08, 2013
Octocat-spinner-32 jquery.timeago.jv.js Moved jv locale to locales dir #147 November 09, 2013
Octocat-spinner-32 jquery.timeago.ko.js 띄어쓰기 수정. May 07, 2012
Octocat-spinner-32 jquery.timeago.lt.js Lithuanian April 30, 2013
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 Update jquery.timeago.pt-br.js October 30, 2013
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.rs.js Added Serbian Latin translation July 09, 2013
Octocat-spinner-32 jquery.timeago.ru.js Locales March 12, 2012
Octocat-spinner-32 jquery.timeago.sk.js Add Slovak locale February 01, 2013
Octocat-spinner-32 jquery.timeago.sl.js Slovenian translation March 31, 2013
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.vi.js Added Vietnamese (vi) locale February 26, 2014
Octocat-spinner-32 jquery.timeago.zh-CN.js update jquery.timeago.zh-CN.js April 16, 2014
Octocat-spinner-32 jquery.timeago.zh-TW.js update jquery.timeago.zh-TW.js April 16, 2014
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.