feat(i18n): vue-i18n framework + shell strings (English + Japanese baseline)#102
Open
Nic-dorman wants to merge 2 commits into
Open
feat(i18n): vue-i18n framework + shell strings (English + Japanese baseline)#102Nic-dorman wants to merge 2 commits into
Nic-dorman wants to merge 2 commits into
Conversation
…seline) Plumbs vue-i18n@11 with tauri-plugin-os locale detection, a persisted i18n_locale config field, and a Settings → Language picker showing "System default: <OS-native name>" for the follow-system option. Extracts shell strings — sidebar nav, page titles, header connection pills, active transfers, Connect Wallet — to locales/en.json with a machine-translated locales/ja.json baseline. ja.json is flagged with _machine_translated: true; community polish to follow. Pages, components, toast strings, and validators are untouched — that sweep follows in a separate PR. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 tasks
vue-i18n's LocaleMessage type requires every value to be a string or
nested message object, so the boolean _machine_translated: true flag
failed nuxi typecheck:
Property '"_machine_translated"' is incompatible with index signature.
Type 'boolean' is not assignable to type 'LocaleMessageValue<…>'.
Rename to _translator_notes and put the same signal in a sentence —
satisfies the type system and reads more naturally for a contributor
who lands in ja.json from a PR.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
tauri-plugin-oslocale detection, a persistedi18n_localeconfig field, and a Settings → Language picker (withSystem default: <OS-native name>for the follow-system option).locales/en.jsonand ship a machine-translatedlocales/ja.jsonbaseline (flagged with_machine_translated: true).Pages / components / toast messages / validators are untouched — that sweep follows in a separate PR.
Test plan
i18n_localeis unset and the OS isen-*.日本語flips the sidebar, header, page titles, and connection pills to Japanese without a reload.~/.config/autonomi/ant-gui/config.toml—i18n_localeabsent / null).[i18n] Not foundwarnings in the dev console after the shell renders in either locale.🤖 Generated with Claude Code