Giter Site home page Giter Site logo

Comments (8)

NetanelBasal avatar NetanelBasal commented on May 20, 2024 2

We are working on a powerful CLI tool that one of his options is to analyze your code and base on your translation files will inform you if you are missing certain keys. (In all languages)

from transloco.

NetanelBasal avatar NetanelBasal commented on May 20, 2024 1

Due to the obvious reasons, this cannot be done when using a structural directive. Ok, it's not entirely accurate as we could probably get it done by using Proxies, but we prefer to avoid it for now.

The missing handler functionality is a "nice to have" one. We don't expect applications to be deployed with missing translation keys.

The structural directive comes with this disadvantage, but with many advantages such as DRY, efficiency, the read property, etc.

Regarding your second point, It seems unusual to me that the whole app will be in English, and one section that doesn't have a translation will be in another language. I would call it a bug.

from transloco.

FallenRiteMonk avatar FallenRiteMonk commented on May 20, 2024 1

I understand all the things you say and it also makes sense to say it is a bug if one translation is missing in a language. But with the current moment being, that it is possible that a text is missing or showing some weird key to the user, seems like a but as well.

The CLI tool sounds amazing and I'm looking forward to it.

Do you have any timeline on when its going to be ready for use?

from transloco.

NetanelBasal avatar NetanelBasal commented on May 20, 2024

@shaharkazaz is working on it. I guess something like two weeks.

from transloco.

NetanelBasal avatar NetanelBasal commented on May 20, 2024

I'm closing this issue for now. We'll keep you updated when the tool is ready. Thanks.

from transloco.

Dschuli avatar Dschuli commented on May 20, 2024

Hi,
I could thing of two use cases where a fallback translation on a missing key in one language would be helpful:

  • Similar languages with a few differences (e.g. French & Belgian), where only the deltas would be needed to get translated in one of the translation files

  • Applications where only parts need to be translated - e.g. the end user part needs translation, while the administrator part does not.

So a feature request as above does make sense to me and has my support.
Assuming that loading two language files is not too much of a downside (needs verification) should be a relatively small (optional) addition to the transpiler.

from transloco.

NetanelBasal avatar NetanelBasal commented on May 20, 2024

@Dschuli, we support this feature.

from transloco.

Dschuli avatar Dschuli commented on May 20, 2024

Sorry - I'm a new to Transloco. Just found out in the docs that I just have to set the useFallbackTranslation to use it. Was about to remove my comment ...... too late. damn.
Cudos anyhow for Transloco. So far I really like what I see.....

from transloco.

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.