File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ export const getContentBySlug = (slug: string) => {
70
70
}
71
71
}
72
72
73
- const currentDir = getContentRoot ( )
74
- let fullPath = toPosixPath ( join ( currentDir , realSlug ) )
73
+ const contentRoot = getContentRoot ( )
74
+ let fullPath = toPosixPath ( join ( contentRoot , realSlug ) )
75
75
let contentNotTranslated = false
76
76
77
77
// If content is not translated, use english content fallback
@@ -107,9 +107,9 @@ export const getContent = (dir: string) => {
107
107
}
108
108
109
109
export const getTutorialsData = ( locale : string ) : ITutorial [ ] => {
110
- const currentDir = getContentRoot ( )
110
+ const contentRoot = getContentRoot ( )
111
111
const fullPath = join (
112
- currentDir ,
112
+ contentRoot ,
113
113
locale !== "en" ? `translations/${ locale ! } ` : "" ,
114
114
"developers/tutorials"
115
115
)
@@ -120,7 +120,7 @@ export const getTutorialsData = (locale: string): ITutorial[] => {
120
120
121
121
tutorialData = languageTutorialFiles . map ( ( dir ) => {
122
122
const filePath = join (
123
- currentDir ,
123
+ contentRoot ,
124
124
locale !== "en" ? `translations/${ locale ! } ` : "" ,
125
125
"developers/tutorials" ,
126
126
dir ,
You can’t perform that action at this time.
0 commit comments