atsuku nare

This commit is contained in:
simio 2025-05-29 01:48:12 -03:00
parent a9057a1c97
commit cff4b94c5a

View File

@ -34,7 +34,10 @@ function createCommonPath(router, path, renderParams = {
renderOptions.langPath = ""
createPath('/' + path, cb, renderOptions, router)
for(let l in langs){
if(langs[l] == default_lang) continue
if(langs[l] == default_lang){
// getTlPartials()
continue
}
const otherLangRender = {...renderOptions}
otherLangRender.lang = 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