Skip to content

Fallback locale not working #29

@Coding-Kiwi

Description

@Coding-Kiwi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions