Gujarati ARB file error#1049
Draft
calcitem wants to merge 1 commit into
Draft
Conversation
Add description metadata to all 444 empty @-key entries in
intl_gu.arb that previously had bare {} values. Weblate's ARB
parser strips entries with empty metadata objects during
processing, and its serializer produces invalid JSON when
doing so (missing commas, orphaned entries), causing the error:
JSONDecodeError("Expecting ',' delimiter: line 3873 column 5")
For entries that have descriptions in the English reference
file (intl_en.arb), those descriptions are copied over. For
the remaining entries, descriptions are generated from the
key names.
Co-authored-by: Calcitem <calcitem@outlook.com>
|
Cursor Agent can help with this pull request. Just |
|
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.



📜 Description
Fixed
intl_gu.arbby populating all 444 empty@key: {}metadata entries with"description"fields. Descriptions were either copied fromintl_en.arb(66 entries) or automatically generated from the key names (378 entries). This prevents Weblate from stripping these entries and subsequently generating invalid JSON.💡 Motivation and Context
This change addresses a
JSONDecodeError("Expecting ',' delimiter: line 3873 column 5")insrc/ui/flutter_app/lib/l10n/intl_gu.arbon theorigin/weblate/flutterbranch. The error was caused by a bug in Weblate's ARB serializer, which produced invalid JSON (missing commas, orphaned entries) after its parser stripped empty@key: {}metadata entries. By ensuring all@keyentries have a"description", Weblate will no longer attempt to strip them, thus preventing the JSON corruption.💚 How did you test it?
The fix was verified by:
intl_gu.arbfile.📝 Checklist
🔮 Next steps
After this branch is merged, a Weblate administrator may need to reset or trigger a re-synchronization of the
weblate/flutterbranch to ensure the corrupted file on Weblate's side is overwritten with this corrected version.