From c252ed506eb8324fbdea4b632116c2c7d06a8c9c Mon Sep 17 00:00:00 2001 From: lisacvuk Date: Sat, 28 Oct 2017 08:56:10 +0200 Subject: CSM: Add a way to get current locale from CSM --- doc/client_lua_api.md | 1 + 1 file changed, 1 insertion(+) (limited to 'doc') diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md index fb00ada66..d8e2da69c 100644 --- a/doc/client_lua_api.md +++ b/doc/client_lua_api.md @@ -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" -- cgit v1.2.3