Skip to content

Fixed shared message object reference across locales#315

Open
pg0404-44 wants to merge 4 commits intowikimedia:masterfrom
pg0404-44:fix-issue-223
Open

Fixed shared message object reference across locales#315
pg0404-44 wants to merge 4 commits intowikimedia:masterfrom
pg0404-44:fix-issue-223

Conversation

@pg0404-44
Copy link
Copy Markdown

What I changed

Updated the message store so locale messages are copied before being stored or merged.

Why

Issue #223 happens when the same object is loaded for multiple locales. Because the object reference is shared, later updates can overwrite values across languages.

Each locale now keeps an independent message object, so loading additional messages no longer causes all languages to become the same.

Fixes #223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

All languages become the same

1 participant