Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf763472

Browse files
fix: Fix template label (#1685)
1 parent34b1e19 commitf763472

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

‎site/src/components/WorkspaceStats/WorkspaceStats.tsx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ import { CardRadius, MONOSPACE_FONT_FAMILY } from "../../theme/constants"
88
import{combineClasses}from"../../util/combineClasses"
99
import{getDisplayStatus}from"../../util/workspace"
1010

11+
constLanguage={
12+
templateLabel:"Template",
13+
statusLabel:"Status",
14+
versionLabel:"Version",
15+
lastBuiltLabel:"Last Built",
16+
outdated:"Outdated",
17+
upToDate:"Up to date",
18+
}
19+
1120
exportinterfaceWorkspaceStatsProps{
1221
workspace:Workspace
1322
}
@@ -20,7 +29,7 @@ export const WorkspaceStats: React.FC<WorkspaceStatsProps> = ({ workspace }) =>
2029
return(
2130
<divclassName={styles.stats}>
2231
<divclassName={styles.statItem}>
23-
<spanclassName={styles.statsLabel}>Workspace</span>
32+
<spanclassName={styles.statsLabel}>{Language.templateLabel}</span>
2433
<Link
2534
component={RouterLink}
2635
to={`/templates/${workspace.template_name}`}
@@ -31,7 +40,7 @@ export const WorkspaceStats: React.FC<WorkspaceStatsProps> = ({ workspace }) =>
3140
</div>
3241
<divclassName={styles.statsDivider}/>
3342
<divclassName={styles.statItem}>
34-
<spanclassName={styles.statsLabel}>Status</span>
43+
<spanclassName={styles.statsLabel}>{Language.statusLabel}</span>
3544
<spanclassName={styles.statsValue}>
3645
<spanstyle={{color:status.color}}role="status">
3746
{status.status}
@@ -40,18 +49,18 @@ export const WorkspaceStats: React.FC<WorkspaceStatsProps> = ({ workspace }) =>
4049
</div>
4150
<divclassName={styles.statsDivider}/>
4251
<divclassName={styles.statItem}>
43-
<spanclassName={styles.statsLabel}>Version</span>
52+
<spanclassName={styles.statsLabel}>{Language.versionLabel}</span>
4453
<spanclassName={styles.statsValue}>
4554
{workspace.outdated ?(
46-
<spanstyle={{color:theme.palette.error.main}}>Outdated</span>
55+
<spanstyle={{color:theme.palette.error.main}}>{Language.outdated}</span>
4756
) :(
48-
<spanstyle={{color:theme.palette.text.secondary}}>Up to date</span>
57+
<spanstyle={{color:theme.palette.text.secondary}}>{Language.upToDate}</span>
4958
)}
5059
</span>
5160
</div>
5261
<divclassName={styles.statsDivider}/>
5362
<divclassName={styles.statItem}>
54-
<spanclassName={styles.statsLabel}>Last built</span>
63+
<spanclassName={styles.statsLabel}>{Language.lastBuiltLabel}</span>
5564
<spanclassName={styles.statsValue}data-chromatic="ignore">
5665
{dayjs().to(dayjs(workspace.latest_build.created_at))}
5766
</span>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp