mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-10-26 05:50:32 +00:00
more blogs
This commit is contained in:
1 parent
8e5b554639
commit
bc29d68890
124 files changed
+5849
-6
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user