43 questions
0
votes
0
answers
43
views
How do I stop a dynamic number and type of statements from executing until a series of ajax calls completes?
I have a MVC model website using C# that is created using a series of files. I am trying to use globalize.js for translating dates and date formats. Doing so requires me to load cldr data. I was doing ...
2
votes
1
answer
674
views
How to validate ICU messages syntax using Globalizejs?
There are a few i18n libraries available in JavaScript and one of the most complete ones seems to be GlobalizeJs.
While testing it, I found a problem when I send invalid ICU messages. It seems to ...
0
votes
0
answers
166
views
Angular 8 - Globalize is not defined after ng build
I am using Angular CLI 8.1.1 and JqWidgets 8.*
When serve the application using ng serve everything works fine.
Although when run with ng build I get an error Globalize is not defined
Can someone ...
3
votes
2
answers
1k
views
Globalize.js - cldr.once is not a function
I'm using Globalize.js script in my app to work with locales. All works well, except currency formating. When I use Globalize.currencyFormatter(currency), I'm getting this error
TypeError: cldr.once ...
0
votes
1
answer
651
views
globalize numbers and currency: en-IN/INR format not working as expected
I have two methods i'm trying to write using globalize. One to format Numbers and one to format Currency.
function currencyFormatter(value, locale, fieldDefinition) {
var formatter = Globalize(...
4
votes
0
answers
397
views
How to get the 3 digit currency code from locale Globalize
I'm trying to use globalize 1.x in my angular project.I want to know whether there is any way to get the 3 digit currency code from the locale .For example if the locale is en-us ,how can i get USD ...
0
votes
2
answers
6k
views
Cldr issue with globalize when implementing in angular cli
Im trying to create a angular 4 project with L10n support .I'm trying to use Globalize library in my project .But im getting a lot of error when compling my project.I dont want to use globalize-...
1
vote
1
answer
475
views
Getting error globalize is undefined Typescript
I'm working on a angular 4 application which support L10n. Im using globalize. reference.Appcomponent.ts is as follows
import { Component,OnInit } from '@angular/core';
import globalize from "...
1
vote
1
answer
577
views
MVc 5 - validation german date with unobtrusiv js - a simple approach
The question: How get the unobtrusiv validation of a german date running in MVC?
Because I can't find a running example of using globalize 1.x with MVC 5 to validate a german date I needed two days ...
1
vote
1
answer
227
views
Globalize Version 1.2.3 - root/fallback Culture
i'm using the current release version 1.2.3 and would like to use the functionality described here:
https://github.com/globalizejs/globalize/blob/6d3a5a57c56fd0afb93e20340905a435d1650341/doc/api/...
0
votes
1
answer
1k
views
MVC 5 - can not get globalisation running
I want to add globalization because the site asks the user for a date. And my german user want to type "31.12.1966" and not "1966-12-31".
So I add the nuget-Packages
"jQuery.Validation.Globalize" and
...
1
vote
1
answer
216
views
ExpressJS app.locals.title gives: Can't set headers after they are sent
I am new to ExpressJS, so I wanted to set a simple string value, I could translate.
So I tried out globalize-express and set the app title like this:
app.use(function (req, res, next) {
console....
1
vote
2
answers
981
views
format datetime specific timezone
I am using globalize to format datetime per locale.
var Globalize = require('globalize');
var formatter = Globalize('en-US').dateFormatter();
formatter(new Date());
It works great but I was wondering ...
2
votes
1
answer
3k
views
SlikelySubtags.json not loaded
I use cldr and globalize libaries. And I read in docs that I need to load likelySubtags.json.
Maybe, it is due to my poor English but I can't get where I need to get these files? Or how to generate?
...
-3
votes
1
answer
1k
views
How to parse a date in the dd.mm.yyyy format?
I try to parse a date in the dd.mm.yyyyformat: Globalize.parseDate(value, "dd.MM.yyyy", "en"); but globalize crashes with errors:
Uncaught Error: E_INVALID_PAR_TYPE: Invalid options parameter
(...