Support JSONC locale files and update i18n handling #4
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/change-language-json-to-jsonc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@std/jsonc
as a dependency indeno.jsonc
anddeno.lock
.jsonc
files with comments.json
to.jsonc
and add inline commentsjsonc
filesThis 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.