Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The syntax of TypeScript is used in docs/guide/seo. #3411

Closed
ausir0726 opened this issue Mar 14, 2025 · 0 comments
Closed

The syntax of TypeScript is used in docs/guide/seo. #3411

ausir0726 opened this issue Mar 14, 2025 · 0 comments

Comments

@ausir0726
Copy link
Contributor

https://i18n.nuxtjs.org/docs/guide/seo#feature-details
[source] https://github.com/nuxt-modules/i18n/blob/main/docs/content/docs/02.guide/06.seo.md?plain=1#L246

In the final example, it mentioned

i18nHead.value.htmlAttrs!.lang

but did not specify <script setup lang="ts">
which may cause errors when users use the example code.

Since other templates did not mention using TypeScript,
the ! should be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants