use of net.geoprism.registry.localization.DefaultLocaleView in project geoprism-registry by terraframe.
the class RegistryService method getLocales.
@Request(RequestType.SESSION)
public JsonArray getLocales(String sessionId) {
Set<SupportedLocaleIF> locales = LocalizationFacade.getSupportedLocales();
JsonArray array = new JsonArray();
array.add(new DefaultLocaleView().toJson());
for (SupportedLocaleIF locale : locales) {
array.add(LocaleView.fromSupportedLocale(locale).toJson());
}
return array;
}
Aggregations