Skip to content

Commit

Permalink
Merge pull request #39 from donghoon-song/feature/support-language-sp…
Browse files Browse the repository at this point in the history
…ecific-words-order

feat: support language specific words order
  • Loading branch information
Mayandev committed Dec 16, 2023
2 parents db7a84c + 797e92a commit 27ef454
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"chooseShape": "Choose shape",
"customColor": "DIY color value",
"choosePart": "Choose",
"Choose item": "{{choose}} {{item}}",
"halloween": "Halloween",
"christmas": "Christmas"
}
1 change: 1 addition & 0 deletions public/locales/ko/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"chooseShape": "모양을 고르세요",
"customColor": "커스텀 컬러",
"Choose": "선택",
"Choose item": "{{item}} {{choose}}",
"halloween": "할로윈",
"christmas": "크리스마스"
}
1 change: 1 addition & 0 deletions public/locales/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"chooseShape": "请选择一种背景形状",
"customColor": "更多颜色选择",
"Choose": "选择",
"Choose item": "{{choose}} {{item}}",
"halloween": "万圣节装饰",
"christmas": "圣诞节装饰"
}
5 changes: 4 additions & 1 deletion src/pages/components/Modal/AvatarPicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export default function AvatarPicker({
<Modal onCancel={onCancel} onConfirm={() => onConfirm(currentIndex)}>
<div className="text-xl bg-white px-4 pt-2 pb-4 sm:p-6 sm:pb-4">
<h1 className="py-4 w-full">
{t('Choose')} {t(`${avatarPart.part}`)}
{t('Choose item', {
item: t(`${avatarPart.part}`),
choose: t('Choose'),
})}
</h1>
<div className="h-auto max-h-72 overflow-scroll">
<div className="grid gap-8 grid-cols-4 p-2">
Expand Down

1 comment on commit 27ef454

@vercel
Copy link

@vercel vercel bot commented on 27ef454 Dec 16, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

notion-avatar – ./

notion-avatar-mayandev.vercel.app
notion-avatar.vercel.app
notion-avatar-git-main-mayandev.vercel.app

Please sign in to comment.