i18n.lua icon indicating copy to clipboard operation
i18n.lua copied to clipboard

add support for lists of strings

Open personalnadir opened this issue 6 years ago • 0 comments

I am interested in adding support for lists of string to i18n.lua. The use case is for in game text where I want to randomly select strings with equivalent meanings to provide some variety. For instance:

comparisons = { "You could buy %{item_count}", "You can afford %{item_count}", "You have enough money for %{item_count}" }

I was curious as to: a) what would be the best way of implementing this b) whether this was bad practice and had deliberately not been implemented

personalnadir avatar Nov 01 '19 10:11 personalnadir