43
loading...
This website collects cookies to deliver better user experience
/
redirects to /en
or /fr
based on the visitor's language preference), Rakkas also offers optional Accept-Language
and navigator.languages
based language detection and redirection that can be overridden by a cookie. It even works on static sites where JavaScript redirection is used. Rakkas will render a list of links to the localized URLs when JavaScript is disabled./fr/about
and /fr/products
(or example.fr/about
etc.) which is, frankly, of limited use.layout.jsx
(or tsx
) and all pages in the same directory and pages or nested layouts in its subdirectories will be wrapped in your layout component._
). For example you could have a directory structure like this:pages/
layout.jsx
(the main layout, common to all pages)_app/
(layout group for most pages)layout.jsx
(common layout for most pages)page.jsx
(path: /
)about.page.jsx
(path: /about
)blog.page.jsx
(path: /blog
)_admin/
(layout group for admin pages)layout.jsx
(common layout for admin pages)settings.page.jsx
(path: /settings
)users.page.jsx
(path: /users
)