google / google/app-resource-bundle

Add support for dangling comma

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
156
Forks
18
PR merge metrics
No merged PRs in 30d

Description

I’d like to request support for dangling commas in `.arb` files. While I understand that ARB is based on JSON, many modern JSON parsers and linters allow for trailing commas (like [json5](https://github.com/json5/json5)), and they bring several practical benefits:

- Cleaner diffs in version control
- Avoiding unnecessary merge conflicts
- Easier editing and reordering of entries

Would it be possible to support dangling commas in the ARB spec and in the tools that consume ARB files?

Let me know if this is something you’d consider or if there’s a reason it’s intentionally disallowed.

Thanks again!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.