Urgent.News

What's breaking now, across thousands of outlets.

Tech

Free JSON Locale Checker CLI for i18n Projects

What the CLI does @json-translate/check compares translated JSON locale files against a source locale. It is designed for the last step after translation: the point where a developer wants to know whether a translated file can safely enter a build. It fails when a target file cannot be parsed as JSON. It reports keys that exist in the source but are missing from the translation. It reports extra…

The JSON Locale Checker CLI is a tool specifically designed for internationalization (i18n) projects. It compares translated JSON locale files against a source locale to ensure safety for the build process. The CLI is run after translation and fails if the target file cannot be parsed as JSON, reports missing keys from the source, and identifies extra keys in the translated file.

It also compares placeholder tokens like {name}, {{count}}, ${value}, and %s. The tool can be executed using npx without requiring a project dependency. An example failure scenario includes a French locale losing a key, adding an obsolete key, and dropping a placeholder. The CLI is best used in the best first workflow, where it is integrated into the continuous integration (CI) process for every locale file that the application loads at runtime, turning missing keys and broken placeholders into pull-request failures rather than customer-facing bugs.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Notes from a 2 AM On-Call: Why Harper's WASM Module Silently Failed in Our Self-Hosted VSCode Server

Notes from a 2 AM On-Call: Why Harper's WASM Module Silently Failed in Our Self-Hosted VSCode Server The Failure Symptom [Extension Host] Error loading webview: Failed to execute 'postMessage' on…

  • Harper WASM module failed silently during 2 AM on-call rotation
  • Reverse proxy configuration blocked Content-Security-Policy headers
  • Adding correct CSP headers restored suggestions within 200ms

U.S. Data Center Boom Shows Cracks

In the United States, the world’s largest artificial intelligence (AI) infrastructure market, at least 47 large-scale data center projects have faced disruptions this year alone.

  • At least 47 large-scale U.S. data center projects have faced setbacks this year.
  • Funding shortages and power shortages are primary causes of disruptions.
  • Oracle delays rent payments for Project Jupiter in New Mexico due to power shortage.

More from Monday 19 October →