Skip to content

Fix trailing comma in en.default.schema.json#97

Open
hersfang wants to merge 1 commit into
Shopify:mainfrom
hersfang:fix-locale-schema-trailing-comma
Open

Fix trailing comma in en.default.schema.json#97
hersfang wants to merge 1 commit into
Shopify:mainfrom
hersfang:fix-locale-schema-trailing-comma

Conversation

@hersfang

Copy link
Copy Markdown

What

Removes a trailing comma after the text_style object in locales/en.default.schema.json that makes the file invalid JSON.

Why

Strict JSON parsers (e.g. JSON.parse, Python's json) reject the file as shipped, which breaks translation tooling and any pipeline that round-trips locale files. Shopify's own parser tolerates it, so the bug is silent in the editor but surfaces the moment the file is processed externally.

$ python3 -c "import json; json.load(open('locales/en.default.schema.json'))"
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 76 column 3

Change

One character: },} on line 75. All other locale files already parse cleanly.

🤖 Generated with Claude Code

The trailing comma after the "text_style" object makes the locale schema
file invalid JSON, which breaks strict JSON parsers and translation tooling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant