Class i18NextController

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @RestController
    public class i18NextController
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    • Constructor Detail

      • i18NextController

        public i18NextController()
    • Method Detail

      • translationHandler

        @CrossOrigin(origins="*",
                     allowCredentials="false")
        @GetMapping("/api/v1/locales/{lang}")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> translationHandler​(@PathVariable("lang")
                                                                             java.lang.String lang)
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean