Use GlInfiniteScroll's default slot in the project selector vue component
Currently, GlInfiniteScroll
in GitLab UI displays a "legend", showing the number of results shown, and also the total.
Since the string is defined in GitLab UI, it isn't translatable. Fortunately, the GlInfiniteScroll
component has a slot which can be used to customise that legend, allowing for it to be translated.
In this case, that's in the app/assets/javascripts/vue_shared/components/project_selector/project_selector.vue component, which uses GlInfiniteScroll
internally.
Edited by Mark Florian