Skip to content

strings in the query-suggestions and recent-searches plugins cannot be translated without replacing entire template #1282

@justinedelson

Description

@justinedelson

Description

While autocomplete-js allows for the submit/clear button strings to be localized externally, there are strings in the query-suggestions and recent-searches plugins that cannot be localized.

recent-searches

  • Remove this search
  • Fill query with "${item.label}"

query-suggestions

  • Fill query with "${item.query}"

Reproduction

There's not really a way to reproduce this cleanly since it is a gap in the API of these plugins.

Expected behavior

Plugins should allow for localized strings to be provided.

Environment

  • OS: any
  • Browser: any
  • Autocomplete version: latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions