WordPress / WordPress/theme-check

text-domain is not parsed correctly when theme has no i18n translation

Open
#430 2 comments 0 reactions 1 assignee View on GitHub

@carolinan is already working on this.

Since Mar 19, 2026.

Dominant language
PHP
Stars
371
Forks
113
Avg merge
8m
Merged PRs (30d)
5

Description

Initially reported in #themereview channel - https://wordpress.slack.com/archives/C02RP4Y3K/p1662993132324669 (requires login).

When theme has no i18n translation, the Theme Check fails with the message -
REQUIRED: This theme text domain does not match the theme's slug. The text domain used: This theme's correct slug and text-domain is no-i18n.

Further, the INFO log for text-domain seems to be rendering an empty text-domain (Notice the 'domain found is .' part) -
INFO: Only one text-domain is being used in this theme. Make sure it matches the theme's slug correctly so that the theme will be compatible with WordPress.org language packs. The domain found is .

== Testing Environment ==
PHP Version: 8.1.4
WordPress Version: 6.0.2
Theme Check Version: 20211203
Theme Slug: no-i18n

== To Replicate ==
I've created a basic theme with no translation to test this out quickly.
Repository - no-i18n
Theme Download Link - no-i18n.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.