transplate.lua
So... This is a library you can use to translate strings! Sounds fun, right? Well, it's mostly a library that you should know how to use, but there is plans to integrate library with other libraries. For now transplate.lua works with littleDialogue by MrDoubleA, you can even change fonts for specific/all style(s)!Library:
1.1 (Current) - https://pastebin.com/upbGbX5H
1.0 - https://pastebin.com/5xJVabUN
P.S: I recommend naming file transplate.lua
How to use?:
Code: Select all
-- worth mentioning that it returns original text if there is no translation
local translated = transplate.getTranslation(text, lang (by default it's current language))
Bug reports, recommendations and etc are welcome! This library was a bit rushed honestly :)