Improve router bundle (#6269)

* router

* optimise
This commit is contained in:
Ilya246
2025-02-06 20:51:32 +00:00
committed by GitHub
parent 4a0bf40431
commit ba622cb76b

View File

@@ -494,7 +494,11 @@ public class Vars implements Loadable{
//router
if(locale.toString().equals("router")){
bundle.debug("router");
I18NBundle defBundle = I18NBundle.createBundle(Core.files.internal("bundles/bundle"));
String router = Character.toString(Iconc.blockRouter);
for(String s : bundle.getKeys()){
bundle.getProperties().put(s, Strings.stripColors(defBundle.get(s)).replaceAll("\\S", router));
}
}
}
}