-
Notifications
You must be signed in to change notification settings - Fork 0
Fix lock path resolution, i18n gaps, and entrypoint symlink safety #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -214,6 +214,24 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "failed": "Installation failed.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "notInstalled": "Not installed — download to enable the scanner.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "downloadFailed": "Download failed: " | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "status": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "installedPrefix": "Installed — v", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "repoLink": "GitHub repo ↗", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "unknownVersion": "unknown" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "update": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "checking": "Checking…", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "availablePrefix": "Update available: v", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "availableArrow": " → v", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "upToDatePrefix": "Up to date (v", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "upToDateSuffix": ")", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "unknownVersion": "unknown", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "checkFailed": "Failed to check for updates.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "updating": "Updating…", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "updatedPrefix": "Updated to v", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "failed": "Update failed.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "failedPrefix": "Update failed: " | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+219
to
+234
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "installedPrefix": "Installed — v", | |
| "repoLink": "GitHub repo ↗", | |
| "unknownVersion": "unknown" | |
| }, | |
| "update": { | |
| "checking": "Checking…", | |
| "availablePrefix": "Update available: v", | |
| "availableArrow": " → v", | |
| "upToDatePrefix": "Up to date (v", | |
| "upToDateSuffix": ")", | |
| "unknownVersion": "unknown", | |
| "checkFailed": "Failed to check for updates.", | |
| "updating": "Updating…", | |
| "updatedPrefix": "Updated to v", | |
| "failed": "Update failed.", | |
| "failedPrefix": "Update failed: " | |
| "installed": "Installed — v{version}", | |
| "repoLink": "GitHub repo ↗", | |
| "unknownVersion": "unknown" | |
| }, | |
| "update": { | |
| "checking": "Checking…", | |
| "available": "Update available: v{currentVersion} → v{latestVersion}", | |
| "upToDate": "Up to date (v{version})", | |
| "unknownVersion": "unknown", | |
| "checkFailed": "Failed to check for updates.", | |
| "updating": "Updating…", | |
| "updated": "Updated to v{version}", | |
| "failed": "Update failed.", | |
| "failedWithReason": "Update failed: {reason}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The update status text is assembled by concatenating multiple translation keys (prefix/arrow/suffix) plus version values. This makes localization awkward for languages that need different word order or punctuation. Consider switching to a single i18n key with placeholders (e.g., "Update available: v{current} → v{latest}" / "Up to date (v{version})") and update
getTranslation/resolveTranslationto pass params through towindow.i18n.t(key, params)(supported bystatic/i18n.js).