I tried a lot, but was unable to find a solution.
|
|--src/main/resouces
|
|-updatePropertiesFile.java
|-xyz_en_US.properties
|-xyz_e
Every Java IDE out there has a replace-in-path function. Sublime Text, VS Code and Atom almost certainly have that as well. IntelliJ's particularly good. No reason to even write Java code to do this. Otherwise, it's as simple as:
File[] files = new File("src/main/resources").listFiles();
for (File file in files) {
if (file.getName().endsWith("properties")) {
//Load and change...
}
}