Giter Club home page Giter Club logo

Comments (13)

mashpie avatar mashpie commented on August 15, 2024

keeping on roadmap

from i18n-node.

oliversalzburg avatar oliversalzburg commented on August 15, 2024

Just FYI, I implemented something similar for experimental purposes: https://github.com/oliversalzburg/i18n-node/tree/complex-backend

It uses dot notation (home.title) for structured lookups. To avoid issues with existing translation terms (which might include . in a phrase), this has to be enabled with objectNotation:true in the i18n.configure call.

There's only an implementation for single terms (no plural support). As I said, it was an experiment ;)

from i18n-node.

juancroca avatar juancroca commented on August 15, 2024

+1

from i18n-node.

frekw avatar frekw commented on August 15, 2024

+1!

from i18n-node.

ronny332 avatar ronny332 commented on August 15, 2024

+1

@oliversalzburg your modification works like a charm and as I can see the mustache support is at the package.json, too. please keep this fork updated as long as possible. may be it should be discussed to use you configuration modification for later versions (the naming is very obvious). at least it could be very helpful to add the changes to the documentation of your fork to make the usage easier for people who don't know this thread ;-).
for me the usage of structured language files is very important to keep the clarity. the support at webtranslateit is very useful.

from i18n-node.

oliversalzburg avatar oliversalzburg commented on August 15, 2024

@ronny332 Cool to see that someone has use for it :) We use i18n-node very extensively ourselves and I'd be happy to maintain the fork if anyone is actually using it ;)

from i18n-node.

mashpie avatar mashpie commented on August 15, 2024

please also keep reading notification - this will definitely get merged. I am again stuck in some paid jobs with critical deadlines but will catch up in july... promised :)

from i18n-node.

oliversalzburg avatar oliversalzburg commented on August 15, 2024

Cool. I'll try to complete the feature then and give it a little more thought. Cheers! :)

from i18n-node.

oliversalzburg avatar oliversalzburg commented on August 15, 2024

I've made a couple of changes in my fork. I made sure that pluralization works and made it possible to declare a default string to use for each object literal.

I also added some documentation: https://github.com/oliversalzburg/i18n-node/tree/complex-backend#object-notation

from i18n-node.

juancroca avatar juancroca commented on August 15, 2024

@oliversalzburg could you make a pull request and merge your fork?

from i18n-node.

oliversalzburg avatar oliversalzburg commented on August 15, 2024

@juancroca I created a PR at #114 But it's not up to me to merge :)

I'd appreciate it if you could test the branch regardless of it being merged. Cheers

from i18n-node.

juancroca avatar juancroca commented on August 15, 2024

@oliversalzburg I did and it works wonderfully thanks hope they merge it.

from i18n-node.

mashpie avatar mashpie commented on August 15, 2024

so this is merged, please kindly retest - thanks again to @oliversalzburg

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.