Skip to content

Commit a296089

Browse files
committed
fix: 누락된 번역 추가
1 parent 5eba64e commit a296089

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/common/src/components/mdx_components/session_list.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,15 @@ const SessionItem: React.FC<{ session: BackendAPISchemas.SessionSchema }> = Susp
4747
export const SessionList: React.FC = ErrorBoundary.with(
4848
{ fallback: ErrorFallback },
4949
Suspense.with({ fallback: <CircularProgress /> }, () => {
50+
const { language } = Hooks.Common.useCommonContext();
5051
const backendAPIClient = Hooks.BackendAPI.useBackendClient();
5152
const { data: sessions } = Hooks.BackendAPI.useSessionsQuery(backendAPIClient);
5253

54+
const warningMessage =
55+
language === "ko"
56+
? "* 발표 목록은 발표자 사정에 따라 변동될 수 있습니다."
57+
: "* The list of sessions may change due to the speaker's circumstances.";
58+
5359
const [selectedCategoryIds, setSelectedCategories] = React.useState<string[]>([]);
5460
const toggleCategory = (catId: string) => setSelectedCategories((ps) => (ps.includes(catId) ? ps.filter((id) => id !== catId) : [...ps, catId]));
5561
const categories = React.useMemo(
@@ -70,9 +76,7 @@ export const SessionList: React.FC = ErrorBoundary.with(
7076
return (
7177
<Box sx={{ my: 2 }}>
7278
<Box>
73-
<Typography variant="body2" sx={{ width: "100%", textAlign: "right", my: 0.5, fontSize: "0.6rem" }}>
74-
* 발표 목록은 발표자 사정에 따라 변동될 수 있습니다.
75-
</Typography>
79+
<Typography variant="body2" sx={{ width: "100%", textAlign: "right", my: 0.5, fontSize: "0.6rem" }} children={warningMessage} />
7680
<StyledDivider />
7781
<Stack direction="row" sx={{ flexWrap: "wrap", justifyContent: "center", gap: "0.1rem 0.2rem", my: 1 }}>
7882
{categories.map((cat) => (

0 commit comments

Comments
 (0)