timo-schmid / sbt-i18n

This sbt plugin lets you create i18n files and publish them as scala functions.

Home Page:https://github.com/timo-schmid/sbt-i18n

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Object is not created if base string is not set

randm-ch opened this issue · comments

This works:

contact=Contact
contact.validation.nameHasNumber=Your name can not contain a number.
contact.validation.emailIsInvalid=The email address you entered is not valid.

This doesn't work (object contact is not created):

contact.validation.nameHasNumber=Your name can not contain a number.
contact.validation.emailIsInvalid=The email address you entered is not valid.

Good catch!

I managed to fix this for keys like aaa.bbb.ccc where aaa.bbb does not exist, but I missed it for root keys.

I'll publish a fix later today!