Skip to content

Commit 13ead0a

Browse files
committed
feat(notifications): Add missing translations
1 parent 275e8e3 commit 13ead0a

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

src/locales/en.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
const en = {
2+
notifications: {
3+
panel: {
4+
empty: "There is not notifications yet",
5+
title: "Notifications",
6+
},
7+
},
28
profile: {
39
actions: {
410
account: "My Account",

src/notifications/NotificationsPanel.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { getNotificationIcon } from "./helpers";
44
import moment from "moment";
55
import { NotificationsPanelComponents as NPC } from "./styled";
66
import React from "react";
7+
import { translate } from "../locales";
78
import { ClickAwayListener, Typography } from "@material-ui/core";
89

910
type Props = {
@@ -16,7 +17,9 @@ export const NotificationsPanel = ({ handleClose, notifications }: Props) => {
1617
<ClickAwayListener onClickAway={handleClose}>
1718
<NPC.Container>
1819
<NPC.Header>
19-
<Typography variant="caption">Notifications</Typography>
20+
<Typography variant="caption">
21+
{translate("notifications.panel.title")}
22+
</Typography>
2023
</NPC.Header>
2124
<NPC.Body>
2225
{notifications.map(n => (
@@ -35,7 +38,7 @@ export const NotificationsPanel = ({ handleClose, notifications }: Props) => {
3538
{getNotificationIcon("announcement")}
3639
<div aria-label="EmptyFeedback">
3740
<Typography variant="body2">
38-
<i>There is not notifications yet</i>
41+
<i>{translate("notifications.panel.empty")}</i>
3942
</Typography>
4043
</div>
4144
</NPC.Item>

0 commit comments

Comments
 (0)