Hi!
I managed to create a very simple module for game localisations in Defold that utilizes open-source Polyglot sheet available here.
Defold Polyglot is a tool that parses downloaded Polyglot CSV file and you can use it in Defold (or possibly any Lua based) project. It is available (MIT - free open-sourced) in the link below:
The instructions and API description are in README.md
Example usage:
-- 1. import resource
polyglot.import("/assets/polyglot.csv")
-- 2. set language
polyglot.set_language("Polish")
-- 3. use proper string_id in getter
local translation = polyglot.get("CONTEXT_CLASS_WARRIOR")
label.set_text("#label", "Warrior in Polish is: "..translation)
Project includes Defold example project which has an output:
I hope you will like it! Ideally, it would be great to merge it to DefGlot, as it is far more advanced