Code Monkey home page Code Monkey logo

Comments (3)

lukasgeiter avatar lukasgeiter commented on September 3, 2024 1

I agree with that sentiment and I'll try to implement this in the coming days. It shouldn't be too difficult...

I have a question though, in your example, how would you actually retrieve the string containing ${startsOn} in the gettext function during execution? Because normally you'd just get the string after interpolation. So instead of Starts on ${startsOn} you'd get Starts on <value-of-startsOn>.

from gettext-extractor.

lukasgeiter avatar lukasgeiter commented on September 3, 2024 1

Support for template literals is now released under v3.3.0

from gettext-extractor.

mbenadda avatar mbenadda commented on September 3, 2024

Hey Lukas,

You are correct, my suggested use case does not work as the string would indeed be impossible to retrieve. I planned to use node-gettext to retrieve strings and hoped to use template strings as node-gettext does not provide this functionality.

I'll just use lodash's template function instead. I guess you could still support template literals for completeness' sake but other users might then try the same broken approach I suggested.

Anyway, thanks for your answer and thanks for maintaining this package!

from gettext-extractor.

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.