Skip to content

Packages loading texts from other packages. #232

Description

@Jessedev1

Hello,

My project is having some troubles with using translations in multiple packages.
When using a text in package-1 it will search in the language file of package-2.

Imagine I have two packages with the following language files:

register-package:
{ "hello": "Hello", "sign_in": "Sign in", "sign_out": "Sign out", "welcome": "Welcome!" }

login-package:
{ "test": "Test", "first_name": "First name", "last_name": "Last name", "login": "Login", "logout": "Logout", "welcome": "Welcome!" }

When I want to get the string "login" on the login page it will show "login" on the front-end.
But when I move the property "login" to the language file of "register-package" it will load the right way.

Is there some way so I can make sure the code will search in its own package first?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions