Skip to content

Commit

Permalink
Merge pull request #8757 from weseek/support/140564-Localize-in-app-tags
Browse files Browse the repository at this point in the history
support: Localize in app tags language en change ja ch revision
  • Loading branch information
yuki-takei authored Apr 25, 2024
2 parents 102bd5f + 9b025ab commit 361dc21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/app/public/static/locales/zh_CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"Description": "描述",
"Admin": "管理",
"administrator": "管理员",
"Tags": "Tags",
"Tags": "标签",
"Close": "Close",
"Shortcuts": "快捷方式",
"CustomSidebar": "Custom Sidebar",
Expand Down
3 changes: 2 additions & 1 deletion apps/app/src/components/PageControls/PageControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type TagsProps = {

const Tags = (props: TagsProps): JSX.Element => {
const { onClickEditTagsButton } = props;
const { t } = useTranslation();

return (
<div className="grw-tag-labels-container d-flex align-items-center">
Expand All @@ -58,7 +59,7 @@ const Tags = (props: TagsProps): JSX.Element => {
onClick={onClickEditTagsButton}
>
<span className="material-symbols-outlined me-1">local_offer</span>
Tags
{t('Tags')}
</button>
</div>
);
Expand Down

0 comments on commit 361dc21

Please sign in to comment.