feat(langs): Add internacionalization functionality
This commit is contained in:
parent
eef9ec9457
commit
45fcc13497
27 changed files with 1330 additions and 390 deletions
|
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
import { ViewTransitions } from 'astro:transitions';
|
||||
import i18next, { t } from 'i18next';
|
||||
import { HeadHrefLangs } from 'astro-i18next/components';
|
||||
export interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
|
@ -12,13 +14,14 @@ const { title } = Astro.props;
|
|||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang={i18next.language}>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="description" content="Astro description" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<HeadHrefLangs />
|
||||
<title>{title}</title>
|
||||
<ViewTransitions />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue