Example #1
0
 @RequestMapping(value = "/events-all-languages", method = GET)
 public List<ContentLanguage> getAllLanguages() {
   return i18nManager.getAvailableLanguages();
 }
Example #2
0
 @RequestMapping(value = "/events-supported-languages", method = GET)
 public List<ContentLanguage> getSupportedLanguages() {
   return i18nManager.getSupportedLanguages();
 }
Example #3
0
 @RequestMapping(value = "/events/{eventName}/languages", method = GET)
 public List<ContentLanguage> getAvailableLocales(@PathVariable("eventName") String eventName) {
   return i18nManager.getEventLanguages(eventName);
 }