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

feat: support non-english characters and responsive design #56

Merged
merged 3 commits into from Apr 18, 2022

Conversation

nottyo
Copy link

@nottyo nottyo commented Apr 18, 2022

Features

  • Add <meta charset="UTF-8"> to html template to be able to render non English characters on Jest Preview Dashboard.
  • Add <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover"> to support responsive design on Jest Preview Dashboard.

I added new component Translate and add test to it.

image

@nottyo nottyo changed the title support non-english characters and responsive design feat: support non-english characters and responsive design Apr 18, 2022
demo/__tests__/Translate.test.tsx Outdated Show resolved Hide resolved
@@ -0,0 +1,14 @@
const translate = () => {
Copy link
Owner

Choose a reason for hiding this comment

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

Can you use the function component and make it PascalCase, just a convention :)

Suggested change
const translate = () => {
function translate(){

Copy link
Author

Choose a reason for hiding this comment

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

Sure. Fixed by nottyo@9c39179

@nvh95
Copy link
Owner

nvh95 commented Apr 18, 2022

@nottyo Thanks for your PR. I left some comments. Could you please look into it?

@nottyo
Copy link
Author

nottyo commented Apr 18, 2022

@nvh95 Thanks. I've fixed it. nottyo@9c39179

@@ -0,0 +1,14 @@
function translate(){
Copy link
Owner

Choose a reason for hiding this comment

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

Can you Capitalize? @nottyo

Copy link
Author

@nottyo nottyo Apr 18, 2022

Choose a reason for hiding this comment

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

Sure. It's fixed. 9bdfaae

@nvh95 nvh95 merged commit 81be467 into nvh95:main Apr 18, 2022
@nvh95
Copy link
Owner

nvh95 commented Apr 18, 2022

@all-contributors please add @nottyo for code

@allcontributors
Copy link
Contributor

@nvh95

I've put up a pull request to add @nottyo! 🎉

@nvh95
Copy link
Owner

nvh95 commented Apr 18, 2022

@nottyo Thank you again. This change will land in 0.1.5

@nvh95
Copy link
Owner

nvh95 commented Apr 18, 2022

Welcome to contributors!

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.

None yet

2 participants