Comments (3)
Wouldn't allowing the user to customize the actual tokens break interoperability between plugins? I'm all for using an existing format, but I don't think it should be customizable.
from globalize.
I was thinking more along the lines of a mapping between whatever formatting string is passed and the one used here. Something such that you could pass these in as the formatting string into formatDate(value, format, culture)
and it would know how to parse the formatting string. I wouldn't want to have a second set of culture-coded formats.
I want a culturally ignorant mode where I just set it up so that it uses whatever settings the server is using to render the html. Sort of a server defined custom culture I guess. Perhaps I just need a utility to map the server's format strings over to a culture once.
It could be that, for instance, the Django locales map to these cultures and we can simply assume that a date output by the ja-JP
culture in jquery.global will parse correctly by the ja-JP
locale in Django when submitted as a form field. That's a bit of a leap of faith though, and a whole lot of work to double-check.
from globalize.
A JS date library can't accomodate every serverside library, so eventually there has to be some kind of mapping.
from globalize.
Related Issues (20)
- Webpack error: E_MISSING_MESSAGE_BUNDLE: Missing message bundle for locale `en` HOT 1
- Bug: Globalize number formatter is incorrect for numeric digits in supplemental plane HOT 4
- Migrate from JSF CLA bot to OpenJS Foundation EasyCLA HOT 2
- numberParser not returning the expected value for locale "sh" or serbian language HOT 1
- api.globalizejs.com status? HOT 1
- `"short"` date skeleton parses single-digit years HOT 1
- Unit Formatter Returning Internal Error with CLDR v40.0.0 HOT 5
- Force positive sign HOT 1
- Unit formatting megabyte in Polish short form failed because [email protected] has inconsistent data HOT 1
- Cannot get timezone names or the abbreviations from globalizer
- unitFormatter throw exception for locale "pl" with cldr-data 35 HOT 3
- Extend number format to use string instead of number HOT 4
- skeleton: "Bhm" is not supported HOT 1
- parseDate sets the time forward by an hour for non DST date time HOT 2
- Potential security issue HOT 1
- index.html
- Percent format and parsing HOT 2
- Module not found: Error: Cannot resolve module 'cldr' - in cypress tests
- Active development status check ???? HOT 1
- new Func() in globalize dist folder 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 globalize.