Giter VIP home page Giter VIP logo

Comments (4)

david-barbion avatar david-barbion commented on May 29, 2024 1

Ok, sorry for the inconvenience, I've just figured out what was the problem. I've removed fallbacks key and it worked.

Thank you for your plugin!

from jekyll-timeago.

markets avatar markets commented on May 29, 2024

Hi @adham-hajji and thanks for trying this plugin!

First of all, what version are you using? New localization system was released in v0.10.0, so you should install an equal or superior version (btw, I recommend you to use latest version v0.11.1).

I'll need more information about your installation and usage to debug your errors. This part has tests and are all passing for me locally and remote CI (Travis).

Keep in touch!

from jekyll-timeago.

david-barbion avatar david-barbion commented on May 29, 2024

Hi,

Same here with latest version (0.11.1) freshly installed.
In my front matter of the posts, I've created this:

---
locale: en
layout: post
---
{{ page.date | timeago }}

Actually, the filter is called from an include statement.

Here is my options tag:

jekyll_timeago:
  depth: 2
  default_locale: 'fr'                                                                                                                                                               
  fallbacks: true
  available_locales:
    - 'en'
    - 'fr'

(Default) French translation is working but not English one. I use jekyll-polyglot for handling translated posts.

David.

from jekyll-timeago.

markets avatar markets commented on May 29, 2024

@adham-hajji maybe you will find useful @david-barbion's comments.

I'm going to close for now, please reopen if you can provide more information, otherwise we can't help with your issue.

@david-barbion no prob 👍

Thanks!

from jekyll-timeago.

Related Issues (16)

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.