payload icon indicating copy to clipboard operation
payload copied to clipboard

"Showing X of Y" under relationship/hierarchy lists is hard-coded in English

Open RafalFilipek opened this issue 1 month ago • 2 comments

Describe the Bug

packages/ui/src/elements/LoadMoreRow/index.tsx renders Showing {currentCount} of {totalDocs} as a literal string, so it stays in English in every admin language.

Link to the code that reproduces this issue

https://github.com/RafalFilipek/payload/tree/fix/ui-load-more-row-translation

This branch has the proposed fix and a component test that fails without it. It adds a new key, general:showingCurrentOfTotal. The translations for the other languages were written with AI help, not with the repo's translateNewKeys script. We're happy to drop them and keep only the English string, if you'd rather generate them yourselves.

Reproduction Steps

Set the admin language to Polish (or any non-English language) and open a list that renders LoadMoreRow (for example, the hierarchy browse view).

Actual: "Showing 2 of 2".

Which area(s) are affected?

area: ui

Environment Info

Payload 4.0.0-beta, main

Generated by Claude Code

RafalFilipek avatar Oct 20 '26 19:10 RafalFilipek

Hi! I'd like to contribute to this issue. I understand that the hard coded English text should use Payload's existing translation system so that it can be localized correctly.

I'd be happy to investigate the relevant code, implement a fix and add tests if needed.

Would it be okay for me to work on this issue and submit a PR? Please let me know if there are any specific approaches or guidelines you'd recommend. Thank you!

irinesara avatar Oct 27 '26 04:10 irinesara

PR with fix is already attached to this issue.

RafalFilipek avatar Oct 27 '26 06:10 RafalFilipek