mirror of
https://github.com/LamGC/wp-asciiplayer.git
synced 2026-11-26 20:55:48 +00:00
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
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:
@@ -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;');
|
||||
|
||||
Reference in New Issue
Block a user