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

日本語の部分を英語にする vol1 #251

Merged
merged 13 commits into from
Feb 24, 2021
Merged

Conversation

youchann
Copy link
Contributor

@youchann youchann commented Feb 22, 2021

ref: #152

ひとまずコンポーネントの修正が不要となる部分は当PRでなおす。
が、propsの初期値は英語に切り替わるものもある。

propsの初期値が変わるコンポーネント

  • <FileUploader />
  • <ConfirmModal />

別PRで対応するコンポーネント

  • <DataTable />
  • <DatePicker />
  • <DateRangePicker />
  • <NavigationRail />(Footer)
  • <TextField />

@youchann youchann added the ガーデニング ガーデニングデーに対応する優先度の低いやつ label Feb 22, 2021
@youchann youchann self-assigned this Feb 22, 2021
@youchann youchann changed the title 日本語の部分を英語にする 日本語の部分を英語にする vol1 Feb 22, 2021
}) => (
// MEMO: Add className props to apply style
<a href={href} className={className} {...rest}>
<a href={href} className={className}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

{...rest}を加えると意図しないpropsも入り、警告が出るため変更。

return React.cloneElement(child, childNeighborDisabledProps);
}
return React.cloneElement(child, childProps);
const Button = React.cloneElement(child, {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

このあたり変数を減らした


// MEMO: おそらくstyled-component@5.x.xで型エラーが起こっているので、明示的に宣言している
Copy link
Contributor Author

Choose a reason for hiding this comment

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

直してみたら型エラーが出なかったので対応。

const margin = getMargin({
theme,
m: 1,
describe("margin", () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

marginについて、paddingについてそれぞれグルーピングした(出力がみやすくなる

@youchann youchann marked this pull request as ready for review February 22, 2021 03:39
@youchann youchann requested a review from a team as a code owner February 22, 2021 03:39
@youchann youchann requested review from maktak1995 and removed request for a team February 22, 2021 03:39
Copy link
Contributor

@maktak1995 maktak1995 left a comment

Choose a reason for hiding this comment

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

LGTM!

@youchann youchann merged commit b8c618e into master Feb 24, 2021
@youchann youchann deleted the translate-ja-to-en branch February 24, 2021 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ガーデニング ガーデニングデーに対応する優先度の低いやつ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants