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
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?
Comments
Post a Comment