Skip to content

Commit 562d068

Browse files
committed
test(studio): load the zh catalogue at collection in the tab-order pin
The studio namespace fetches its zh catalogue on demand, so the pin read English in a worker where no earlier suite had loaded it (Test UI 5/16). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYoFqGdRM9Qmg7M2o2B
1 parent a9e7bb7 commit 562d068

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎ui/packages/app-shell/src/views/studio-design/objectDesignerTabs.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ import {
2222
readObjectDesignerTab,
2323
} from './objectDesignerTabs';
2424
import { t } from '../metadata-admin/i18n';
25+
import { loadStudioCatalogue } from '@object-ui/i18n/namespaces/studio';
26+
27+
// The studio namespace's zh catalogue is fetched on demand: loaded here, at
28+
// collection, so the order pin reads Chinese whatever ran before it in this
29+
// worker (unloaded, `t` answers from `en`).
30+
await loadStudioCatalogue('zh');
2531

2632
const TOOLS = OBJECT_DESIGNER_TOOL_TABS;
2733

0 commit comments

Comments
 (0)