webapp/src/main.astro

26 lines
559 B
Plaintext
Raw Normal View History

2022-09-09 11:53:35 +00:00
---
2022-11-13 09:25:31 +00:00
import { setLocale } from './stores/ui'
import './styles/app.scss'
import { t } from './utils/intl'
// Setting locale for prerendered content here
2022-09-09 11:53:35 +00:00
2022-09-24 10:34:57 +00:00
const lang = Astro.url.searchParams.get('lang') || 'ru'
2022-11-14 19:01:03 +00:00
console.log('[main.astro] astro runtime locale is', lang)
2022-09-24 10:34:57 +00:00
setLocale(lang)
2022-09-09 11:53:35 +00:00
---
2022-09-22 09:37:49 +00:00
<html lang={lang || 'ru'}>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/png" href="/favicon.png" />
<title>{t('Discours')}</title>
</head>
<body>
<slot />
</body>
</html>
2022-09-23 18:27:05 +00:00