1+ import { translate } from '@edgeandnode/components'
2+
13import { AppLocale , translations } from '@/i18n'
24
35import { NavItemDefinition } from './types'
@@ -13,7 +15,7 @@ export const navigation = (locale: AppLocale): NavItemDefinition[] => [
1315 slug : 'about' ,
1416 } ,
1517 {
16- title : translations [ locale ] . global . navigation . theGraphNetwork ,
18+ title : translate ( translations , locale , ' global.navigation.theGraphNetwork' ) ,
1719 slug : 'network' ,
1820 children : [
1921 {
@@ -58,10 +60,10 @@ export const navigation = (locale: AppLocale): NavItemDefinition[] => [
5860 divider : true ,
5961 } ,
6062 {
61- heading : translations [ locale ] . global . navigation . subgraphs ,
63+ heading : translate ( translations , locale , ' global.navigation.subgraphs' ) ,
6264 } ,
6365 {
64- title : translations [ locale ] . global . navigation . developing ,
66+ title : translate ( translations , locale , ' global.navigation.developing' ) ,
6567 slug : 'developing' ,
6668 children : [
6769 {
@@ -85,7 +87,7 @@ export const navigation = (locale: AppLocale): NavItemDefinition[] => [
8587 ] ,
8688 } ,
8789 {
88- title : translations [ locale ] . global . navigation . deploying ,
90+ title : translate ( translations , locale , ' global.navigation.deploying' ) ,
8991 slug : 'deploying' ,
9092 children : [
9193 {
@@ -106,7 +108,7 @@ export const navigation = (locale: AppLocale): NavItemDefinition[] => [
106108 ] ,
107109 } ,
108110 {
109- title : translations [ locale ] . global . navigation . publishing ,
111+ title : translate ( translations , locale , ' global.navigation.publishing' ) ,
110112 slug : 'publishing' ,
111113 children : [
112114 {
@@ -115,7 +117,7 @@ export const navigation = (locale: AppLocale): NavItemDefinition[] => [
115117 ] ,
116118 } ,
117119 {
118- title : translations [ locale ] . global . navigation . managing ,
120+ title : translate ( translations , locale , ' global.navigation.managing' ) ,
119121 slug : 'managing' ,
120122 children : [
121123 {
@@ -127,7 +129,7 @@ export const navigation = (locale: AppLocale): NavItemDefinition[] => [
127129 ] ,
128130 } ,
129131 {
130- title : translations [ locale ] . global . navigation . querying ,
132+ title : translate ( translations , locale , ' global.navigation.querying' ) ,
131133 slug : 'querying' ,
132134 children : [
133135 {
@@ -154,7 +156,7 @@ export const navigation = (locale: AppLocale): NavItemDefinition[] => [
154156 ] ,
155157 } ,
156158 {
157- title : translations [ locale ] . global . navigation . cookbook ,
159+ title : translate ( translations , locale , ' global.navigation.cookbook' ) ,
158160 slug : 'cookbook' ,
159161 children : [
160162 {
@@ -187,7 +189,7 @@ export const navigation = (locale: AppLocale): NavItemDefinition[] => [
187189 divider : true ,
188190 } ,
189191 {
190- heading : translations [ locale ] . global . navigation . indexing ,
192+ heading : translate ( translations , locale , ' global.navigation.indexing' ) ,
191193 } ,
192194 {
193195 slug : 'operating-graph-node' ,
@@ -202,7 +204,7 @@ export const navigation = (locale: AppLocale): NavItemDefinition[] => [
202204 divider : true ,
203205 } ,
204206 {
205- title : translations [ locale ] . global . navigation . releaseNotes ,
207+ title : translate ( translations , locale , ' global.navigation.releaseNotes' ) ,
206208 slug : 'release-notes' ,
207209 children : [
208210 {
0 commit comments