Intellij doesn't recognize resource bundles

1.4k Views Asked by At

IntelliJ comes with a resource bundle editor but I can't use it.

I have this file structure in my project but the "resources" folder doesn't seem to be recognized as a "resource bundle". What's wrong?

Resource files in my project

1

There are 1 best solutions below

0
On

Your properties files must follow specific naming conventions to be recognized as resource bundles. Look at this JavaDoc for more details.

TLDR: Rename your files to languages_en.properties, languages_es.properties and so on it should work (notice the underscore instead of dash).