mirror of
https://github.com/Insality/druid.git
synced 2025-11-27 19:30:51 +01:00
#76 add params for lang text string.format
This commit is contained in:
@@ -7,8 +7,8 @@ local function setup_druid()
|
||||
sound.play("kenney:/sound#" .. name)
|
||||
end)
|
||||
|
||||
druid.set_text_function(function(lang_id)
|
||||
return lang.get_locale(lang_id)
|
||||
druid.set_text_function(function(lang_id, ...)
|
||||
return lang.get_locale(lang_id, ...)
|
||||
end)
|
||||
|
||||
druid.on_language_change()
|
||||
|
||||
Reference in New Issue
Block a user