If a translation fails, the translator returns null. This makes it easy to implement a translator or interceptor, but means calling \Twigger\Translate\Translate::translate(...); could return null.
This needs to be made obvious in the documentation (using ?? $line), and making the other methods return the original line.
This will involve changing the @trans and @__t blade directives and the trans() and __t() functions to return the original line if the translation is null.
If a translation fails, the translator returns null. This makes it easy to implement a translator or interceptor, but means calling
\Twigger\Translate\Translate::translate(...);
could return null.This needs to be made obvious in the documentation (using
?? $line
), and making the other methods return the original line.This will involve changing the
@trans
and@__t
blade directives and thetrans()
and__t()
functions to return the original line if the translation is null.