We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02c4844 commit 703a03eCopy full SHA for 703a03e
2025/src/layouts/Layout.astro
@@ -1,8 +1,10 @@
1
---
2
import { GoogleFontsOptimizer } from "astro-google-fonts-optimizer";
3
+
4
+const { lang = 'ja' } = Astro.props;
5
6
<!DOCTYPE html>
-<html lang="ja">
7
+<html lang={lang}>
8
<head>
9
<meta charset="utf-8">
10
<meta name="viewport" content="width=device-width, initial-scale=1">
2025/src/pages/en.astro
@@ -3,7 +3,7 @@ import Layout from '../layouts/Layout.astro';
import LanguagePicker from '../components/LanguagePicker.astro'
-<Layout>
+<Layout lang="en">
<header class="hero">
<LanguagePicker />
<div class="container">
0 commit comments