Skip to content
Latest commit 3257f34 @yoshihara yoshihara Fix ja translations for month/monthes
e.g.)

約 1   月 ->
約 1 ヶ月

約 2   月 ->
約 2 ヶ月
..
Failed to load latest commit information.
README.md Added README to locales dir
jquery.timeago.af.js Added Afrikaans language
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.dv.js Create jquery.timeago.dv.js
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.eu.js Renamed Basque locale from eus to eu
jquery.timeago.fa-short.js Create jquery.timeago.fa-short.js
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-short.js Add italian shortened file
jquery.timeago.it.js Locales
jquery.timeago.ja.js Fix ja translations for month/monthes
jquery.timeago.jv.js Moved jv locale to locales dir #147
jquery.timeago.ko.js Update jquery.timeago.ko.js
jquery.timeago.ky.js Added locale for kyrgyz language.
jquery.timeago.lt.js Lithuanian
jquery.timeago.lv.js Added Latvian translation file.
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-short.js Add Support for Portuguese shortened
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.rw.js Create jquery.timeago.rw.js
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.