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
Octocat-spinner-32 jquery.timeago.ar.js Update jquery.timeago.ar.js
Octocat-spinner-32 jquery.timeago.bg.js Locales
Octocat-spinner-32 jquery.timeago.bs.js Locales
Octocat-spinner-32 jquery.timeago.ca.js Locales
Octocat-spinner-32 jquery.timeago.cs.js Use proper ISO 639-1 code for Czech translation.
Octocat-spinner-32 jquery.timeago.cy.js fixed title comment in welsh locale file
Octocat-spinner-32 jquery.timeago.da.js Locales
Octocat-spinner-32 jquery.timeago.de.js Locales
Octocat-spinner-32 jquery.timeago.el.js Locales
Octocat-spinner-32 jquery.timeago.en-short.js Add concise english locale
Octocat-spinner-32 jquery.timeago.en.js Added English locale to use as a template for other languages
Octocat-spinner-32 jquery.timeago.es-short.js Added Spanish shortened locale
Octocat-spinner-32 jquery.timeago.es.js Locales
Octocat-spinner-32 jquery.timeago.et.js Estonian translation with better word cases, detection of future and …
Octocat-spinner-32 jquery.timeago.fa.js Added Farsi translation
Octocat-spinner-32 jquery.timeago.fi.js Locales
Octocat-spinner-32 jquery.timeago.fr-short.js Shortened French Locale
Octocat-spinner-32 jquery.timeago.fr.js Locales
Octocat-spinner-32 jquery.timeago.gl.js Create jquery.timeago.gl.js
Octocat-spinner-32 jquery.timeago.he.js Locales
Octocat-spinner-32 jquery.timeago.hr.js Added Croatian locale
Octocat-spinner-32 jquery.timeago.hu.js Locales
Octocat-spinner-32 jquery.timeago.hy.js Locales
Octocat-spinner-32 jquery.timeago.id.js Fixed Indonesian locale
Octocat-spinner-32 jquery.timeago.is.js Syntax issue
Octocat-spinner-32 jquery.timeago.it.js Locales
Octocat-spinner-32 jquery.timeago.ja.js Update locales/jquery.timeago.ja.js
Octocat-spinner-32 jquery.timeago.jv.js Moved jv locale to locales dir #147
Octocat-spinner-32 jquery.timeago.ko.js 띄어쓰기 수정.
Octocat-spinner-32 jquery.timeago.lt.js Lithuanian
Octocat-spinner-32 jquery.timeago.mk.js Added Macedonian localization
Octocat-spinner-32 jquery.timeago.nl.js Fixed error, thanks to @trilobyte
Octocat-spinner-32 jquery.timeago.no.js Locales
Octocat-spinner-32 jquery.timeago.pl.js Locales
Octocat-spinner-32 jquery.timeago.pt-br.js Update jquery.timeago.pt-br.js
Octocat-spinner-32 jquery.timeago.pt.js Locales
Octocat-spinner-32 jquery.timeago.ro.js Locales
Octocat-spinner-32 jquery.timeago.rs.js Added Serbian Latin translation
Octocat-spinner-32 jquery.timeago.ru.js Locales
Octocat-spinner-32 jquery.timeago.sk.js Add Slovak locale
Octocat-spinner-32 jquery.timeago.sl.js Slovenian translation
Octocat-spinner-32 jquery.timeago.sv.js Locales
Octocat-spinner-32 jquery.timeago.th.js add Thai translations
Octocat-spinner-32 jquery.timeago.tr.js Locales
Octocat-spinner-32 jquery.timeago.uk.js spelling mistake in uk locale
Octocat-spinner-32 jquery.timeago.uz.js wrapper function removed, comments added
Octocat-spinner-32 jquery.timeago.vi.js Added Vietnamese (vi) locale
Octocat-spinner-32 jquery.timeago.zh-CN.js update jquery.timeago.zh-CN.js
Octocat-spinner-32 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.