Giter Club home page Giter Club logo

Comments (4)

mashpie avatar mashpie commented on July 16, 2024

yes, both...

I think it would be a nice and easy to add feature to add new strings to all files. So I leave this issue as a note to myself :)
And, there is a method by using webtranslate it: they are able to merge and update on multiple files at once.

from i18n-node.

jnovack avatar jnovack commented on July 16, 2024

Is there a method for getting ALL the i18n translations within your files? I have some functions which rarely get called, and all over the place. i18n only updates the file when the code is called. How can I go through all the files (with the exception of grep) to find all my i18n instances to build my en.json?

from i18n-node.

mashpie avatar mashpie commented on July 16, 2024

currently not in api. but should be pretty easy to implement. any more specs? You need a dump of all phrases, right?

from i18n-node.

jnovack avatar jnovack commented on July 16, 2024

Thank you, yes. I suppose an interface which dumps all the phrases would be very helpful. I imagine I would store in my project's contrib/ directory.

var i18n = require("i18n");

i18n.extract('path/');  // Traverse path for all .js files.
i18n.extract('path/to/file.js');   // Process single file.

This way I can run contrib/i18n.js before my final commit to have all the phrasing.

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.