kikito/i18n.lua

Does it work?

sfederici opened this issue · 1 comments

Hi, when I enter the following commands in the lua shell I get "nil"

i18n=require 'i18n'
i18n.set('welcome', 'welcome to this program')
print(i18n.translate('welcome'))
nil
Am I doing something wrong?
Thanks in advance

Hi there,

I did not update the README after doing a change in the interface. You should do i18n.set('en.welcome', 'welcome to this program') - that's en.welcome instead of welcome. I have updated the README in order to reflect this. Thanks for reporting!