mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 00:08:52 +00:00
Test: the French word for a code block's label is the same as the English one
tests/move-chat-workspace.test.mjs requires every guic string to differ from its English; "code" is "code" in French too (the other eight differ),
so it joins "30 minutes" in the list of strings allowed to match in French. Follows a26b822ca, which added the label's catalog entry.
This commit is contained in:
1 parent
6d8a84590a
commit
55276c09da
1 file changed
+1
-1
@@ -46,7 +46,7 @@ test('a working chat, an unknown chat or destination, and the workspace it is al
|
||||
});
|
||||
|
||||
/** English texts that are the same word in French (a number and its unit): the check that every key is translated lets them through there. */
|
||||
const SAME_IN_FRENCH = new Set(['30 minutes']);
|
||||
const SAME_IN_FRENCH = new Set(['30 minutes', 'code']); // the French word for a code block's label is the same
|
||||
test('the Actions menu offers the move with the approved words, in all nine languages', async () => {
|
||||
const sidebar = await readFile(new URL('../src/app/Sidebar.tsx', import.meta.url), 'utf8');
|
||||
const en = JSON.parse(await readFile(new URL('../src/locales/guic-en.json', import.meta.url), 'utf8'));
|
||||
|
||||
Reference in new issue
Block a user