Conversation
… paraglide-js to 2.11.0 Co-authored-by: Cursor <cursoragent@cursor.com>
…aultLanguage to OrganizationConfig type Co-authored-by: Cursor <cursoragent@cursor.com>
…language selection pure function and tests Co-authored-by: Cursor <cursoragent@cursor.com>
…hooks to use org default language Co-authored-by: Cursor <cursoragent@cursor.com>
…nslation keys for endorsements and language names Co-authored-by: Cursor <cursoragent@cursor.com>
…claims page to use endorsements translation Co-authored-by: Cursor <cursoragent@cursor.com>
… logInCTA to random pattern key bright_swift_eagle_login Co-authored-by: Cursor <cursoragent@cursor.com>
Migrate 16 high-frequency CTA button keys from camelCase to random pattern: - cancelCTA → calm_steady_lynx_cancel - editCTA → sharp_clear_fox_edit - submitCTA → bold_swift_eagle_submit - deleteCTA → firm_steady_boar_delete - saveCTA → quick_safe_deer_save - createNewCTA → fresh_bright_sparrow_create - downloadCTA → swift_steady_falcon_download - copyCTA → quick_clear_owl_copy - previewCTA → sharp_quiet_panther_preview - logOutCTA → calm_steady_lynx_logout - claimCTA → bold_swift_eagle_claim - awardCTA → bright_happy_sparrow_award - awardBadgeCTA → gentle_brave_falcon_award - endorseFormCTA → warm_tangy_deer_endorseform - removeCTA → firm_clear_fox_remove - chooseCTA → bright_swift_eagle_choose Fixes SSR issues with Paraglide 2.11.0 quoted exports for camelCase keys. Co-authored-by: Cursor <cursoragent@cursor.com>
Migrate 22 claimConfiguration keys from camelCase to random pattern keys. Fixes SSR issues with Paraglide 2.11.0 quoted exports. Co-authored-by: Cursor <cursoragent@cursor.com>
Migrate 9 achievementConfig keys from camelCase to random pattern keys. Fixes SSR issues with Paraglide 2.11.0 quoted exports. Co-authored-by: Cursor <cursoragent@cursor.com>
Migrate 13 remaining CTA and description keys from camelCase to random pattern. Fixes SSR issues with Paraglide 2.11.0 quoted exports. Co-authored-by: Cursor <cursoragent@cursor.com>
Migrate 25 remaining standalone keys from camelCase to random pattern keys. Fixes SSR issues with Paraglide 2.11.0 quoted exports. Co-authored-by: Cursor <cursoragent@cursor.com>
Migrate 193 message keys that didn't match the adjective_adjective_animal_verb pattern to random pattern keys. - Generated unique random keys for all 193 old keys - Added new keys to all 4 language files (en-US, en-AU, fr, it) - Updated 250 code references across 59 files - Removed all old keys from language files - All keys now follow consistent random pattern Fixes SSR compatibility with Paraglide 2.11.0 and ensures consistency. Co-authored-by: Cursor <cursoragent@cursor.com>
* Use random format for steady namespace complexity level and paraglide 2.0 compatibility
…guage selector to about/edit page Co-authored-by: Cursor <cursoragent@cursor.com>
…_eagle_rest for Default Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Update Node.js version from lts/krypton (22.x) to lts/iron (20.x) for Vercel adapter compatibility until SvelteKit 2.x upgrade. - Update .nvmrc to lts/iron - Update GitHub Actions workflow to use lts/iron - Update README.md prerequisites section Verified: build, check, and test:unit all pass with Node.js 20.x Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| } | ||
|
|
||
| // Output mapping as JSON (only JSON, no other output) | ||
| console.log(JSON.stringify(mapping, null, 2)); |
There was a problem hiding this comment.
One-time migration scripts committed to repository
Low Severity
scripts/generate-key-mapping.cjs and scripts/update-code-references.cjs appear to be one-time migration utilities for the key rename process. They reference a hardcoded /tmp/key-mapping.json path, use a fixed random seed, and aren't referenced in package.json. Unlike the operational scripts in src/scripts/, these serve no ongoing purpose and could confuse future contributors.
Additional Locations (1)
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.


Updates to latest paraglide and fixes #37 . These strings happened to require both pluralization and a little bit more complex approach.
Note
Medium Risk
Touches i18n runtime wiring and the global
handlerequest pipeline, so locale selection and server rendering could regress if Paraglide v2 behavior differs or cookies/org config are malformed; changes are mostly configuration and string-key migration otherwise.Overview
Upgrades i18n tooling to
@inlang/paraglide-js@2and updates runtime/server integration, including wrappinghandlewithparaglideMiddleware, switching APIs tosetLocale/locales, and injecting the selected locale intosrc/app.htmlvia%lang%.Introduces a deterministic locale selection helper (
getLanguageForRequest) and adds org-level language defaults viaOrganizationConfig.defaultLanguage, so requests resolve locale by cookie → org default → base locale.Migrates many UI/server strings to new generated Paraglide message keys, adds helper scripts to generate/update key mappings, and updates repo tooling/config (ESLint to TypeScript +
eslint-plugin-svelte, Prettier Svelte plugin, Node LTSiron, build now runsprisma generate, plus minor config/formatting ignore tweaks).Written by Cursor Bugbot for commit 90d189e. This will update automatically on new commits. Configure here.