|
@@ -12,7 +12,7 @@ export default (langName, lang) => new Elysia()
|
|
|
const data = Meteostanica.getData()
|
|
const data = Meteostanica.getData()
|
|
|
|
|
|
|
|
set.headers['content-type'] = 'text/html; charset=utf8'
|
|
set.headers['content-type'] = 'text/html; charset=utf8'
|
|
|
- return eta.render(`${langName}/index`, { data })
|
|
|
|
|
|
|
+ return eta.render(`${langName}/index`, { lang, data })
|
|
|
})
|
|
})
|
|
|
.get('/settings', ({ set }) => {
|
|
.get('/settings', ({ set }) => {
|
|
|
set.headers['content-type'] = 'text/html; charset=utf8'
|
|
set.headers['content-type'] = 'text/html; charset=utf8'
|