Skip to content

v1.13.0.285 Translator Upgrade

Choose a tag to compare

@Valorless Valorless released this 06 Apr 22:37
· 72 commits to main since this release

The Translator function no longer contains language files needed to translate,
but will instead download the desired language from github, for the specific version of the server.
This not only lowers the overall ValorlessUtils file size, but also provides language files
specifically for the server's version, instead of universal file.

Once the desired language has been downloaded, it's stored in ValorlessUtils' plugin data folder for later use.
In case the download fails, a fallback en_us language file is used.

Other Stuff

Added: ValorlessUtils.GetServerVersionString(), returns the server's version as a string. (e.g. "1_21_4")

Fixed: ValorlessUtils.GetServerVersion() now correctly returns the server version.

Commit: c5f0f5a