Ver código fonte

fix webserver

marek 1 mês atrás
pai
commit
29eb259936
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      routes/include/main.js

+ 1 - 1
routes/include/main.js

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