@@ -28,6 +28,7 @@ import {ASIDE_HEADER_COMPACT_KEY, TENANT_INITIAL_PAGE_KEY} from '../../utils/con
2828import { getTenantPath } from '../Tenant/TenantPages' ;
2929import { UserSettings } from '../UserSettings/UserSettings' ;
3030
31+ import i18n from './i18n' ;
3132import './AsideNavigation.scss' ;
3233
3334const b = cn ( 'kv-navigation' ) ;
@@ -58,15 +59,19 @@ function YbdInternalUser({ydbUser, logout}: YbdInternalUserProps) {
5859 return (
5960 < div className = { b ( 'internal-user' ) } >
6061 < div className = { b ( 'user-info-wrapper' ) } >
61- < div className = { b ( 'ydb-internal-user-title' ) } > YDB user</ div >
62+ < div className = { b ( 'ydb-internal-user-title' ) } > { i18n ( 'account. user' ) } </ div >
6263 { ydbUser && < div className = { b ( 'username' ) } > { ydbUser } </ div > }
6364 </ div >
6465 { ydbUser ? (
65- < Button view = "flat-secondary" onClick = { logout } title = " logout" >
66+ < Button view = "flat-secondary" title = { i18n ( 'account. logout' ) } onClick = { logout } >
6667 < Icon data = { signOutIcon } size = { 16 } />
6768 </ Button >
6869 ) : (
69- < Button view = "flat-secondary" title = "login" onClick = { handleLoginClick } >
70+ < Button
71+ view = "flat-secondary"
72+ title = { i18n ( 'account.login' ) }
73+ onClick = { handleLoginClick }
74+ >
7075 < Icon data = { signInIcon } size = { 16 } />
7176 </ Button >
7277 ) }
@@ -91,7 +96,7 @@ function YdbUserDropdown({isCompact, popupAnchor, ydbUser}: YdbUserDropdownProps
9196 compact = { isCompact }
9297 item = { {
9398 id : 'user-popup' ,
94- title : ydbUser ?. login ?? 'Account' ,
99+ title : ydbUser ?. login ?? i18n ( 'navigation-item.account' ) ,
95100 current : isUserDropdownVisible ,
96101 icon : iconData ,
97102 iconSize : 22 ,
@@ -142,7 +147,7 @@ export const useGetLeftNavigationItems = () => {
142147 const items : MenuItem [ ] = [
143148 {
144149 id : TENANT_PAGES_IDS . query ,
145- title : 'Query' ,
150+ title : i18n ( 'pages.query' ) ,
146151 icon : terminalIcon ,
147152 iconSize : 20 ,
148153 location : getTenantPath ( {
@@ -152,7 +157,7 @@ export const useGetLeftNavigationItems = () => {
152157 } ,
153158 {
154159 id : TENANT_PAGES_IDS . diagnostics ,
155- title : 'Diagnostics' ,
160+ title : i18n ( 'pages.diagnostics' ) ,
156161 icon : pulseIcon ,
157162 iconSize : 20 ,
158163 location : getTenantPath ( {
@@ -212,7 +217,7 @@ function AsideNavigation(props: AsideNavigationProps) {
212217 compact = { compact }
213218 item = { {
214219 id : 'documentation' ,
215- title : 'Documentation' ,
220+ title : i18n ( 'navigation-item.documentation' ) ,
216221 icon : supportIcon ,
217222 iconSize : 24 ,
218223 onItemClick : ( ) => {
@@ -224,7 +229,7 @@ function AsideNavigation(props: AsideNavigationProps) {
224229 < FooterItem
225230 item = { {
226231 id : 'user-settings' ,
227- title : 'Settings' ,
232+ title : i18n ( 'navigation-item.settings' ) ,
228233 icon : settingsIcon ,
229234 iconSize : 24 ,
230235 current : visiblePanel === Panel . UserSettings ,
0 commit comments