globalize
globalize copied to clipboard
A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
To reproduce the issue, call: `Globalize('en').formatNumber(0.145, {style: 'percent', minimumFractionDigits: 0, maximumFractionDigits: 0}) ` Expected result: “15%” Actual result: “14%” The issue can be reproduced in Chrome, IE11, Edge, Mozilla Firefox. ...
use the script below to load CLDR: $.when( $.get('/Scripts/cldr/main/fr/ca-gregorian.json', function( data ) { **console.log(data);** }), $.get('/Scripts/cldr/main/fr/numbers.json', function( data ) { console.log(data); }), $.get('/Scripts/cldr/main/fr/timeZoneNames.json', function( data ) { console.log(data); }), $.get('/Scripts/cldr/supplemental/likelySubtags.json',...
I am in the phase of thrashing around in an attempt to get things to do something...anything. So far, I am not having a lot of luck. **If I initialize...
How does one use Globalize and the DateTimePicker from react-widgets with [create-react-app](https://github.com/facebook/create-react-app)? From an empty project: ``` npx create-react-app ``` my package.json ``` { "name": "test-globalize", "version": "0.1.0", "private": true,...
WIP PR #447 --- CLDR has data for a variety of different calendars (listed in the table below). Globalize 0.x supported some non-gregorian calendars. But, Globalize 1.x hasn't migrated them...
Globalize("de").parseNumber("1.343423E+7") returns => NaN parseFloat("1.343423E+7") gets => 13434230 What do i have to do, to get the number value
I'm running into some issues with the runtime parameter hashing of `globalize` due to embedded Unicode control characters being escaped during calls to `JSON.stringify`. This is happening with Left-to-right and...
Hi, I have Language option in my project with localization. if I use type="number" in Turkish Or German I get this error that "Please enter a number". Number is 1,5(with...
The following code works well. `const Globalize = require('globalize'); Globalize.formatMessage('my.path');` But the following code did not work. That is to say Globalize.formatMessage() only access a string as parameter,if passing a...
Currently, the unit formatter uses a [hard-coded list of unit categories](https://github.com/globalizejs/globalize/blob/master/src/unit/categories.js). This list is getting longer by CLDR version. Currently (v33), the following entries are missing: "concentr", "consumption", "electric", "energy",...