fix: update build dependencies and improve documentation
Build and WordPress integration / PHP 7.4 syntax and regression tests (push) Canceled after 0s
Build and WordPress integration / PHP 8.3 syntax and regression tests (push) Canceled after 0s
Build and WordPress integration / WordPress 6.3 / PHP 7.4 (push) Canceled after 0s
Build and WordPress integration / WordPress latest / PHP 8.2 (push) Canceled after 0s

- Fix gettext-parser 9 compatibility and update Babel parser
- Apply targeted dependency security fixes and align Node.js requirements
- Add regression tests and document remaining dependency risks
- Review bundled player dependencies and advisory reachability
- Reformat English and Chinese READMEs and simplify wording
- Remove plugin version descriptions from README files

PR #39
This commit is contained in:
2026-10-14 17:43:24 +08:00
committed by GitHub
parent 85e5ffa0ec
commit 16d8400d76
13 changed files with 613 additions and 255 deletions
+6 -2
View File
@@ -27,8 +27,12 @@ test('all extracted strings and gettext contexts round-trip through MO and both
});
test('catalogs use Chinese plural rules, exact locale, and standard WordPress textdomain', () => {
assert.equal(po.headers.language, 'zh_CN');
assert.equal(mo.headers.language, 'zh_CN');
assert.equal(po.headers.Language, 'zh_CN');
assert.equal(mo.headers.Language, 'zh_CN');
assert.equal(po.headers['Plural-Forms'], 'nplurals=1; plural=0;');
assert.equal(mo.headers['Plural-Forms'], 'nplurals=1; plural=0;');
assert.equal(pot.headers['Project-Id-Version'], `wp-asciiplayer ${JSON.parse(fs.readFileSync('package.json')).version}`);
assert.equal(pot.headers['Content-Type'], 'text/plain; charset=utf-8');
assert.equal(editor[''].lang, 'zh_CN');
assert.equal(editor[''].domain, 'wp-asciiplayer');
assert.equal(editor['']['plural-forms'], 'nplurals=1; plural=0;');