atsuku nare
This commit is contained in:
parent
a9057a1c97
commit
cff4b94c5a
@ -34,7 +34,10 @@ function createCommonPath(router, path, renderParams = {
|
|||||||
renderOptions.langPath = ""
|
renderOptions.langPath = ""
|
||||||
createPath('/' + path, cb, renderOptions, router)
|
createPath('/' + path, cb, renderOptions, router)
|
||||||
for(let l in langs){
|
for(let l in langs){
|
||||||
if(langs[l] == default_lang) continue
|
if(langs[l] == default_lang){
|
||||||
|
// getTlPartials()
|
||||||
|
continue
|
||||||
|
}
|
||||||
const otherLangRender = {...renderOptions}
|
const otherLangRender = {...renderOptions}
|
||||||
otherLangRender.lang = langs[l]
|
otherLangRender.lang = langs[l]
|
||||||
otherLangRender.langPath = '/' + langs[l]
|
otherLangRender.langPath = '/' + langs[l]
|
||||||
@ -50,4 +53,15 @@ function createPath(path, cb, renderOptions, router){
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// function getTlPartials(){
|
||||||
|
// try{
|
||||||
|
// console.log(langs[l])
|
||||||
|
// const filenames = fs.readdirSync(appDir + '/views/partials/translations/' + default_lang + '/' + path)
|
||||||
|
// const partialName = f.split('hbs')[0]
|
||||||
|
// // tlElements =
|
||||||
|
// }catch(e){
|
||||||
|
// // console.log(e)
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
module.exports = createCommonPath
|
module.exports = createCommonPath
|
||||||
|
Loading…
Reference in New Issue
Block a user