Comments (3)
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.
Ah, I see. I think I can close this issue now.
from locales.
@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)
- Missing Currency Symbols HOT 14
- Missing Duration support HOT 6
- Get decimal, group and minus HOT 2
- Interesting bug
- Timezone ambiguity HOT 1
- Using runtime locale? HOT 3
- Seems like data isn't following the parents correctly HOT 3
- Go 1.10: ru_test.go:932: Errorf call has arguments but no formatting directives HOT 4
- Readme is incorrect for OrdinalPluralRule
- mac os always fail HOT 1
- Can't go get HOT 1
- How to update the CLDR version HOT 2
- can't go get HOT 1
- Update to CLDR v39 HOT 3
- Latest release remains vulnerable to CVE-2020-14040 (fixed by golang.org/x/text v0.3.3). HOT 1
- no translation tag(`validate:"unique"`)
- 12 hour time bug HOT 5
- golang.org/x/text v0.3.6 has a valnerability : GO-2022-1059 HOT 3
- Fix time formatting bug for 12:00 AM
- tqq breaks Windows clone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from locales.