Giter Club home page Giter Club logo

Comments (7)

mashpie avatar mashpie commented on August 15, 2024

Hi Carl,

thanks for pointing that out.
It is totally up to you how to register i18n helpers, like told in README:

// register helpers for use in templates
app.helpers({
  __: i18n.__
});

And I agree with your idea to have another default advised in that README.
I'll add a warning on that. And I was thinking of starting a wiki with some more examples, like "usage with jade" :)

Thanks again,
Marcus

from i18n-node.

karussell avatar karussell commented on August 15, 2024

jade won't work when using __ so I'm no using tr: i18n.__

from i18n-node.

juggy avatar juggy commented on August 15, 2024

Please change the readme - that would save 15min for all developer using jade.

from i18n-node.

Fuitad avatar Fuitad commented on August 15, 2024

Or in certain cases, days. pugjs/pug#403

from i18n-node.

mashpie avatar mashpie commented on August 15, 2024

just updated README and started thinking of configurable defaults based on template engine

from i18n-node.

teddychan avatar teddychan commented on August 15, 2024

I am new in node+experss+jade, I found that the express have change the helper
from
app.helpers
to
app.locals

If you can update the readme, it will save lots of time for other new user like me.
^_^

from i18n-node.

mashpie avatar mashpie commented on August 15, 2024

ookay, about to change right now

from i18n-node.

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.