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?
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?