Repository navigation
Translate: ability to save long translations - #4449
Merged
Merged
Conversation
ayshushus
marked this pull request as ready for review
August 25, 2026 16:11
eemeli
requested changes
Aug 27, 2026
mathjazz
removed their request for review
August 27, 2026 11:47
Co-authored-by: Eemeli Aro <eemeli@gmail.com>
Contributor
Author
|
@eemeli I also think that the tests don't need changes (at least functionally) even after going with the in-line approach, correct? |
eemeli
approved these changes
Aug 31, 2026
eemeli
left a comment
Member
There was a problem hiding this comment.
The code looks good, but with respect to
The snapshot reference is there because the bug was being caused by chunking and was saving an empty
{}.
there is no explanation documented about what happened here either in this PR, the issue, or in code comments. As far as I can tell, the only place where the problem investigation is described is in a comment on the #l10n-community Matrix channel.
Before merging, please include a comment somewhere on GitHub describing why the changes here fix the observed problem.
Contributor
Author
Added a comment on this PR's description. |
eemeli
approved these changes
Aug 31, 2026
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.
Fix #4438
The bug is in CodeMirror’s parser state handling:
fluentModeandcommonModestore tokenizer state as an array stack.copyState()incorrectly copies that array into a plain object.state.at()/push()/pop()no longer exist, causingTypeError: state.at is not a function.512 + 25characters.Fix:
copyStateforfluentModeandcommonMode.