Questions tagged [jquery-globalize]

A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data.

About Globalize

Why globalization?

Each language, and the countries that speak that language, have different expectations when it comes to how numbers (including currency and percentages) and dates should appear. Obviously, each language has different names for the days of the week and the months of the year. But they also have different expectations for the structure of dates, such as what order the day, month and year are in. In number formatting, not only does the character used to delineate number groupings and the decimal portion differ, but the placement of those characters differ as well.

A user using an application should be able to read and write dates and numbers in the format they are accustomed to. This library makes this possible, providing an API to convert user-entered number and date strings - in their own format - into actual numbers and dates, and conversely, to format numbers and dates into that string format.

Even if the application deals only with the English locale, it may still need globalization to format programming language bytes into human-understandable language and vice-versa in an effective and reasonable way. For example, to display something better than "Edited 1 minutes ago".

Why Globalize?

Globalize provides number formatting and parsing, date and time formatting and parsing, currency formatting, message formatting (ICU message format pattern), and plural support.

57 questions
0
votes
1 answer

jQuery Globalize plugin giving an error always in an aspx Webforms page

I have a simple aspx page using jQuery globalize plugin that I created based on the Demo solution from this url: https://weblogs.asp.net/scottgu/jquery-globalization-plugin-from-microsoft. I am using Visual Studio 2013 Pro version with .Net…
Sunil
  • 20,653
  • 28
  • 112
  • 197
0
votes
1 answer

How to get a weekday in Globalize?

In my project, I am using Globalize 1.1.1. It has the globalize for weekday in this path "dates/calendars/gregorian/days", I don't know how to get a specific day. Like I want to get the Globalize for "Thuesday", the field is called "thu". So my…
0
votes
0 answers

MVC5 & JQuery Globalize issue when validating Double (nl-BE)

I have a very basic scenario: In my model: public Double MyNumber { get; set; } (no annotations so far) In my view: @Html.LabelFor(model =>…
0
votes
1 answer

Using Globalize methods within ng-bind

I want to use the the jquery-globalize format function within a ng-bind to format a date value in a $scope field according to the current culture. Something like this:
{{Globalize.format(test.testDate,…
Palmi
  • 2,381
  • 5
  • 28
  • 65
0
votes
1 answer

Consitent date, numbers formatting across C# (backend) and JS (front end)

I am writing a system which shows customer data in front-end, but also allows exporting data via back-end to various file formats. I am using globalize.js and .NET's native Globalization capabilities, but for some languages I am getting differences…
0
votes
2 answers

jQuery call to undefined Globalize.format function

I am trying to get globalize working with the spinner widget in jQuery. My code includes are ordered as such: