more blogs

This commit is contained in:
rustdesk committed 2026-07-09 11:16:29 +08:00
1 parent 8e5b554639
commit bc29d68890
124 files changed
+5849 -6

No files matched your search

+4
View File
@@ -43,6 +43,10 @@ test('reports missing locales and duplicate locale entries', () => {
);
});
test('allows a post to publish in one locale before translations exist', () => {
assert.doesNotThrow(() => validatePostTranslations([posts[0]], ['en', 'zh-cn', 'de']));
});
test('rejects unsupported locales and duplicate slugs in one locale', () => {
assert.throws(() => validatePostTranslations([{ ...posts[0], lang: 'xx' }], ['en']), /unsupported locale xx/i);
assert.throws(