feat(blocks): localize reusable application shell blocks

- move block messages beside appearance, chats, layout, navigation, and notification features\n- publish independently tree-shakeable catalogs for eight locales per block\n- localize controllers and leaf labels without rerendering surrounding interactive components\n- support descriptor-backed navigation labels, translated breadcrumbs, and compact-label truncation\n- add catalog composition helpers and coverage for reusable block consumers
This commit is contained in:
Maofeng
2026-07-30 14:48:06 +08:00
parent ae1798f6f4
commit 6af4d7b798
83 changed files with 1769 additions and 171 deletions
+11 -1
View File
@@ -34,12 +34,22 @@
"exports": {
"./globals.css": "./src/styles/globals.css",
"./appearance": "./src/blocks/appearance/index.ts",
"./appearance/locales": "./src/blocks/appearance/locales/catalogs.ts",
"./appearance/locales/*": "./src/blocks/appearance/locales/*.ts",
"./chats": "./src/blocks/chats/index.ts",
"./chats/locales": "./src/blocks/chats/locales/catalogs.ts",
"./chats/locales/*": "./src/blocks/chats/locales/*.ts",
"./components/*": "./src/components/*.tsx",
"./hooks/*": "./src/hooks/*.ts",
"./lib/*": "./src/lib/*.tsx",
"./layout": "./src/blocks/layout/index.ts",
"./layout/locales": "./src/blocks/layout/locales/catalogs.ts",
"./layout/locales/*": "./src/blocks/layout/locales/*.ts",
"./navigation": "./src/blocks/navigation/index.ts",
"./notifications": "./src/blocks/notifications/index.ts"
"./navigation/locales": "./src/blocks/navigation/locales/catalogs.ts",
"./navigation/locales/*": "./src/blocks/navigation/locales/*.ts",
"./notifications": "./src/blocks/notifications/index.ts",
"./notifications/locales": "./src/blocks/notifications/locales/catalogs.ts",
"./notifications/locales/*": "./src/blocks/notifications/locales/*.ts"
}
}