Situation: the locale is "de", the fallback locale is "en" and there are only translations for "en"
Expected behavior
calling the trans( function should output an 'en' translation
Current behavior
matice throws a Locale [de] does not exist. error.
This happens because the findSentence immediately calls the translations function which does not check the fallbackLocale variable and thus fails.
Versions
- Laravel: 8.75.0
- Matice: 1.1.6
Situation: the locale is "de", the fallback locale is "en" and there are only translations for "en"
Expected behavior
calling the
trans(function should output an 'en' translationCurrent behavior
matice throws a
Locale [de] does not exist.error.This happens because the
findSentenceimmediately calls thetranslationsfunction which does not check thefallbackLocalevariable and thus fails.Versions