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

[UPDATE] error friendly messages for null and undefined values #1041

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

windmillcode0
Copy link
Contributor

You may run your i18n files through ai and ai may not be perfect it may introduce undefined or null values this changes gives more human friendly output for the developer to more easily fix the problem

Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 6bff73d
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/670023c6c7601b00082e25fa
😎 Deploy Preview https://deploy-preview-1041--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@aklinker1 aklinker1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, can you add a test?

https://github.com/wxt-dev/wxt/blob/main/packages/i18n/src/__tests__/build.test.ts

cd packages/18n
pnpm test

packages/i18n/src/build.ts Outdated Show resolved Hide resolved
@aklinker1
Copy link
Collaborator

Will merge next time I'm on github once the checks pass!

Copy link

pkg-pr-new bot commented Oct 4, 2024

Open in Stackblitz

@wxt-dev/auto-icons

pnpm add https://pkg.pr.new/@wxt-dev/auto-icons@1041

@wxt-dev/i18n

pnpm add https://pkg.pr.new/@wxt-dev/i18n@1041

@wxt-dev/module-react

pnpm add https://pkg.pr.new/@wxt-dev/module-react@1041

@wxt-dev/module-svelte

pnpm add https://pkg.pr.new/@wxt-dev/module-svelte@1041

@wxt-dev/module-solid

pnpm add https://pkg.pr.new/@wxt-dev/module-solid@1041

@wxt-dev/module-vue

pnpm add https://pkg.pr.new/@wxt-dev/module-vue@1041

wxt

pnpm add https://pkg.pr.new/wxt@1041

commit: 6bff73d

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.98%. Comparing base (faa4fcb) to head (6bff73d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1041      +/-   ##
==========================================
+ Coverage   81.79%   81.98%   +0.19%     
==========================================
  Files         127      127              
  Lines        6635     6635              
  Branches     1102     1103       +1     
==========================================
+ Hits         5427     5440      +13     
+ Misses       1194     1181      -13     
  Partials       14       14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aklinker1 aklinker1 merged commit 2c5ba64 into wxt-dev:main Oct 4, 2024
18 checks passed
@aklinker1
Copy link
Collaborator

Timeraa pushed a commit to Timeraa/wxt that referenced this pull request Oct 4, 2024
… message files (wxt-dev#1041)

Co-authored-by: windmillcode0 <michaelodumosu57@gmail.com>
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.

3 participants