Logo
Explore Help
Sign In
i/next-ai-draw-io
1
0
Fork 0
You've already forked next-ai-draw-io
mirror of https://github.com/DayuanJiang/next-ai-draw-io.git synced 2026-01-02 14:22:28 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
6fbc7b340f63c83bd236d783ee2173d2567fe078
next-ai-draw-io/lib/i18n/config.ts

7 lines
146 B
TypeScript
Raw Normal View History

Add i18n support, language toggle UI, and translate Settings dialog (#334) * i18n support added * fix: align i18n implementation with Next.js 16 guide - Rename middleware.ts to proxy.ts (Next.js 16 convention) - Fix params type to Promise<{lang: string}> for layout/metadata - Add 'server-only' directive and dynamic imports to dictionaries.ts - Add hasLocale type guard and notFound() for invalid locales - Wrap LanguageToggle in Suspense for useSearchParams - Fix dictionary key mismatch (learnmore -> learnMore) - Improve Chinese translations per Gemini review: - loading ellipsis, new -> 新建, styledMode -> 精致 - goodResponse/badResponse -> 有帮助/无帮助 - closeProtection -> 关闭确认, fileExceeds phrasing - Improve Japanese translations per Gemini review: - closeProtection -> ページ離脱確認 - invalidAccessCode phrasing, appendDiagram -> に追加 - styledMode -> スタイル付き --------- Co-authored-by: dayuan.jiang <jdy.toh@gmail.com>
2025-12-20 20:18:54 +05:30
export const i18n = {
defaultLocale: "en",
locales: ["en", "zh", "ja"],
} as const
export type Locale = (typeof i18n)["locales"][number]
Reference in New Issue Copy Permalink
Powered by Gitea Version: 24.6.0 Page: 374ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API