@ GET @ Produces ( MediaType . APPLICATION_JSON ) @ RequiresPermissions ( I18nPermissions . LOCALE_READ ) public Response getSupportedLocales ( ) { List < LocaleRepresentation > locales = supportedLocaleFinder . findSupportedLocales ( ) ; if ( ! locales . isEmpty ( ) ) { return Response . ok ( locales ) . build ( ) ; } return Response . noContent ( ) . build ( ) ; }
Returns all the locales supported .