Adds verification to translation files before type casting them.
Why are these changes being made?
.addTranslation(zh as typeof zh & {locale: "zh"}); was kinda gross.
It would be nice if we could import JSON files as const, but since we can't do that quite yet I figured this would be the next best thing.
coverage: 90.667% (-0.4%) from 91.057%
when pulling a14a72f1c69eaa4389b484139ec3bd47a4ab8fee on rc
into 65238e2f7a4599b2be5fa42bf46332a75c61c2b4 on mainline.
What are these changes?
Adds verification to translation files before type casting them.
Why are these changes being made?
.addTranslation(zh as typeof zh & {locale: "zh"});
was kinda gross.It would be nice if we could import JSON files as const, but since we can't do that quite yet I figured this would be the next best thing.
Checklist before merging
./npm -- run clean-verify
succeeds.