Skip to content

Commit 60a02f1

Browse files
committed
title translations
1 parent 6c186ef commit 60a02f1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

client/modules/IDE/components/Header/MobileNav.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ const MobileNav = (props) => {
152152
const project = useSelector((state) => state.project);
153153
const user = useSelector((state) => state.user);
154154

155+
const { t } = useTranslation();
156+
155157
const { pathname } = useLocation();
156158
const editorLink = useSelector(selectSketchPath);
157159

@@ -161,14 +163,14 @@ const MobileNav = (props) => {
161163
case '/':
162164
return project.name;
163165
case '/login':
164-
return 'Login';
166+
return t('LoginView.Login');
165167
case '/signup':
166-
return 'Signup';
168+
return t('LoginView.SignUp');
167169
case '/account':
168-
return 'Account Settings';
170+
return t('AccountView.Settings');
169171
case '/p5/sketches':
170172
case '/p5/collections':
171-
return 'Examples';
173+
return t('Nav.File.Examples');
172174
case `/${user.username}/assets`:
173175
case `/${user.username}/collections`:
174176
case `/${user.username}/sketches`:

0 commit comments

Comments
 (0)