Provides compatibility with more locales then "en-us".
It takes the value of our config.yml Language: en-us and converts it into a Locale class that is referenced from Locale-API.
If there is no valid locale in the locales-folder, it takes the default en-us (assuming this one exists). If the default is not existing, it uses the formatted version of the material enum as we used before.
I'll still put it on draft since I'd like to implement a way how locales are automatically read from inside of the jar, or being automaticly generated if needed.
Provides compatibility with more locales then "en-us". It takes the value of our config.yml
Language: en-us
and converts it into a Locale class that is referenced from Locale-API.If there is no valid locale in the
locales
-folder, it takes the defaulten-us
(assuming this one exists). If the default is not existing, it uses the formatted version of the material enum as we used before.I'll still put it on draft since I'd like to implement a way how locales are automatically read from inside of the jar, or being automaticly generated if needed.