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