Skip to content

Commit f14350e

Browse files
Merge pull request #629 from 1enify/i18n-1
i18n: Translate Last Online status
2 parents 225d97f + 17734e4 commit f14350e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/user-presence/UserPresence.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Icon from "../ui/icon/Icon";
88
import { getActivityIconName } from "@/components/activity/Activity";
99
import { Tooltip } from "../ui/Tooltip";
1010
import { formatTimestamp } from "@/common/date";
11-
11+
import { t } from "@nerimity/i18lite";
1212
import { getActivityType } from "@/common/activityType";
1313

1414
// show full will disable overflow eclipses
@@ -79,7 +79,7 @@ const UserPresence = (props: {
7979
<Switch fallback={statusDetails()?.name()}>
8080
<Match when={lastOnlineAt() && !user()?.presence()?.status}>
8181
<div class={styles.lastOnline}>
82-
Last online {formatTimestamp(lastOnlineAt()!)}
82+
{t("status.lastOnline", { time: formatTimestamp(lastOnlineAt()!) })}
8383
</div>
8484
</Match>
8585
<Match when={activity()}>

src/locales/list/en-gb.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@
156156
"afk": "Away From Keyboard",
157157
"dnd": "Do Not Disturb",
158158
"offline": "Offline",
159-
"appearAsOffline": "Appear As Offline"
159+
"appearAsOffline": "Appear As Offline",
160+
"lastOnline": "Last online {{time}}"
160161
},
161162
"sidePane": {
162163
"home": "Home",

0 commit comments

Comments
 (0)