cattechnologies / datejs

Automatically exported from code.google.com/p/datejs
Other
0 stars 0 forks source link

configure a cultureinfo string dynamically at runtime #127

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Great work, quality code. 

I want to be able to use this library but configure a cultureinfo string
dynamically at runtime, ex, "en-GB" for UK formatting/displaying.

BUT, i realized that you seperated the cultures into javascript specific files 
that
must be loaded in at runtime. I wanted a a client side solution. I will know the
country codes from the server using a ping/xhr call.

Any way to do this?

Original issue reported on code.google.com by JaySmith...@gmail.com on 19 Jul 2011 at 3:10

GoogleCodeExporter commented 8 years ago
I'm in the same boat, any solution?

Original comment by Olena.Vi...@gmail.com on 20 Nov 2012 at 3:56

GoogleCodeExporter commented 8 years ago
Partially implemented on my current fork:

https://github.com/abritinthebay/datejs/

While the same system is currently in place the CultureInfo is now build at 
runtime from CultureStrings. There are still some CultureInfo references that 
are hard coded right now so I'll be going through and removing those. When that 
is done this will be completely doable with any ajax call or update you like. 

Follow the progress at this issues companion issue on github here: 
https://github.com/abritinthebay/datejs/issues/127

Original comment by darkcr...@gmail.com on 15 Sep 2013 at 7:41

GoogleCodeExporter commented 8 years ago
fixed in the current build of my fork: https://github.com/abritinthebay/datejs/

Original comment by darkcr...@gmail.com on 16 Sep 2013 at 12:18