mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
CSM: Add a way to get current locale from CSM
This commit is contained in:
parent
241fe649f7
commit
c252ed506e
3 changed files with 11 additions and 0 deletions
|
@ -618,6 +618,7 @@ Minetest namespace reference
|
|||
### Utilities
|
||||
|
||||
* `minetest.get_current_modname()`: returns the currently loading mod's name, when we are loading a mod
|
||||
* `minetest.get_language()`: returns the currently set gettext language.
|
||||
* `minetest.get_version()`: returns a table containing components of the
|
||||
engine version. Components:
|
||||
* `project`: Name of the project, eg, "Minetest"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue