diff --git a/examples/locale-param/README.md b/examples/locale-param/README.md index fb2ad7f..4315492 100644 --- a/examples/locale-param/README.md +++ b/examples/locale-param/README.md @@ -1,7 +1,7 @@ -[![Netlify Status](https://api.netlify.com/api/v1/badges/c5bbe5c2-c9b9-4175-aa68-fd4aec778589/deploy-status)](https://app.netlify.com/sites/multi-page-example/deploys) +[![Netlify Status](https://api.netlify.com/api/v1/badges/bea2dd0c-89ec-4fcc-87c7-86192d1fe48d/deploy-status)](https://app.netlify.com/sites/locale-param/deploys) -# Multi-page app -In this app, translations are loaded dynamically according to user navigation and `$locale` change. It has built-in mechanism to prevent duplicit (server and client) translation load on app enter. It's useful, when you are fetching your translations from remote API, or using other data-expensive solution. +# Locale-param +This `multi-page` app demonstrates lang routing based on URL parameter (e.g. `https://example.com/?lang=en`). ## Preview -You can view this demo live on [Netlify](https://multi-page-example.netlify.app). \ No newline at end of file +You can view this demo live on [Netlify](https://locale-param.netlify.app). \ No newline at end of file diff --git a/examples/locale-router/README.md b/examples/locale-router/README.md index 4315492..14afd7d 100644 --- a/examples/locale-router/README.md +++ b/examples/locale-router/README.md @@ -1,7 +1,7 @@ -[![Netlify Status](https://api.netlify.com/api/v1/badges/bea2dd0c-89ec-4fcc-87c7-86192d1fe48d/deploy-status)](https://app.netlify.com/sites/locale-param/deploys) +# Locale-router +This app shows how to integrate locale routing using dynamic adapters (e.g. `@sveltejs/adapter-node`). It includes two pages and three language mutations (`en`, `de`, `cs`). Error pages are included as well. -# Locale-param -This `multi-page` app demonstrates lang routing based on URL parameter (e.g. `https://example.com/?lang=en`). +## Setup -## Preview -You can view this demo live on [Netlify](https://locale-param.netlify.app). \ No newline at end of file +### `./src/hooks.server.js` +Takes care about redirects to appropriate language mutation. \ No newline at end of file