Skip to content

Commit

Permalink
Update readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
jarda-svoboda committed Jul 12, 2023
1 parent 867326e commit b96543e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions examples/locale-param/README.md
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).
10 changes: 5 additions & 5 deletions examples/locale-router/README.md
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.

0 comments on commit b96543e

Please sign in to comment.