fix: ubah teks stale villages alert ke bahasa inggris

This commit is contained in:
2026-05-28 14:19:21 +08:00
parent b7aecea433
commit 75d2ef5b4c

View File

@@ -270,7 +270,7 @@ function AppOverviewPage() {
<Group gap="sm" wrap="nowrap"> <Group gap="sm" wrap="nowrap">
<TbAlertTriangle size={18} color="var(--mantine-color-orange-5)" style={{ flexShrink: 0 }} /> <TbAlertTriangle size={18} color="var(--mantine-color-orange-5)" style={{ flexShrink: 0 }} />
<Text fw={700} size="sm" c="orange.4"> <Text fw={700} size="sm" c="orange.4">
{staleRes.data.count} desa tidak ada aktivitas dalam {staleDays} hari terakhir {staleRes.data.count} {staleRes.data.count === 1 ? 'village' : 'villages'} with no activity in the last {staleDays} days
</Text> </Text>
</Group> </Group>
<Group gap="xs" wrap="nowrap"> <Group gap="xs" wrap="nowrap">
@@ -279,9 +279,9 @@ function AppOverviewPage() {
value={String(staleDays)} value={String(staleDays)}
onChange={(v) => setStaleDays(Number(v) as 7 | 14 | 30)} onChange={(v) => setStaleDays(Number(v) as 7 | 14 | 30)}
data={[ data={[
{ label: '7H', value: '7' }, { label: '7D', value: '7' },
{ label: '14H', value: '14' }, { label: '14D', value: '14' },
{ label: '30H', value: '30' }, { label: '30D', value: '30' },
]} ]}
/> />
<ActionIcon variant="subtle" color="gray" size="sm" onClick={toggleStale}> <ActionIcon variant="subtle" color="gray" size="sm" onClick={toggleStale}>
@@ -305,7 +305,7 @@ function AppOverviewPage() {
{v.name} {v.name}
</Anchor> </Anchor>
<Text size="xs" c="orange.6" fw={600}> <Text size="xs" c="orange.6" fw={600}>
{v.daysSince === null ? 'Belum pernah ada aktivitas' : `${v.daysSince} hari lalu`} {v.daysSince === null ? 'No activity yet' : `${v.daysSince}d ago`}
</Text> </Text>
</Group> </Group>
))} ))}