Taking Chinese as an example:
The output log shows [Reading languages] Discovered 1 language: zh-cn, and <pagefind-summary> is correctly localized to Chinese. However, the placeholder and clear button text of <pagefind-input> still stay in English.
When multiple <pagefind-input> elements are present on a page, this bug only affects the first instance, and all other <pagefind-input> can switch languages properly.
Not entered:
After entering:
In addition, this issue is unique to <pagefind-input>. Input fields inside <pagefind-modal> and <pagefind-searchbox> work fine with language switching.
<pagefind-modal-trigger></pagefind-modal-trigger>
<pagefind-modal></pagefind-modal>
<br>
<pagefind-searchbox></pagefind-searchbox>
<br>
<pagefind-input></pagefind-input>
<br>
<pagefind-input></pagefind-input>
<pagefind-summary></pagefind-summary>
Taking Chinese as an example:
The output log shows
[Reading languages] Discovered 1 language: zh-cn, and<pagefind-summary>is correctly localized to Chinese. However, the placeholder and clear button text of<pagefind-input>still stay in English.When multiple
<pagefind-input>elements are present on a page, this bug only affects the first instance, and all other<pagefind-input>can switch languages properly.Not entered:
After entering:
In addition, this issue is unique to
<pagefind-input>. Input fields inside<pagefind-modal>and<pagefind-searchbox>work fine with language switching.