diff --git a/0000-iso-language-code.md b/0000-iso-language-code.md new file mode 100644 index 0000000..4cb47ba --- /dev/null +++ b/0000-iso-language-code.md @@ -0,0 +1,67 @@ +- Start Date: 2021-07-06 +- RFC PR: (leave this empty) +- Svelte Issue: (leave this empty) + +# Template ISO language support + +## Summary + +By default the `app.html` includes `` but for localised pages need to replace the language used according to the context. + +## Motivation + +While building localised static pages, need to deliver correct language ISO on the html, to be SEO "friendly". +In the current setup to achieve the correct language code, all htmls files need to be parse and language code replace after the svelte build process is complete. + +## Detailed design + +### Technical Background + +> How do different libraries or frameworks implement this feature? We can take + +In other frameworks like [nextjs](https://nextjs.org/docs/advanced-features/custom-document) you can change the lang by doing + +``` +import { Html } from 'next/document'; +
+``` + +### Implementation + +From my quick investigation could implemented something similar to `svelte:head` + +``` +