This is a read-only mirror of https://gitea.it/1414codeforge/moonspeak. Please direct any pull-request, issue or discussion to the main repo.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lorenzo Cogotti a3488431b2 [init] handle the case in which translate() gets called with no dictionary. 2 years ago
.gitignore [.gitignore] Add crush lib directory to .gitignore. 2 years ago
.lovedeps [crush,.lovedeps] Add crush support. 2 years ago
LICENSE [*] Initial commit. 2 years ago
README.md [README] Streamline header. 2 years ago
crush.lua [crush] Update crush.lua. 2 years ago
init.lua [init] handle the case in which translate() gets called with no dictionary. 2 years ago

README.md

moonspeak - LÖVE game localization library

moonspeak is a basic internationalization library for the LÖVE engine. It makes your game easy to translate into multiple languages.

moonspeak does the following:

  • Loads dictionary files for your game.
  • Allows selecting one of the many available languages.
  • Translates messages by id (and provides default fallback to English).

Dependencies

moonspeak uses df-serialize to read the dictionary file.

df-serialize is also available on LuaRocks.

Documentation

Code is documented with LDoc.

Documentation may be generated running the command:

ldoc init.lua

ldoc outputs to a local doc directory, open index.html with your favorite browser to read it.

License

See LICENSE for details.