Giter VIP home page Giter VIP logo

Comments (3)

deankarn avatar deankarn commented on August 12, 2024

Hey @nikolay-turpitko

I will try and see if the alt date formats are in the CLDR data somewhere. Once the need for context comes in this library is only designed for the l10n stuff really and that's handles by this library's sister project https://github.com/go-playground/universal-translator which provides the i18n stuff to the end user like custom translations...

as for customising the locale, that's why each returns an interface rather than pointer to a struct so you can create your own, copy-paste-modify, or embed in your own object/struct and override a function and because it complies with the interface will still work in it's sister project just fine...just a different way to customized, but by doing it this way could also create your own reusable locale.

I could allow settings to be set etc..but this is all generated code so if I allowed that then I would have to parse the format every time instead of having the pre-parsed and most efficient code..besides just keeping it simple to use and implement is definitely a priority

from locales.

nikolay-turpitko avatar nikolay-turpitko commented on August 12, 2024

@joeybloggs

Ah, I see. I think I can close this issue now.

from locales.

deankarn avatar deankarn commented on August 12, 2024

@nikolay-turpitko no worries

if you need an example of how it all comes together in a project I have a prototype here you can take a look at; I will be trying to make a framework to hide most of this behind but think you will get how and why it's all split out and should be used 😄

from locales.

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.