Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
LorisSigrist committed Oct 7, 2023
1 parent 6c698b5 commit 971f684
Show file tree
Hide file tree
Showing 13 changed files with 635 additions and 316 deletions.
3 changes: 1 addition & 2 deletions docs/20-Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ helloName: Hello {name}! What a wonderful day!

You will notice that the translation is updated in the browser without a refresh, and the value in the input is not lost.


[Hot reloading in action](./assets/hmr.mp4 ':include')
[Hot reloading in action](./assets/hmr.mp4 ":include")

## Adding another locale
You can add another locale by creating another file in the `translationsDir`. Let's create `src/translations/de.yaml`:
Expand Down
5 changes: 1 addition & 4 deletions docs/30-Internationalized-Routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,7 @@ function setLocaleInUrl(url, newLocale) {
//after init
if (browser) {
locale.subscribe((newLocale) => {
const newPath = setLocaleInUrl(
new URL(window.location.href),
newLocale,
);
const newPath = setLocaleInUrl(new URL(window.location.href), newLocale);
history.replaceState({}, "", newPath);
});
}
Expand Down
59 changes: 30 additions & 29 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,41 +1,42 @@
<!DOCTYPE html>
<!doctype html>
<html>

<head>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta charset="UTF-8" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/themes/vue.css" />

<link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/docsify@4/themes/vue.css"
/>

<style>
video {
max-width: 100%;
height: auto;
}
video {
max-width: 100%;
height: auto;
}
</style>
</head>
</head>

<body>
<body>
<div id="app"></div>
<script>
window.$docsify = {
repo: "LorisSigrist/t18s",
name: "T18S Documentation",
basePath: 'https://raw.githubusercontent.com/LorisSigrist/t18s/main',
homepage: 'https://raw.githubusercontent.com/LorisSigrist/t18s/main/README.md',
auto2top: true,
subMaxLevel: 1,
maxLevel: 3,
window.$docsify = {
repo: "LorisSigrist/t18s",
name: "T18S Documentation",
basePath: "https://raw.githubusercontent.com/LorisSigrist/t18s/main",
homepage:
"https://raw.githubusercontent.com/LorisSigrist/t18s/main/README.md",
auto2top: true,
subMaxLevel: 1,
maxLevel: 3,

//Sidebar
loadSidebar: "docs/_sidebar.md",
};
//Sidebar
loadSidebar: "docs/_sidebar.md",
};
</script>
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="//unpkg.com/prismjs/components/prism-typescript.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-yaml.min.js"></script>
</body>

</html>
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="//unpkg.com/prismjs/components/prism-typescript.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-yaml.min.js"></script>
</body>
</html>
Loading

0 comments on commit 971f684

Please sign in to comment.