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

Feature request: Internationalization or custom placeholder for 'Search' #5

Open
EduVillas opened this issue Feb 27, 2022 · 3 comments

Comments

@EduVillas
Copy link

How about an internationalization or custom placeholders line in line 106?

@akaioda
Copy link

akaioda commented Sep 29, 2023

Hi,
In waiting that the proposal pull request will be released trough cdn, here is my way to workaround localization.
By using jquery, just put this at bottom of your page code !

<script>
    //select elements by property name
    //translate content to whatever language eg here French
    var search_input_elements  = $('[placeholder="Search"]');
    search_input_elements.each(function() {
      $(this).attr('placeholder','Rechercher...');
    });
    //select elements by class name
    //translate content to whatever language eg here French
    var no_results_elements = $(".dselect-no-results");
    no_results_elements.each(function() {
      $(this).text('Aucun résultat !');
    });
</script>

@schungx
Copy link

schungx commented Mar 7, 2024

I hope this can be fixed such that I don't have to rely on a modified local copy... I'd much rather just point to the CDN...

@schungx
Copy link

schungx commented Mar 7, 2024

I counted about three places where i18n is needed: Search, not-found, Press Enter to add

These can be easily made into properties in the config.

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

3 participants