kikito/i18n.lua

i18n should be impervious to dots in certain cases

kikito opened this issue · 0 comments

Example:

-- dots in the translation
i18n.set('en.pesky', 'This is pesky business. You may not want to use dots after all')
i18n('en.pesky') -- Should return the last phrase

-- dots in the params section
i18n.set('en.params', 'The param is %q')
i18n('en.params', 'This string has dots. That is crazy')

Proposed solution: apply splitDot only to the first parameter.