66 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Advice
1
vote
0
replies
56
views
Does CLDR specify language-specific versions of "Label: Text"?
In German and English, we use a colon followed by a space to separate a term from its explanation, or a label from the text that follows. But other languages do it differently. Rather than have a &...
0
votes
0
answers
40
views
Java21: Illegal Rectangle is drawn while painting date time
Above image shows a rectangle which is in between time-value and am, In Java21.0.3, DateTime string has a character NNBSP which is converting to rectangle while painting it.
Following code illustrates ...
1
vote
0
answers
66
views
Intl.Collator sorting in Node, Chrome, Webkit, Firefox and Postgres Collation differences
I am comparing the collation of Intl.Collator in the three browsers, Node and Postgres Collation and realized that the order of most implementations are very different. The only two implementations ...
4
votes
2
answers
190
views
Given a language, how to get its alphabet letters
Is there a programmatic way (or some open-source repository), that given a language (say in 2-leters ISO format), return the letters of the alphabet of that language?
For example:
console.log(...
1
vote
2
answers
905
views
Sorting-friendly language names with Intl.DisplayNames
Is there a way to use Intl.DisplayNames to get sorting-friendly language names where the base language comes first?
const languageNames = new Intl.DisplayNames(['en'], { type: 'language' });
...
1
vote
1
answer
75
views
How to normalize semantically same language tags? [cldr]
I am currently browsing the cldr-common-42 database and I find the use of language tags a bit confusing.
For example, the tag ar-EG is used for translations in Egyptian Arabic. However, when looking ...
1
vote
1
answer
130
views
getDateTimeInstance(): Different Behavior for Different Locale
I am doing date format using this function
// DateFormat required from "sap/ui/core/format/DateFormat"
DateFormat.getDateTimeInstance({ pattern: "yyyy-MM-dd HH:mm" });
The format ...
1
vote
1
answer
404
views
How does the CLDR define its rules for month abbreviations - specifically for en_CA?
The CLDR provides a repository of locale data. In Java, you can access a list of CLDR month abbreviations for a given locale, as follows:
String[] usMonthAbbrevs = new DateFormatSymbols(Locale.US)....
0
votes
1
answer
1k
views
Getting error while trying to install cldr
GET `https://github.com/unicode-cldr/cldr-units-modern/archive/36.0.0.zip`
Whops Error making request.
The above error is coming while trying do :
npm i cldr-data
We have an angular project that is ...
0
votes
0
answers
136
views
Adding a UCA Collation to a Unicode Character Set, why it is doesn't work?
In Unicode Locale Data Markup Language(LDML), since version 24, the element and its sub-elements is deprecated. But the MySQL example still uses deprecated element.
The collation defined when I ...
1
vote
0
answers
257
views
Using specific CLDR version without updating Java version
Java 15 uses version 37 of CLDR(Common Locale Data Repository), as for Java 17 - it uses the latest (v39). Is there any way I can set java to use the latest cldr version without needing to upgrade the ...
6
votes
1
answer
1k
views
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 ...
2
votes
1
answer
715
views
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....
5
votes
0
answers
662
views
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-...
0
votes
0
answers
469
views
How to transliterate into chinese with icu?
I developed a really basic transliterator in java with the icu library. It is working fine for most cases. as transliterationRule I tried e.g "Any-Latin", "Any-Cyrillic", "Any-...