Git Product home page Git Product logo

Comments (3)

leonelquinteros avatar leonelquinteros commented on May 21, 2024

Hey @m-horky, this sounds like a good improvement.

So, how would the implementation look like? Would you extend the support for this syntax (en:es) in the Config.language field? So current users don't have to modify anything, but after this change, if anyone wants to add the : option to it, it would work? Or maybe a different field?
I prefer the former, but gettext docs doesn't mention anything about the en_EN syntax support for that env var, so it seems you can't do something like en_EN:en_US:es_ES:es_AR:br, or at least it's not clear how would it work?

I'm up to support this kind of definitions, they seem appropriate, unless there are specific docs in gettext suggesting otherwise.

What do you think?

from gotext.

m-horky avatar m-horky commented on May 21, 2024

I started writing my ideas here, but then I went to check whether they were possible to do and I managed to create a proof of concept. I'm not totally happy with it, especially the functionality of Locale.GetActualLanguage() may be better of somewhere else, but I'd call it a start.

I opened draft PR #73

from gotext.

m-horky avatar m-horky commented on May 21, 2024

Hi @leonelquinteros, when you have the time, could you look at the mentioned PR and do some fast review? It is still draft as there surely are things to improve, but I'd like to know if its ideas were something that would fit into the library.

from gotext.

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.