i18n.lua
i18n.lua copied to clipboard
add support for lists of strings
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