Support JSONC locale files and update i18n handling #4

Merged
maxp merged 5 commits from feature/change-language-json-to-jsonc into main 2025-05-30 11:46:33 +02:00
Owner
  • Add @std/jsonc as a dependency in deno.jsonc and deno.lock
  • Update i18n loader to support .jsonc files with comments
  • Rename locale files from .json to .jsonc and add inline comments
  • Set VSCode to use Deno JSONC formatter for jsonc files

This change enables the i18n module to load translation files written in JSONC format, allowing for inline comments and improved readability. The @std/jsonc library is added as a dependency and used to parse both JSON and JSONC files. The loader prioritizes .jsonc files when both .json and .jsonc exist. VSCode settings are updated to use the Deno formatter for JSONC files. Locale files are renamed and enhanced with comments for clarity.

- Add `@std/jsonc` as a dependency in `deno.jsonc` and `deno.lock` - Update i18n loader to support `.jsonc` files with comments - Rename locale files from `.json` to `.jsonc` and add inline comments - Set VSCode to use Deno JSONC formatter for `jsonc` files This change enables the i18n module to load translation files written in JSONC format, allowing for inline comments and improved readability. The `@std/jsonc` library is added as a dependency and used to parse both JSON and JSONC files. The loader prioritizes `.jsonc` files when both `.json` and `.jsonc` exist. VSCode settings are updated to use the Deno formatter for JSONC files. Locale files are renamed and enhanced with comments for clarity.
maxp added 5 commits 2025-05-30 11:46:10 +02:00
- Adds @std/jsonc dependency to improve JSONC handling capabilities
- Updates lock file to include integrity and dependency data for @std/jsonc
- Adds support for `.jsonc` format alongside `.json` for locale files
- Prioritizes `.jsonc` format when both file types are available
- Adds inline comments to JSON files to improve readability
- Renames `.json` files to `.jsonc` to support comments
- Improves organization of translation entries
feat(vscode): add JSONC formatter configuration
All checks were successful
Auto Changelog & Release / detect-version-change (push) Successful in 2s
Auto Changelog & Release / release (push) Has been skipped
Auto Changelog & Release / changelog-only (push) Successful in 6s
c7af1fb6ca
chore(changelog): update unreleased changelog
All checks were successful
CI / build (pull_request) Successful in 7s
c6d5bf60fc
maxp merged commit 32d472a606 into main 2025-05-30 11:46:33 +02:00
maxp deleted branch feature/change-language-json-to-jsonc 2025-05-30 11:46:33 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: maxp/systemd-timer#4
No description provided.