Closed AlexanderFalkenberg closed 1 month ago
Are you able to provide the contents of resources/sites.yaml
?
I have the issue with different multisite projects (Statamic 4 & 5)
I set up an example project here: https://github.com/AlexanderFalkenberg/password-protect
sites.yaml
default: name: "{{ config:app:name }} [English]" url: / locale: en_US de: name: "{{ config:app:name }} [German]" url: "/de" locale: de_DE
Thanks!
Bug description
What happened
The password form page for localized (e.g. German) password-protected entries is not properly localized.
The Statamic\Auth\Protect\Protectors\Password is not aware of any source localization and is using Laravel's default locale, therefore default translations are used.
Expectation
I would expect to see a localized password form, if the protected page is localized / using a different language.
How to reproduce
Logs
No response
Environment
Installation
Existing Laravel app
Additional details
No response