Skip to content

The default placeholder and clear button inside <pagefind-input> have language display issues. #1148

@Fuslone

Description

@Fuslone

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.

Image

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:

Image

After entering:

Image

In addition, this issue is unique to <pagefind-input>. Input fields inside <pagefind-modal> and <pagefind-searchbox> work fine with language switching.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions