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(); }

Status

Assignee

Markus Scherer

Reporter

TracBot

Reviewer

None

Time Needed

Hours

Start date

None

Components

Fix versions

Priority

assess