Refresh shared UI i18n handling - #32
Conversation
- Add Ui.SetupWizard.Fetch.*, Rebuild.*, Bucket.*, CouchDB.*, P2P.*, CouchDBCheck.* keys to en.yaml - Add Setup.ScanQRCode.*, UseSetupURI.*, RemoteE2EE.*, Bucket.*, CouchDB.*, P2P.* keys to en.yaml - Regenerate all language JSON files from YAML sources - Bake combinedMessages.prod.ts from dev sources - Update Guidance.svelte and Instruction.svelte with message prop auto-translation
- Add all missing $msg() keys referenced by TS settings panes - Add better English values for common labels (Back, Delete, Configure, etc.) - All 841 en.json keys now cover all $msg() calls in codebase
- zh: +93 keys - ja: +96 keys - ko: +133 keys - es: +238 keys - ru: +93 keys - de: +670 keys - zh-tw: +670 keys All 841 keys now present in every language file. Non-translated keys use English as placeholder.
b91338e to
9e377ff
Compare
|
Thank you for your PR! |
|
@52sanmao Sorry for not getting in touch. As I had made a significant diff, I have made some adjustments to align your PR with the Main branch. I am not entirely sure if I have managed to preserve the content of your PR, so would you please check it for me? If it looks OK, I will l merge it! |
|
I am sorry to share that, while preparing v1.0.0, we changed the project boundary: application translations and dialogues now live in the main Self-hosted LiveSync repository, while Commonlib keeps its canonical English service messages and translation-injection boundary. This should make future contributions easier to locate, understand, and merge. I am sorry to ask for additional work after you prepared this PR. Would you be willing to open a new PR against Self-hosted LiveSync using the current structure? Thank you again for your contribution and patience. |
Background
This is the companion shared UI i18n change for vrtmrz/obsidian-livesync#878.
The parent PR uses shared setup UI components with i18n message keys. Those components also need to remain safe for existing callers that pass literal or dynamic strings.
Purpose
Changed Files
src/UI/components/**translateIfAvailable().src/common/i18n.tssrc/common/messagesYAML/**src/common/messages/**andsrc/common/messagesJson/**Verification
Verified through the parent obsidian-livesync build using this submodule commit:
npm run tsc-checknpm run svelte-checknpm run buildgit diff --checkgit -C src/lib diff --checkCompatibility / Notes