DefGlot はゲームの複数の翻訳を簡単にサポートします。
アセットページ

DefGlot
A localization module. Easily support multiple translations of your game.
ライブラリのURL
https://github.com/subsoap/defglot/archive/master.zip
サンプル
言語ファイルを用意する
return {
en = {
LANGUAGE_NAME = "English",
START = "Start",
},
ja = {
LANGUAGE_NAME = "日本語",
START = "スタート",
},
}
local defglot = require("defglot.defglot")
function init(self)
defglot.language = "en"
defglot.locale_data = require("main_locale")
defglot.init()
defglot.set_text(node, "LANGUAGE_NAME")
end