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
11
votes
1 answer

Where is the full list of exemplar cities for English in the CLDR time zone xml?

There are a couple exemplar cities and metazone names in core/common/main/en.xml from CLDR, however, the full list is not included in en.xml like there is in all the other languages. Why is this and where do I find the entire list of exemplar cities…
user224579
  • 427
  • 3
  • 14
9
votes
1 answer

Get CLDR information from Intl extension in php

I used Zend_Locale before but it's seems PHP intl extension have cldr information. I need to get some info like get available countries for each language? for example en has US, UK, GB and fa has IR and AF and more data available on CLDR…
6
votes
1 answer

Idiomatic way to remove country code from currency format?

Somewhere between Java 11 and 17 currency formatting changed to where this: NumberFormat.getCurrencyInstance(Locale.CANADA_FRENCH).format(100.00) would print 100,00 $ CA instead of 100,00 $. Is there a better way than this to remove the country…
O.m
  • 75
  • 4
6
votes
4 answers

install package on windows ERROR: compilation failed for package 'cldr'

url <- "http://cran.us.r-project.org/src/contrib/Archive/cldr/cldr_1.1.0.tar.gz" pkgFile<-"cldr_1.1.0.tar.gz" download.file(url = url, destfile = pkgFile) Console >trying URL…
Fiona_Wang
  • 163
  • 1
  • 2
  • 12
6
votes
4 answers

Is there a reputable source that provides mappings of UN/LOCODEs to Olsen Timezones?

I've been researching CLDR and IANA in order to find a centralized mapping of UN/LOCODEs to Olsen Timezones. Ideally I would like to have for example: +--------------+--------------------+ |un_locode |timezone …
5
votes
0 answers

Bug or Feature? Java 16 DateTimeFormatter issue with parsing localized month name

I'm using the en_GB locale, but a similar issue may also affect other en_XX locales. Under Java 15 the following code works: LocalDate.parse("10-Sep-17", DateTimeFormatter.ofPattern("dd-MMM-yy", Locale.UK)); Under Java 16 it gives:…
Tim Barrett
  • 101
  • 1
  • 5
5
votes
2 answers

Explicit Plural string using iOS Stringsdict files

I am getting started learning iOS Stringsdict files and found some existing code on a project which used the following syntax: zero You no message. As per the CLDR, zero is an invalid plural in English and we expect to…
5
votes
0 answers

What's the best way to get full ICU + CLDR support in React Native?

Are there any OSS tools that provide full ICU-level support for CLDR data in react native? We're currently using react-native-i18n and I just don't know where the data comes from. What I'm most interested in right now is formatting numbers and…
garmccor
  • 51
  • 2
5
votes
1 answer

JS Globalize - load json cldr

I have a problem with the latest version of globalize.js. To work with it I had to load the cldr modules and language definitions. Now I had this example from the globalize docs: // loading needed…
Steffen Mangold
  • 1,184
  • 1
  • 20
  • 39
4
votes
2 answers

How to use unsupported Locale in Java 11 and numbers in String.format()

How can I use an unsupported Locale (eg. ar-US) in JAVA 11 when I output a number via String.format()? In Java 8 this worked just fine (try jdoodle, select JDK 1.8.0_66): Locale locale =…
wittich
  • 2,079
  • 2
  • 27
  • 50
4
votes
0 answers

Globalize.js with MVC - missing locale

I'm trying to get the Globalize.js library to work under an ASP.NET MVC 5 application + unobstrusive validation. Specifically, I have most of the libraries and requirements working as per the post https://stackoverflow.com/a/25289555/1838819.…
DiskJunky
  • 4,750
  • 3
  • 37
  • 66
3
votes
1 answer

In ICU, is it possible to use custom plural rules instead of CLDR rules

So I want to use a different plural rule than what is in the CLDR. I'm using ICU through PHP intl extension, and say I have something like this: $msg = new MessageFormatter('ar', '{0,plural, zero {zero-ar}' . 'one…
Basel Shishani
  • 7,735
  • 6
  • 50
  • 67
3
votes
2 answers

Bug hunt: CLDR 30 JSON data no longer has currencySpacing information

We've been using jquery/globalize in our web application with the CLDR 29 data in JSON format without any problems. Just recently, Unicode released CLDR 30 (and shortly after, version 30.0.1 with some fixes). When we upgrade to the CLDR 30(.0.1)…
sammy34
  • 5,312
  • 5
  • 29
  • 42
3
votes
0 answers

Configure globalize.js to use CLDR for validating decimal numbers

I need to validate decimal numbers in the Serbian culture (a decimal separator is comma instead of a dot). I am looking on the internet to find a solution and most posts suggest to use globalize.js. But I can set it up to work for me. Here is…
Igor
  • 381
  • 3
  • 17
3
votes
1 answer

Globalize and cldr with requirejs

I am trying to Globalize. Below is my project configuration at present: At present I am not using the node environment, specifically not using either of npm or bower, rather using NuGet as package manager. Module system: AMD On application startup,…
1
2 3 4 5