Skip to content

Share one list-joining helper across the renderer #774

Open

Description

@ryanwelcher

Three places in the renderer join a list as "a, b and c" with the same translatable %1$s and %2$s string:

The translator comment on listOf says its items are file paths, which is no longer true for every caller. The translation itself is fine, because all three share one msgid.

Move the helper into a module of its own, give it a translator comment that does not name what is being listed, and have all three callers use it.

Deferred from the review of #772.

Activity

  1. added
    refactor
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions