26 lines
559 B
Plaintext
26 lines
559 B
Plaintext
---
|
|
import { setLocale } from './stores/ui'
|
|
import './styles/app.scss'
|
|
import { t } from './utils/intl'
|
|
|
|
// Setting locale for prerendered content here
|
|
|
|
const lang = Astro.url.searchParams.get('lang') || 'ru'
|
|
console.log('[main.astro] astro runtime locale is', lang)
|
|
setLocale(lang)
|
|
|
|
---
|
|
<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>
|
|
|
|
|