Skip to content

Commit

Permalink
fix: translations and refactors for code rabbit
Browse files Browse the repository at this point in the history
  • Loading branch information
m-abe-dev committed Sep 30, 2024
1 parent 0e2b1be commit 90d3506
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import ManagerEmptyContent from "@reearth/beta/ui/components/ManagerBase/ManagerEmptyContent";
import { useT } from "@reearth/services/i18n";
import { styled, useTheme } from "@reearth/services/theme";
import { FC, useMemo, useRef } from "react";
import { FC, useMemo, useRef, Fragment } from "react";

import useHooks from "./hooks";
import ProjectGridViewItem from "./Project/ProjectGridViewItem";
Expand Down Expand Up @@ -63,7 +63,7 @@ const Projects: FC<{ workspaceId?: string }> = ({ workspaceId }) => {
<ManagerHeader
size="large"
actions={[
<>
<Fragment key="action-buttons">
<ManagerHeaderButton
key={"create-project"}
title={t("New Project")}
Expand All @@ -86,7 +86,7 @@ const Projects: FC<{ workspaceId?: string }> = ({ workspaceId }) => {
ref={fileInputRef}
onChange={handleImportProject}
/>
</>
</Fragment>
]}
sortValue={sortValue}
sortOptions={sortOptions}
Expand Down
8 changes: 4 additions & 4 deletions web/src/beta/lib/reearth-ui/components/Icon/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export default {
arrowsHorizontalIn: ArrowsHorizontalIn,
arrowsHorizontalOut: ArrowsHorizontalOut,
article: Article,
aToZ: AToZ,
book: Book,
bracketsCurly: BracketsCurly,
buildings: Buildings,
Expand Down Expand Up @@ -182,6 +183,7 @@ export default {
deviceMobile: DeviceMobile,
dotsSixVertical: DotsSixVertical,
dotsThreeVertical: DotsThreeVertical,
downloadSimple: DownloadSimple,
editMode: EditMode,
editor: Editor,
exit: Exit,
Expand Down Expand Up @@ -249,6 +251,7 @@ export default {
sidebar: Sidebar,
sToL: SToL,
lToS: LToS,
signIn: SignIn,
star: Star,
starFilled: StarFilled,
square: Square,
Expand Down Expand Up @@ -278,8 +281,5 @@ export default {
usersFour: UsersFour,
videoFilled: VideoFilled,
warning: Warning,
aToZ: AToZ,
zToA: ZToA,
downloadSimple: DownloadSimple,
signIn: SignIn
zToA: ZToA
};
3 changes: 1 addition & 2 deletions web/src/services/i18n/translations/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ First Created: ''
Last Updated: ''
New Project: ''
Import: ''
Export: ''
All projects: ''
Search Result for: ''
Project Name: ''
Expand All @@ -33,6 +32,7 @@ Created At: ''
No Project has been created yet: ''
Rename: ''
Project Setting: ''
Export: ''
Create new project: ''
Project Name *: ''
Text: ''
Expand Down Expand Up @@ -348,7 +348,6 @@ Failed to export project.: ''
Successfully exported project!: ''
Failed to import project.: ''
Successfully imported project!: ''
Export Project: ''
Failed to update property.: ''
Successfully updated the property value!: ''
Failed to create story.: ''
Expand Down
3 changes: 1 addition & 2 deletions web/src/services/i18n/translations/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ First Created: ''
Last Updated: ''
New Project: 新規プロジェクト
Import: インポート
Export: エクスポート
All projects: ''
Search Result for: ''
Project Name: プロジェクト名
Expand All @@ -33,6 +32,7 @@ Created At: ''
No Project has been created yet: ''
Rename: 名称変更
Project Setting: プロジェクト設定
Export: エクスポート
Create new project: ''
Project Name *: ''
Text: ''
Expand Down Expand Up @@ -348,7 +348,6 @@ Failed to export project.: プロジェクトのエクスポートに失敗し
Successfully exported project!: プロジェクトのエクスポートに成功しました!
Failed to import project.: プロジェクトのインポートに失敗しました。
Successfully imported project!: プロジェクトのインポートに成功しました!
Export Project: プロジェクトのエクスポート
Failed to update property.: プロパティのアップデートに失敗しました。
Successfully updated the property value!: ''
Failed to create story.: ストーリーの作成に失敗しました。
Expand Down

0 comments on commit 90d3506

Please sign in to comment.