quarkus

How can I internationalize my REST service with Quarkus?


When building REST services with Spring or Micronaut, I've a MessageSource to internationalize my responses.

But I did not find anything comparable in Quarkus. I created a REST service and want to return a message based on the user's / browsers language. How can I achieve this? Is there anything like a MessageSource?

public String i18n() {
   return ????.getMessage('MY_KEY', MY_LOCALE);
}

Am I missing something here? Has Quarkus a completely different way for this? Or is it just not possible?

Thanks for your help, Daniel


Solution

  • Quarkus does not provide any out of the box support for this.

    If you would like to have something similar implemented in Quarkus, please open a GitHub issue asking for the feature