MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / tr

Function tr

apps/desktop/src/renderer/src/store/lib/locale.ts:4–6  ·  view source on GitHub ↗
(key: string, options?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

2import type { LocalInputFile, ModelRef } from '@open-codesign/shared';
3
4export function tr(key: string, options?: Record<string, unknown>): string {
5 return i18n.t(key, options ?? {}) as string;
6}
7
8export function newId(): string {
9 return `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;

Callers 15

loadConfigFunction · 0.90
clearDesignSystemFunction · 0.90
useDesignFilesFunction · 0.90
useLazyDesignFileTreeFunction · 0.90
addCommentFunction · 0.85
updateCommentFunction · 0.85
removeCommentFunction · 0.85
loadDesignsFunction · 0.85
createNewDesignFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected