feat(i18n): achieve 100% English translation coverage and modernize default window dimensions - #201
Open
johngbl wants to merge 1 commit into
Open
Conversation
…efault window dimensions - Localize all hardcoded strings in EasyModePage (brand, buttons, tooltips, choice cards, forms, and interactive walkthrough) - Localize OpenAI Compatibility label in ApiAccessPage - Localize unrecorded key, unknown source, and unknown provider labels in UsageRecordsPage and usage service - Synchronize all dictionaries (en, zh-CN, ja) and fix 41 missing keys in jaOverrides - Support English cancellation message detection in VersionManagementPage - Translate internal frontend error logs and backend update/core check errors to English - Add default GitCode repository fallback for development builds - Modernize default desktop window size from 1280x800 to 1400x860 - Add behavioral test asserting 100% English coverage across all keys in en
Collaborator
|
Thanks for your work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request completes 100% English translation across the application UI, backend error messages, and dictionaries, while also improving desktop presentation by setting a modern default window size.
Key Changes
Easy Mode Localization (
src/pages/EasyModePage.tsx):t(...)), covering:OpenAI Compatibility Label (
src/pages/ApiAccessPage.tsx):'OpenAI 兼容'with dynamic localization (OpenAI Compatiblein English,OpenAI 互換in Japanese,OpenAI 相容in Traditional Chinese, andOpenAI 兼容in Simplified Chinese).Usage Records Localization (
src/pages/UsageRecordsPage.tsx&src-tauri/src/usage.rs):未记录密钥->Unrecorded Key), unknown source (未知来源->Unknown Source), and unknown provider (未知 Provider->Unknown Provider) both dynamically in the UI and in backend analysis queries.Dictionary Alignment & Missing Keys (
src/i18n/):en.ts,zh-CN.ts, andja.ts.jaOverrides(src/i18n/ja.ts) that were causing dictionary structure tests to fail.traditional.ts.Version Management & Backend Errors (
VersionManagementPage.tsx,app_update.rs,core_runtime.rs):/cancel/i).Modern Desktop Window Dimensions (
src-tauri/tauri.conf.json,src-tauri/src/main.rs):1280x800to1400x860for a more spacious, elegant layout on modern 1080p/2K/4K and 16:10 displays.Automated Verification:
tests/i18n.test.tsvalidating 100% English coverage (0 Chinese characters inen.ts) and asserting key translations.Verification
bun test).cargo test).tsc --noEmitpassed with 0 errors.vite buildcompleted successfully.