xddddddd
This commit is contained in:
parent
42e1a65b43
commit
5953a14893
@ -3,7 +3,7 @@ const appDir = dirname(require.main.filename);
|
|||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const langs = ["es", "en"]
|
const langs = ["es", "en"]
|
||||||
|
|
||||||
function createCommonPath(router, path, renderParams = {
|
async function createCommonPath(router, path, renderParams = {
|
||||||
}, cb = () => {}){
|
}, cb = () => {}){
|
||||||
const defaultParams = {
|
const defaultParams = {
|
||||||
view: path,
|
view: path,
|
||||||
@ -30,11 +30,13 @@ function createCommonPath(router, path, renderParams = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
renderOptions.lang = "es"
|
renderOptions.lang = "es"
|
||||||
createPath('/' + path, cb, renderOptions, router)
|
renderOptions.langPath = ""
|
||||||
langs.forEach(l => {
|
await createPath('/' + path, cb, renderOptions, router)
|
||||||
renderOptions.lang = l
|
// for(let l in langs){
|
||||||
createPath('/' + l + "/" + path, cb, renderOptions, router)
|
// renderOptions.lang = l
|
||||||
})
|
// renderOptions.langPath = l + '/'
|
||||||
|
// await createPath('/' + renderOptions.langPath + path, cb, renderOptions, router)
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createPath(path, cb, renderOptions, router){
|
async function createPath(path, cb, renderOptions, router){
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<center id="top" height="4" class="main_div">
|
<center id="top" height="4" class="main_div">
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<marquee>Puede que esta red deje de andar por https cada 30 minutos. En su lugar, usa <a href="http://lyricaltokarev.com">http</a></marquee>
|
<marquee>Puede que esta red deje de andar por https cada 30 minutos. En su lugar, usa <a href="http://lyricaltokarev.com/{{langPath}}home">http</a></marquee>
|
||||||
<table class="tabidachi_table" cellspacing="20" cellmargin="60" width="100%">
|
<table class="tabidachi_table" cellspacing="20" cellmargin="60" width="100%">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user