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

Add localization to the sitemap.xml #40

Closed
alfonsobries opened this issue Jan 8, 2019 — with CMTY · 2 comments

Comments

Copy link

commented Jan 8, 2019 — with CMTY

What problem does this feature solve?

Currently, it's not possible to add localization to a sitemap.xml in a multilingual site accordingly to the Google recommendations

https://support.google.com/webmasters/answer/189077

What does the proposed changes look like?

The possibility to generate sitemaps like this:

http://www.example.com/english/page.html ```
This feature request is available on Nuxt community (#c35)

@cmty cmty bot added the cmty:feature-request label Jan 8, 2019

@alfonsobries

This comment has been minimized.

Copy link
Author

commented Jan 9, 2019

I just noticed that this package depends on https://github.com/ekalinin/sitemap.js#example-of-indicating-alternate-language-pages, so it's actually possible to add alternate URLs

In case someone wondering we just define the route as:

{
          url: 'nosotros',
          changefreq: 'monthly',
          priority: 0.9,
          lastmodISO: moment().format(),
          links: [
            { lang: 'en', url: 'en/about-us' }
          ]
        },
```
@miteyema

This comment has been minimized.

Copy link
Contributor

commented Jul 22, 2019

That's nice if you want to list those pages manually, but what if you are already using nuxt-i18n, can this be generated automatically then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.