mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-21 15:53:21 +01:00
added sidebar's home page link translation
This commit is contained in:
parent
656128a86a
commit
512cd33e3a
@ -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',
|
||||
});
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ export default {
|
||||
'Created playlists': 'Λίστες αναπαραγωγής',
|
||||
'Edit profile': 'Επεξεργασία προφίλ',
|
||||
History: 'Ιστορικό',
|
||||
Home: 'Αρχική',
|
||||
Language: 'Γλώσσα',
|
||||
Members: 'Μέλη',
|
||||
'My media': 'Oι μεταφορτώσεις μου',
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user