i18n 是做什麼的?
使用 react-i18next 進行 LobeHub 國際化。適用於面向用戶的字串、區域鍵、命名空間、useTranslation、t()、插值、zh-CN/en-US 預覽、硬編碼 UI 文案或 pnpm i18n。
使用 react-i18next 進行 LobeHub 國際化。適用於面向用戶的字串、區域鍵、命名空間、useTranslation、t()、插值、zh-CN/en-US 預覽、硬編碼 UI 文案或 pnpm i18n。
這是一個專為 LobeHub 專案設計的國際化 (i18n) 技能,基於 react-i18next 函式庫。它專門處理由使用者介面直接顯示的字串,包括區域鍵 (locale keys)、命名空間 (namespaces) 及其管理。該技能支援 useTranslation hook 和 t() 函數進行翻譯,並能處理包含插值 (interpolation) 的動態文字。 此技能提供簡體中文 (zh-CN) 和美國英語 (en-US) 的預覽功能,方便開發者即時核對翻譯效果。主要用途包括識別和取代硬編碼的 UI 文案、管理在地化檔案、並透過 pnpm i18n 指令執行相關任務。它專注於 LobeHub 專案的特定架構,確保開發流程中的翻譯一致性與效率,適合使用 react-i18next 的開發團隊。
npx skills add https://github.com/lobehub/lobe-chat/tree/main/skills/i18n使用 react-i18next 進行 LobeHub 國際化。適用於面向用戶的字串、區域鍵、命名空間、useTranslation、t()、插值、zh-CN/en-US 預覽、硬編碼 UI 文案或 pnpm i18n。
This repo contains 4 individual skills — each has its own dedicated page.
LobeHub Drizzle ORM schema and query style. Use for pgTable schemas, indexes, joins, inferred types, db.select/db.query, schema fields, foreign keys, junction tables, or postgres query patterns.
LobeHub React component conventions. Use when editing TSX UI, choosing base-ui vs @lobehub/ui vs antd, styling with antd-style, routing, desktop variants, layouts, or component state.
LobeHub TypeScript style and type-safety guide. Use when editing TS/TSX/MTS, fixing types, choosing interface vs type, avoiding any/object, import type, async flow, or ts-expect-error.
LobeHub Zustand store conventions. Use when editing src/store, store slices, public/internal actions, dispatch actions, flattenActions, optimistic updates, selectors, maps, or class action migration.
ElevenLabs text-to-speech with mac-style say UX.
Oracle CLI second-model review/debug/refactor/design with selected files, dry-run token checks, API or browser engine.
Capture and automate macOS UI with the Peekaboo CLI.
Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice".
Build a throwaway prototype to flesh out a design — a runnable terminal app for state/business-logic questions, or several radically different UI variations toggleable from one route.
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".