-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
[![Netlify Status](https://api.netlify.com/api/v1/badges/7e679fc0-9808-4677-be27-fdeccdd6449f/deploy-status)](https://app.netlify.com/sites/component-scoped-csr/deploys) | ||
|
||
# Component-scoped app | ||
This app includes multiple instances of `sveltekit-i18n`. | ||
|
||
- app translations are loaded using SSR | ||
- component's translations are loaded in component promise (CSR - SvelteKit does not provide server side load method for components, so translation loaders are triggered on client side only) | ||
|
||
This approach is good for more complex apps. | ||
|
||
## Preview | ||
You can view this demo live on [Netlify](https://compoent-scoped-csr.netlify.app). |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
[![Netlify Status](https://api.netlify.com/api/v1/badges/897bc245-3432-44a8-8a4b-26c6a61f2d5f/deploy-status)](https://app.netlify.com/sites/fallback-locale/deploys) | ||
|
||
# Fallback locale | ||
This app shows how to use `config.fallbackLocale` parameter. | ||
|
||
## Preview | ||
You can view this demo live on [Netlify](https://fallback-locale.netlify.app). |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +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) | ||
|
||
# Multi-page app | ||
In this app, translations are loaded dynamically according to user navigation and `$locale` change. | ||
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. | ||
|
||
This concept is great for most of web pages. | ||
## Preview | ||
You can view this demo live on [Netlify](https://multi-page-example.netlify.app). |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
|