-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
867326e
commit b96543e
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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). | ||
You can view this demo live on [Netlify](https://locale-param.netlify.app). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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). | ||
### `./src/hooks.server.js` | ||
Takes care about redirects to appropriate language mutation. |