← Về thư mục
frontend/src/i18n/runtime.ts
- Lang · type · L10-L10 — type Lang = "zh" | "en";
- I18nDict · type · L11-L11 — type I18nDict = Record;
- detectLang · function · L17-L34 — function detectLang(): Lang
- loadLocale · function · L45-L65 — function loadLocale(lang: Lang): Promise
- applyDocumentLang · function · L71-L74 — function applyDocumentLang(lang: Lang): void
- loadDictionaries · function · L90-L101 — async function loadDictionaries(lang: Lang): Promise
- i18nReady · function · L103-L132 — function i18nReady(): Promise
- tOptional · function · L144-L149 — function tOptional(key: string): string | null
- t · function · L151-L163 — function t(key: string, ...args: readonly unknown[]): string
- QueryRoot · type · L165-L167 — type QueryRoot = { querySelectorAll: (selector: string) => ArrayLike | NodeListOf; };
- applyStaticI18n · function · L173-L195 — function applyStaticI18n(root?: QueryRoot): void
- each · function · L177-L182 — each = (attr: string, write: (e: Element, value: string) => void)
- refreshLangToggle · function · L197-L202 — function refreshLangToggle(): void
- onLanguageChange · function · L210-L216 — function onLanguageChange(hook: () => void): () => void
- setLang · function · L218-L227 — async function setLang(lang: string): Promise
- repaintLanguage · function · L230-L243 — function repaintLanguage(): void
- planModePayload · function · L261-L263 — function planModePayload(taskText: string): string