blog locale

This commit is contained in:
rustdesk committed 2026-07-04 10:41:20 +08:00
1 parent 1ab9d9afbb
commit 82afa32934
62 files changed
+1683 -141

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import test from 'node:test';
test('announcement resolves the latest post for the active locale', async () => {
const source = await readFile(
new URL('../src/components/widgets/Announcement.astro', import.meta.url),
'utf8'
);
assert.match(source, /findLatestPosts\(\{ count: 1, lang \}\)/);
assert.doesNotMatch(source, /Enhanced ACL in RustDesk Server Pro 1\.5\.0/);
assert.doesNotMatch(source, />NEW</);
});