$ luarocks install smiti18n
smiti18n (pronouced smitten) is a powerful internationalization (i18n) library that helps you create multilingual applications in Lua and LÖVE.
Forked from i18n.lua by Enrique García Cota and includes new features and improvements.
It provides an intuitive API for managing translations, with support for:
- Variable interpolation in strings
- Pluralization rules for many languages
- Hierarchical organization of translations
- Multiple locale fallbacks
- Array-based translations
- File-based translation loading
- Seamless LÖVE game engine integration for filesystem paths
Requirements
- Lua 5.1-5.4 or LuaJIT 2.0-2.1
- LÖVE 11.0+ (optional)
Versions
Dependencies
lua >= 5.1