i18n support for Mudlet scripts
Posted: Fri Oct 04, 2019 2:05 am
I have been working on a website in lua, and needed an internationalization library. I found https://github.com/kikito/i18n.lua and decided others might find it useful, so I repackaged it in a mudlet mpackage. All credit goes to the original author. The full details are available on the github page but a basic rundown:
If you install this package, then given:
If you do i18n.setLocale("de") and do it again, it will look like:
If you install this package, then given:
Then you can run
And it will look like this:
If you do i18n.setLocale("de") and do it again, it will look like: