MCPcopy
hub / github.com/marktext/marktext / t

Function t

packages/desktop/src/main/i18n.ts:10–12  ·  view source on GitHub ↗
(key: string, params: Record<string, string | number> = {})

Source from the content-addressed store, hash-verified

8 * Gets the translated text.
9 */
10export function t(key: string, params: Record<string, string | number> = {}): string {
11 return getTranslation(key, currentLanguage, params)
12}
13
14/**
15 * Gets the current language.

Callers 15

index.tsFile · 0.90
ERROR_MSG_MAINFunction · 0.90
ERROR_MSG_RENDERERFunction · 0.90
handleErrorFunction · 0.90
showUnsavedFilesMessageFunction · 0.90
noticePandocNotFoundFunction · 0.90
file.tsFile · 0.90
view.tsFile · 0.90
theme.tsFile · 0.90
prefEdit.tsFile · 0.90
help.tsFile · 0.90
edit.tsFile · 0.90

Calls 1

getTranslationFunction · 0.90

Tested by

no test coverage detected