Giter Site home page Giter Site logo

Comments (6)

Sartharian avatar Sartharian commented on June 8, 2024

https://github.com/rmm5t/jquery-timeago/tree/master/locales

Best regards!!

from jquery-timeago.

jarisgv avatar jarisgv commented on June 8, 2024

I didn't find anything related to the name of the months in 'locale'.
I don't want to use short version like '1d, 1m...', I'd like to use the name of months but translated. I.e. (es) Enero 27... (fr) Janvier 27... (pt) Janeiro 27...

from jquery-timeago.

jarisgv avatar jarisgv commented on June 8, 2024

Okay, I just solve it by adding this code:

image,

View on CodePen

from jquery-timeago.

Sartharian avatar Sartharian commented on June 8, 2024

the locale js files adds a customization support for the relative time text!
u 're making a mistake, 'cause this plugins only converts the iso to a relative time text.
perhaps u're confusing w/ the examples...
the locale info comes from ur data or info actually showing.
no need to replace the eng notations :)

from jquery-timeago.

Sartharian avatar Sartharian commented on June 8, 2024

in othr words, u can set the title attr w/ the text u wanna show... =)
<time class="timeago" datetime="[dateisoformat]" title="[Custom user text]">... and this text is edited from the plugin using the locales</time>

from jquery-timeago.

jarisgv avatar jarisgv commented on June 8, 2024

in othr words, u can set the title attr w/ the text u wanna show... =)
<time class="timeago" datetime="[dateisoformat]" title="[Custom user text]">... and this text is edited from the plugin using the locales</time>

But that's the problem. I wanna show the text in title attr in multiple languages.
I want to show it by default in english, but the user can define the language he will see (es, fr, pt...). That's the reason I translated the names of the months. Perhaps this is not the right way to do it, but the problem is solved, and sincerely I didn't find how to solve it using your instructions.

from jquery-timeago.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.