Skip to content

Locale sync - fix possible out of memory export crash - #686

Merged
djohalo2 merged 3 commits into
mainfrom
fix/export-crash-large-localization-groups
Aug 18, 2026
Merged

Locale sync - fix possible out of memory export crash#686
djohalo2 merged 3 commits into
mainfrom
fix/export-crash-large-localization-groups

Conversation

@djohalo2

@djohalo2 djohalo2 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Description

To fix a possible out of memory crash in the Locale Sync plugin export, this pull request implements the new listLocalizationGroups method to get localization groups using async iterator when exporting. While at it I also added a loading state to the button.

Changelog

  • Fixed possible out of memory crash for Locale Sync plugin export.

Testing

  • Open project with a lot of localization data and verify export works as expected
    • Also verify you can see a loading spinner and the button is disabled while exporting

@djohalo2 djohalo2 changed the title Locale sync - fix export crash large localization groups Locale sync - fix possible out of memory export crash Aug 18, 2026
@djohalo2
djohalo2 marked this pull request as ready for review August 18, 2026 06:38
Copilot AI lite review requested due to automatic review settings August 18, 2026 06:38
@github-actions github-actions Bot added the Auto submit to Marketplace on merge Submits the plugin to the marketplace after merging label Aug 18, 2026
@djohalo2
djohalo2 requested a review from elmarburke August 18, 2026 06:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Locale Sync plugin export flow to use the newer @framer/plugin API and iterates localization groups via listLocalizationGroups() during export, aiming to reduce the risk of out-of-memory crashes. It also adds an exporting/loading UI state to the Export button.

Changes:

  • Migrated Locale Sync from framer-plugin to @framer/plugin (dependency + imports).
  • Updated XLIFF export to gather localization groups via framer.listLocalizationGroups() and added exporting state/disabled+spinner UX.
  • Updated lockfile to include the new @framer/plugin@4.2.0-beta.0 resolution for this workspace.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 3 comments.

File Description
yarn.lock Adds @framer/plugin@4.2.0-beta.0 and wires locale-sync workspace dependency to it.
plugins/locale-sync/src/xliff.ts Switches localization type imports from framer-plugin to @framer/plugin.
plugins/locale-sync/src/App.tsx Uses listLocalizationGroups() for export and adds export loading/disabled UI state.
plugins/locale-sync/package.json Replaces framer-plugin dependency with @framer/plugin@4.2.0-beta.0.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread plugins/locale-sync/package.json
Comment thread plugins/locale-sync/src/App.tsx Outdated
Comment thread plugins/locale-sync/src/App.tsx Outdated
@djohalo2
djohalo2 force-pushed the fix/export-crash-large-localization-groups branch from 1198e1f to 2940f3b Compare August 18, 2026 06:52
Comment thread plugins/locale-sync/src/App.tsx Outdated
Comment thread plugins/locale-sync/src/App.tsx Outdated
Comment thread plugins/locale-sync/src/App.tsx
@djohalo2
djohalo2 force-pushed the fix/export-crash-large-localization-groups branch from a3bc298 to 0d9d9fb Compare August 18, 2026 08:08
@djohalo2
djohalo2 requested a review from elmarburke August 18, 2026 08:11
@djohalo2
djohalo2 added this pull request to the merge queue Aug 18, 2026
Merged via the queue into main with commit ba2b4ba Aug 18, 2026
10 checks passed
@djohalo2
djohalo2 deleted the fix/export-crash-large-localization-groups branch August 18, 2026 09:54
@djohalo2
djohalo2 deployed to production August 18, 2026 10:25 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto submit to Marketplace on merge Submits the plugin to the marketplace after merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants