Closed Fr33maan closed 7 years ago
good catch!
Thanks for your quick action !
Well actually the module was managing default translation. The fix is useful in case you give an object or undefined to the I18n.t function which will crash in this case.
If the translation does not exists, we have a message not so user friendly. I'm going to try to do something better, I don't like the initial solution.
Sorry for that PR, it should have been perfect at first try.
Sorry for that PR, it should have been perfect at first try.
No worries, @l1br3 , love your recent contributions!
thanks @jamonholmgren !
Stupid error in https://github.com/infinitered/ignite-i18n/pull/9
We tried to find a unknownError by default but this one is an extra translation I've personally add. Plus you don't necessary try to send an error to the client. The best thing to do is to send the message you try to translate directly to the client if no translation exists.