Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change placeholder in country search input #1543

Closed
julianwitzel opened this issue Mar 9, 2024 · 1 comment
Closed

Change placeholder in country search input #1543

julianwitzel opened this issue Mar 9, 2024 · 1 comment

Comments

@julianwitzel
Copy link

Is it possible to change the "Search" placeholder when opening the country list?

I am trying to do that with JS but it does not update somehow. Is there a native function for that? So far I only found the customPlaceholder option for the main phone input.

@julianwitzel
Copy link
Author

Found the solution in the readme!

intlTelInput(input, {
  i18n: {
    // Country names
    fr: "Frankreich",
    de: "Deutschland",
    es: "Spanien",
    it: "Italien",
    ch: "Schweiz",
    nl: "Niederlande",
    at: "Österreich",
    dk: "Dänemark",
    // Other plugin text
    selectedCountryAriaLabel: 'Ausgewähltes Land',
    countryListAriaLabel: 'Liste der Länder',
    searchPlaceholder: 'Suchen',
  }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant