Code Monkey home page Code Monkey logo

Comments (3)

caridy avatar caridy commented on May 25, 2024

yeah, we discussed this use case in depth, and we came to the conclusion that you can create your own distro of handlebars-intl that can expose multiple things into the global namespace if needed. we strongly believe that translations should not be part of the code, but keys can, in which case, you can stiff just pass the keys around, and use the keys in the template as {{formatMessage valueWithMyKey}} and it will work just find.

If this does not suit you well, for whatever reason, let us know and we will revisit the issue. We do have a better infrastructure today, which will allow us to expose those internals form the bundle, but we really really believe this is not needed.

from handlebars-intl.

justinmc avatar justinmc commented on May 25, 2024

That makes sense and I understand why you guys went this way. I'm going to go with your approach and see how it works out. If I run into any problems or have any suggestions for doing this, I'll post back here. Thanks.

from handlebars-intl.

caridy avatar caridy commented on May 25, 2024

@justinmc awesome, we did discuss this request yesterday, and @ericf has some other ideas that might workout well and will solve this particular use case in a very organic way, but it will take time (not a priority at this point).

from handlebars-intl.

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.