+
+
+ {{ labelMap[item.locale] }}
+
+
+
+
+
diff --git a/playground/i18n/content/en/about.md b/playground/i18n/content/en/about.md
new file mode 100644
index 000000000..449429d43
--- /dev/null
+++ b/playground/i18n/content/en/about.md
@@ -0,0 +1 @@
+# About
diff --git a/playground/i18n/content/en/index.md b/playground/i18n/content/en/index.md
new file mode 100644
index 000000000..1a7557e04
--- /dev/null
+++ b/playground/i18n/content/en/index.md
@@ -0,0 +1,5 @@
+---
+title: Home
+---
+
+# Hello World
diff --git a/playground/i18n/content/en/resources/_dir.yml b/playground/i18n/content/en/resources/_dir.yml
new file mode 100644
index 000000000..050b3efc0
--- /dev/null
+++ b/playground/i18n/content/en/resources/_dir.yml
@@ -0,0 +1,3 @@
+title: 'Resources'
+navigation:
+ hello: true
diff --git a/playground/i18n/content/en/resources/case-studies.md b/playground/i18n/content/en/resources/case-studies.md
new file mode 100644
index 000000000..6deb35c71
--- /dev/null
+++ b/playground/i18n/content/en/resources/case-studies.md
@@ -0,0 +1,2 @@
+# Case studies
+
diff --git a/playground/i18n/content/en/resources/index.md b/playground/i18n/content/en/resources/index.md
new file mode 100644
index 000000000..f1804eaee
--- /dev/null
+++ b/playground/i18n/content/en/resources/index.md
@@ -0,0 +1,5 @@
+---
+navigation: false
+---
+
+# Resources
diff --git a/playground/i18n/content/zh/about.md b/playground/i18n/content/zh/about.md
new file mode 100644
index 000000000..7091a0187
--- /dev/null
+++ b/playground/i18n/content/zh/about.md
@@ -0,0 +1 @@
+# 关于
diff --git a/playground/i18n/content/zh/index.md b/playground/i18n/content/zh/index.md
new file mode 100644
index 000000000..54849d7f6
--- /dev/null
+++ b/playground/i18n/content/zh/index.md
@@ -0,0 +1,5 @@
+---
+title: 首页
+---
+
+# 你好世界
diff --git a/playground/i18n/content/zh/resources/_dir.yml b/playground/i18n/content/zh/resources/_dir.yml
new file mode 100644
index 000000000..7dab78ce4
--- /dev/null
+++ b/playground/i18n/content/zh/resources/_dir.yml
@@ -0,0 +1,3 @@
+title: '资源'
+navigation:
+ hello: true
diff --git a/playground/i18n/content/zh/resources/case-studies.md b/playground/i18n/content/zh/resources/case-studies.md
new file mode 100644
index 000000000..abafe9b6f
--- /dev/null
+++ b/playground/i18n/content/zh/resources/case-studies.md
@@ -0,0 +1,2 @@
+# 案例研究
+
diff --git a/playground/i18n/content/zh/resources/index.md b/playground/i18n/content/zh/resources/index.md
new file mode 100644
index 000000000..7ccbb582f
--- /dev/null
+++ b/playground/i18n/content/zh/resources/index.md
@@ -0,0 +1,5 @@
+---
+navigation: false
+---
+
+# 资源
diff --git a/playground/i18n/nuxt.config.ts b/playground/i18n/nuxt.config.ts
new file mode 100644
index 000000000..fb3da73c9
--- /dev/null
+++ b/playground/i18n/nuxt.config.ts
@@ -0,0 +1,20 @@
+import contentModule from '../../src/module'
+
+export default defineNuxtConfig({
+ modules: [
+ // @ts-ignore
+ contentModule
+ ],
+ content: {
+ documentDriven: true,
+ locales: ['en', 'zh'],
+ defaultLocale: 'en'
+ },
+ app: {
+ head: {
+ htmlAttrs: {
+ lang: 'en'
+ }
+ }
+ }
+})
diff --git a/src/module.ts b/src/module.ts
index c8d1ada12..2b4ed39ef 100644
--- a/src/module.ts
+++ b/src/module.ts
@@ -405,6 +405,7 @@ export default defineNuxtModule