mainio / decidim-module-term_customizer

Decidim module that allows customizing the localization terms in the system for specific contexts.
GNU Affero General Public License v3.0
16 stars 21 forks source link

Search bar doesn t display all existing keys when writing one term instead of the complete translation key #121

Open BarbaraOliveira13 opened 6 months ago

BarbaraOliveira13 commented 6 months ago

Description The search bar in the term customizer no longer displays all existing keys during a search with one term.

Steps to Reproduce

Expected Behavior In the search bar, when we search with one word (for exemple "category"), we need to find all the translation key corresponding (for exemple "decidim.proposals.proposals.filters.category"). We should'n need to write the complete translation key to find it.

Actual Behavior But for now, the search bar display the only ten first translation key corresponding of our search, when we search with one word.

Screenshot

term_custo image term_custo

Idea fo fix Shouldn't we need to add maxResults to 200 here: https://github.com/mainio/decidim-module-term_customizer/blob/9133eea57ebfc4164b640efd1ac6b9ca1628c793/app/packs/src/decidim/term_customizer/admin/translations_admin.js#L36