Reforged has sub folders like "_Locales/deDE.w3mod/" which are used for files with higher priority if the language is configured in the game.
MPQs have locale properties per file. You should be allowed to specify the locale with "-locale deDe" or something and then Warsmash should load the correct files.
The game itself gets its locales from the data sources so there is no need for such option for the game I guess.
There could be an enum like this:
package com.etheller.warsmash.units;
public enum Locale {
DEFAULT(""),
EN_US("enUS.w3mod"),
DE_DE("deDE.w3mod");
public final String directory;
Locale(final String directory) {
this.directory = directory;
}
}
Reforged has sub folders like "_Locales/deDE.w3mod/" which are used for files with higher priority if the language is configured in the game.
MPQs have locale properties per file. You should be allowed to specify the locale with "-locale deDe" or something and then Warsmash should load the correct files.
The game itself gets its locales from the data sources so there is no need for such option for the game I guess.
There could be an enum like this: