Giter Club home page Giter Club logo

Comments (6)

cliftonc avatar cliftonc commented on July 20, 2024

A rapid sweep through all of the existing modules is required to enable the static strings (mostly flash messages) to use the req.t function.

from calipso.

dennishall avatar dennishall commented on July 20, 2024

Although i18n is nice, realistically, most sites will not need it. Whatever approach is taken should take a least-overhead approach so that most sites will not be encumbered with needless function calls.

from calipso.

cliftonc avatar cliftonc commented on July 20, 2024

Agree, though I think the Drupal model of just wrapping static strings in t() functions is neat and simple (better than the java way of coming up with msg labels for everything), and if you don't care then you don't use it - its just that your site (or module) can then never be translated.

from calipso.

jzacsh avatar jzacsh commented on July 20, 2024

@cliftonc, grepping through the code-base, it looks like all text passed to flash() is using req.t()

  • Is there anywhere else I should look?

from calipso.

cliftonc avatar cliftonc commented on July 20, 2024

No, I think largely that most things should be wrapped now, I just need to get some documentation written that explains it, and improve the process for creating a base language file for translation ...

from calipso.

cliftonc avatar cliftonc commented on July 20, 2024

I noticed this today: mashpie/i18n-node, will re-write translation library to use this.

from calipso.

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.