-
-
Notifications
You must be signed in to change notification settings - Fork 540
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(website): Introduction to textlint #986
Conversation
website/.textlintrc.json
Outdated
"1.1.3.箇条書き": false, | ||
"1.2.1.句点(。)と読点(、)": false, | ||
"1.2.2.ピリオド(.)とカンマ(,)": false, | ||
"3.1.1.全角文字と半角文字の間": false, | ||
"4.1.1.句点(。)": false, | ||
"4.2.1.感嘆符(!)": false, | ||
"4.2.2.疑問符(?)": false, | ||
"4.3.7.山かっこ<>": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is taken from react's textlint rule
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your investigation! I left some comments, please check it.
@unvalley I don't have personal opinions about settings. If you have , please give some advice about settings like prh.yaml etc.
- name: Run textlint | ||
working-directory: website | ||
run: pnpm textlint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like you to create a new file like "ja-translation.yaml" and add this step to that file.
Also, please update the codeowner file for "ja-translation.yaml", ".textlintrc.json" and "prh.yaml".
ref: https://github.com/biomejs/biome/blob/main/.github/CODEOWNERS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review!
feat: CI for running Japanese translation checks in textlint ← added CI for running Japanese translation checks in textlint!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this file diff be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@unvalley
Sorry! I left it as it was...!
remove: Run textlint from website deploy ci ← fixed in
✅ Deploy Preview for biomejs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
bb5cca8
to
6c73bdf
Compare
9459873
to
58caa8e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that the rules have been decided, pn textlint:fix has been used to resolve the syntax errors that were currently there 🙏
"4.2.1.感嘆符(!)": false, | ||
"4.2.2.疑問符(?)": false, | ||
"4.3.7.山かっこ<>": false, | ||
"4.3.2.大かっこ[]": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "4.3.2. Large brackets []" rule was causing the caution markdown to collapse, so we have added an additional off
biome/website/src/content/docs/ja/guides/getting-started.mdx
Lines 28 to 30 in 6739a51
:::note[注] | |
Biomeをローカルではなくグローバルにインストールすることも可能ですが、推奨されていません。 | |
::: |
@yossydev After resolving this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yossydev
I think we don't need this workflow file, because we are currently using netlify. And netlify provides the preview feature by itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@nissy-dev please merge this after checking your requested changes🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks!
This PR is not yet perfect!
Please review the rules I have added and if there are no problems, I will fix the errors and push it again!
Summary
Other OSS translation projects and the textlint rules used in them
I have installed
textlint-rule-preset-jtf-style
which is the most used of them all!Test Plan