Skip to content

Expand i18n text domain convention to cover all translation helpers #31

Description

@TheWitness

The new "i18n text domain" bullet in .github/copilot-instructions.md (added by #30) only names
__()/__esc() as requiring this plugin's text domain, but the file's existing i18n guidance
also treats __n(), __x(), __xn(), and __gettext() (and, in some plugins, __esc_n()) as
translation helpers. As written, the rule doesn't actually enforce a domain on every translated
string - a domainless plural/context call would still comply with the letter of the bullet.

Flagged by Copilot's review on #30; tracked here separately so the conventions PR isn't blocked
on it. Fix: either enumerate the full helper list in that bullet, or phrase it generically to cover
all translation/gettext helper calls.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions