Skip to content

lg2/datocms-plugin-preview-link-i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published