Hi,
I have a CSV file containing a certain number of keys associated to a dialog in game:
For example:
keys,en,fr
TUTO_1,First line in English, First line in french
TUTO_2,Second line in English, Second line in french
Right now I load the dialog as follows in my code:
var dialog = [
tr("TUTO_1"),
tr("TUTO_2")
]
If later I add TUTO_3 in the file I would like to fill this list aromatically. So I was wondering is it possible to get all possible keys from a CSV translation file so I can iterate over them ?
I'm thinking of something like this:
var dialog = []
for key in tr.get_keys():
dialog .append(tr(key))
Any suggestions on how to proceed ?