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

alfonsobries opened this issue Jan 8, 2019 — with CMTY · 2 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

What does the proposed changes look like?

The possibility to generate sitemaps like this: ```
This feature request is available on Nuxt community (#c35)

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


This comment has been minimized.

Copy link

commented Jan 9, 2019

I just noticed that this package depends on, 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' }

This comment has been minimized.

Copy link

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
None yet
2 participants
You can’t perform that action at this time.