Questions tagged [cldr]

The Unicode Common Locale Data Repository, a repository of data for localization including calendar and collation.

The CLDR (Unicode Common Locale Data Repository) is a repository of data on various aspects of localisation including calendars and collation.

62 questions
3
votes
1 answer

How do I include the CLDR.js library in my Ember application?

I'm building an Ember application which started using the ember-skeleton (which means I'm using Rake Pipeline as my build toolchain). I'm using ember-i18n, and that constantly throws warnings about not having the CLDR.pluralForm function. I've added…
pjmorse
  • 9,204
  • 9
  • 54
  • 124
2
votes
1 answer

Write TypeScript declaration file for callable module

The cldr-data package is defined something like: function cldrData(path) { // ... } cldrData.all = function() { // ... } cldrData.entireMainFor = function(locale/*, ...*/) { // ... } cldrData.entireSupplemental = function() { //…
Carl Patenaude Poulin
  • 6,238
  • 5
  • 24
  • 46
2
votes
0 answers

IANA time zone ID to BCP-47 using ICU4C

Given an IANA time zone ID, such as "America/New_York" or "Europe/Lisbon", how can I obtain the corresponding BCP-47 time zone ID, such as "usnyc" or "ptlis", using ICU4C? These values are required to generate Unicode BCP-47 Locale IDs with…
kpozin
  • 25,691
  • 19
  • 57
  • 76
2
votes
2 answers

ICU4C equivalent of LocaleMatcher

Does ICU4C have any equivalent to ICU4J's LocaleMatcher, for finding the best match between an application's set of supported locales and a user's list of preferred locales?
kpozin
  • 25,691
  • 19
  • 57
  • 76
2
votes
0 answers

How to get globalization for jquery validation in MVC 5

I use VS 2017 and I have an MVC 5 project. I used NuGet to install jQuery.Validation.Globalize. Which also installed as dependencies: jquery-globalize (>= 1.0.0) cldrjs I included the following javascript files: "~/Scripts/cldr.js", …
Nicolas
  • 6,289
  • 4
  • 36
  • 51
2
votes
1 answer

How to submit data in CLDR

My name is Nahid Hossain. A Software Engineer from Bangladesh. We want to develop CLDR of Bengali language for Bangladesh. We are facing difficulties to figure how to submit our CLDR of Bengali language for Bangladesh. As far as I understand , I…
2
votes
1 answer

How to use Globalize with Angular CLI

How do I load the Globalize library along with the CLDR data in an Angular app generated from angular cli. When I perform the following steps: npm install globalize cldr-data import {Globalize} from 'globalize'; in app.component.ts ng serve I get…
takeradi
  • 3,661
  • 7
  • 29
  • 53
2
votes
1 answer

crazy problems with globalize.js

Ive spent the best part of a day just trying to get date validation to work with globalize.js. its proving to be a nightmare for something that should be quite simple. After much searching I found that i needed these files included and in a…
proteus
  • 545
  • 2
  • 12
  • 36
2
votes
1 answer

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? Just for example:
2
votes
1 answer

CLDR/Globalize: slice JSON array: Uncaught TypeError: Cannot read property '0' of undefined

We are trying to use cldr/globalize; an exception is triggered while loading 13 CLDR' json files (like likelySubtags.json). It seems that the size of the 'arguments' is 14 (instead of 13) which triggers the exception "Uncaught TypeError: Cannot…
Abdelkrim
  • 2,048
  • 5
  • 30
  • 44
2
votes
1 answer

npm install globalize - E_MISSING_BUNDLE

I'm sure this is a silly configuration problem but I cannot seem to figure it out. I'm using the globalize package within nodejs installed this way: npm install --save globalize cldr-data Which looking at my package.json installed: "globalize":…
darrin
  • 749
  • 5
  • 23
2
votes
1 answer

DateTime::Format::CLDR issues parsing long Czech dates

I am trying to parse Czech dates using CLDR long format as specified by DateTime::Locale::cs_CZ. I see no obvious reason why it should fail. my $locale2 = DateTime::Locale->load('cs_CZ'); my $cldr5 = DateTime::Format::CLDR->new( pattern =>…
wilx
  • 17,697
  • 6
  • 59
  • 114
2
votes
1 answer

mapping joda timezone to windows timezone (for example in C#)

I'm having trouble mapping joda time zones to windows time zones. I use the xml of CLDR mappings, and it works for most of the translations. nevertheless, it doesn't have values for several joda time zones: America/Indiana/Indianapolis, BST,…
user1028741
  • 2,745
  • 6
  • 34
  • 68
2
votes
1 answer

Which Japanese sorting / collation orders are supported by ICU / CLDR / UCA?

The Japanese language, I believe, has more than one sort order equivalent to alphabetical order in English. I believe there's at least one based on pronunciation (I think the kana have used two orders historically) and one based on radical + stroke…
hippietrail
  • 15,848
  • 18
  • 99
  • 158