mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-11 00:30:57 +00:00
* fix(#3565): automated AI fix * fix: address Codex review on PR #3567 * fix: address Codex review on PR #3567 * fix: address Codex review on PR #3567 * fix: address Codex review on PR #3567 * fix(scripts): observe stacked sentinel again after returning to library * fix(scripts): reuse shared persisted string hook for cross-window view changes --------- Co-authored-by: netcatty-bot <308658023+netcatty-bot@users.noreply.github.com> Co-authored-by: 陈大猫 <16399091+binaricat@users.noreply.github.com>
16 lines
626 B
TypeScript
16 lines
626 B
TypeScript
import assert from 'node:assert/strict';
|
|
import test from 'node:test';
|
|
|
|
import en from './en.ts';
|
|
import ru from './ru.ts';
|
|
import es from './es.ts';
|
|
import zhCN from './zh-CN.ts';
|
|
import zhTW from './zh-TW.ts';
|
|
|
|
test('scripts side panel view-toggle copy exists in every locale', () => {
|
|
const KEYS = ['scripts.sidePanel.viewList', 'scripts.sidePanel.viewStacked'];
|
|
for (const [locale, messages] of Object.entries({ en, ru, es, zhCN, zhTW })) {
|
|
const missing = KEYS.filter((key) => !(messages as Record<string, string>)[key]);
|
|
assert.deepEqual(missing, [], `${locale} is missing scripts view-toggle copy`);
|
|
}
|
|
}); |