added sidebar's home page link translation

This commit is contained in:
styiannis 2021-07-17 20:55:53 +03:00
parent 656128a86a
commit 512cd33e3a
4 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import React, { useContext } from 'react';
import { useTranslation } from 'react-i18next';
import urlParse from 'url-parse';
import { useUser } from '../../../utils/hooks/';
import { PageStore } from '../../../utils/stores/';
@ -34,13 +35,15 @@ export function SidebarNavigationMenu() {
}
function MainMenuFirstSection() {
const { t } = useTranslation();
const items = [];
if (!sidebar.hideHomeLink) {
items.push({
link: links.home,
icon: 'home',
text: 'Home',
text: t('Home'),
className: 'nav-item-home',
});
}

View File

@ -5,6 +5,7 @@ export default {
'Created playlists': 'Λίστες αναπαραγωγής',
'Edit profile': 'Επεξεργασία προφίλ',
History: 'Ιστορικό',
Home: 'Αρχική',
Language: 'Γλώσσα',
Members: 'Μέλη',
'My media': 'Oι μεταφορτώσεις μου',

View File

@ -5,6 +5,7 @@ export default {
'Created playlists': 'Created playlists',
'Edit profile': 'Edit profile',
History: 'History',
Home: 'Home',
Language: 'Language',
Members: 'Members',
'My media': 'My media',

View File

@ -5,6 +5,7 @@ export default {
'Created playlists': 'Created playlists',
'Edit profile': 'Edit profile',
History: 'History',
Home: 'Home',
Language: 'Language',
Members: 'Members',
'My media': 'My media',