Git Product home page Git Product logo

Comments (9)

jmaupetit avatar jmaupetit commented on May 24, 2024 1

IMO we should use front-end tools for front-end purpose. Particularly, if we decide to distribute front-end applications as NPM packages.

from richie.

jmaupetit avatar jmaupetit commented on May 24, 2024

Do you have any third-party app in mind to achieve this?

from richie.

mbenadda avatar mbenadda commented on May 24, 2024

Translation management

I think SaaS is the way to go.

Transifex seems like the most established choice if we're eligible for Transifex for Open Source.
We can also consider Crowdin. I'm familiar with Smartling but their pricing is opaque, they don't seem to have support open source, and their workflows are more geared towards marketing sites translated by third-parties than actual product string management.

Tooling

It seems there's nothing as simple as I would have hoped (and what we used to have in Angular 1) but there seems to be some adequate tools.

The most promising one is React-intl along with its very own parser.

🎉

  • takes care of our translations needs
  • handles dates & times (so we could get rid of moment?)
  • uses standards

💩

  • needs string IDs (a hassle)
  • not sure there are active maintainers anymore

It would also require us to use babel to get the benefit of its parser plugin. This does complicate the build process. However, string extraction is actually one of the painful parts of handling i18n so I think it could be worth it.
As a side benefit we could get to use babel's polyfilling.

from richie.

mbenadda avatar mbenadda commented on May 24, 2024

Thought on this topic @sampaccoud @jmaupetit ?

from richie.

sveetch avatar sveetch commented on May 24, 2024

Hi, for online translation tool there is also:

from richie.

sampaccoud avatar sampaccoud commented on May 24, 2024

I'm not qualified but React-intl seems to be the default choice for i18n with React.
Maybe we have more time to discuss the translation tool.

from richie.

mbenadda avatar mbenadda commented on May 24, 2024

I will handle this as soon as #253 is done. I made a quick POC and string extraction is working fine with the babel-plugin extractor.

from richie.

sveetch avatar sveetch commented on May 24, 2024

When you was talking about babel i didn't catch you was talking of babel compiler. In fact i was thinking about python-babel.

I don't know if a Python solution would nicely integrate in your processes but just want to say that python-babel has some React support through JSX message extraction. I can help you with it if needed.

from richie.

sampaccoud avatar sampaccoud commented on May 24, 2024

This issue was solved in PR #566

from richie.

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.