internationalization - Localize javascript arithmetic operators -


i have multilingual application "language" localized in terms of page content. forms using simple arithmetic calculate field values based upon user input.

so 1.1*2 = 2.2 works in romanian fraction written 1,1 calculation becomes 1,1*2 = 2,2 fails nan.

so do?

update:

thousands separators issue. @ yui-library

yui data types

which has both parse , format functionality. seems "easiest" in terms of specifying separators i'm "only" looking @ 4 different languages. though poses issue https since application serving https , yahoo cdn not support have self host , roll own bundling.

would unformat function of library numeral.js work?

http://numeraljs.com/


Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -