Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Will get null message when locale is not default even if there is default messages.properties #89

Open
dongxuwang opened this issue Sep 19, 2019 · 2 comments

Comments

@dongxuwang
Copy link

For instance, if the locale is en_US and only messages.properties is offered, null will be rendered like this:

#classpath:messages.properties
some_code: Something

Error result:

{
  "errors": [
    {
      "code": "some_code",
      "message": "null"
    }
  ]
}

The result should grab the default message when its locale is not found.

@alimate
Copy link
Owner

alimate commented Sep 22, 2019

Hello @dongxuwang. Hope you're doing well.
Unfortunately, I couldn't manage to reproduce the problem you described. I would be grateful if you state the exact steps to reproduce the bug or even provide a sample project.

Thanks for your time and contribution 🙏

@dongxuwang
Copy link
Author

The issue is wired. It was back to normal after I added a message_en_US.properties and then deleted it.
I'll try to reproduce it and continue to focus on this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants