mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
docs: document generated locale bundles
This commit is contained in:
@@ -480,9 +480,10 @@ function renderTranslationValue(value: TranslationValue, indent = 0): string {
|
||||
|
||||
function renderLocaleModule(entry: LocaleEntry, value: TranslationMap): string {
|
||||
return [
|
||||
"// Generated locale bundle for Control UI translations.",
|
||||
"// Run `pnpm ui:i18n:sync` instead of editing this file directly.",
|
||||
'import type { TranslationMap } from "../lib/types.ts";',
|
||||
"",
|
||||
"// Generated by scripts/control-ui-i18n.ts.",
|
||||
`export const ${entry.exportName}: TranslationMap = ${renderTranslationValue(value)};`,
|
||||
"",
|
||||
].join("\n");
|
||||
|
||||
Reference in New Issue
Block a user