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

Typeahead i18n support #6631

Open
Giovanni-NL opened this issue Jan 2, 2024 · 0 comments
Open

Typeahead i18n support #6631

Giovanni-NL opened this issue Jan 2, 2024 · 0 comments

Comments

@Giovanni-NL
Copy link

Giovanni-NL commented Jan 2, 2024

Is your feature request related to a problem? Please describe.

The typeahead feature adds an aria-live region which speaks "No results available" or "n result(s) available" depending on the status. This text is hard-coded and non-translatable.

Describe the solution you'd like

Please make it so that this text supports the standard Angular i18n translation feature so that I can add translations in my required languages to my translation files. For example, allow me to set ngb.typeahead.no-results and ngb.typeahead.results-available texts.

Code found in the current version of ngx-bootstrap typeahead.mjs
// live announcer
const count = results ? results.length : 0;
this._live.say(count === 0 ? 'No results available' : ${count} result${count === 1 ? '' : 's'} available);

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

No branches or pull requests

1 participant