We're updating the issue view to help you get more done. 

Proposal to expose supported locale names via ULocale API.

Description

I would like to propose a standard way of obtaining the supported locale names on the current system, via a public API. That is to say, expose information available from a com.ibm.icu.impl class in a part of the stable API so that it can be queried.

This functionality is available in ICU4C: http://www.icu-project.org/apiref/icu4c/uloc_8h.html#a75df9657cc46472afa94e4cbd4a1529b

The following snippet, if added to the ULocale class would achieve the desired functionality.

1 2 3 4 5 6 7 #!java /** * Return a set of locale names which are supported by the available resources. */ public static Set<String> getAvailableLocaleNames() { return ICUResourceBundle.getAvailableLocaleNameSet(); }

Environment

Status

Assignee

Markus Scherer

Reporter

TracBot

Time Needed

Hours

tracCc

ccornelius,roubert,yoshito

tracCreated

Sep 15, 2015, 8:20 PM

tracOwner

markus

tracProject

ICU4J

tracReporter

rayhaan@1d5920f4b44b27a8

tracStatus

design

tracWeeks

0.2

Components

Fix versions

Priority

assess