🎈 Welcome to the Marketplace — Explore and discover the ecosystem around DatoCMS, and share your own work with the community!

Dato map links

DatoCms preview links

This is a Community Plugin! Learn how create your own plugin, or copy and remix existing ones in our documentation

datocms-plugin-preview-link-i18n

Plugins that give your page url with i18n.

You'll need to create a json file in your public app like below.

[
{ "path": "/", "params": [], "model": "PageHomeRecord", locale: "en" },
{ "path": "/about", "params": [], "model": "PageAboutRecord", locale: "en" },
{ "path": "/contact", "params": [], "model": "PageContactRecord", locale: "en" },
{ "path": "/:slug", "params": ["slug"], "model": "PageSlugRecord", locale: "en" },
{ "path": "/", "params": [], "model": "PageHomeRecord", locale: "en" },
{ "path": "/a-propos", "params": [], "model": "PageAboutRecord", locale: "fr" },
{ "path": "/contact", "params": [], "model": "PageContactRecord", locale: "fr" },
{ "path": "/:slug", "params": ["slug"], "model": "PageSlugRecord", locale: "fr" },
]

If using nuxtJs you can use the following plugins to help you creating this file

This plugins help you create an public json file on your web app to fit the routes on your app coralated with datoModelRecord.

Subscribe to our newsletter! 📥
One update per month. All the latest news and sneak peeks directly in your inbox.
support@datocms.com ©2024 Dato srl, all rights reserved P.IVA 06969620480