Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translation type check #392

Merged
merged 2 commits into from
Oct 26, 2024
Merged

Add translation type check #392

merged 2 commits into from
Oct 26, 2024

Conversation

AJGranowski
Copy link
Owner

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.

@AJGranowski
Copy link
Owner Author

LGTM

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 90.667% (-0.4%) from 91.057%
when pulling a14a72f on rc
into 65238e2 on mainline.

@AJGranowski AJGranowski merged commit e138a1a into mainline Oct 26, 2024
17 checks passed
@AJGranowski AJGranowski deleted the rc branch October 26, 2024 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants