diff --git a/docs/20-Getting-Started.md b/docs/20-Getting-Started.md index 360fa86..879cc27 100644 --- a/docs/20-Getting-Started.md +++ b/docs/20-Getting-Started.md @@ -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`: diff --git a/docs/30-Internationalized-Routing.md b/docs/30-Internationalized-Routing.md index 718b5d0..1566edc 100644 --- a/docs/30-Internationalized-Routing.md +++ b/docs/30-Internationalized-Routing.md @@ -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); }); } diff --git a/docs/index.html b/docs/index.html index cde6465..a1151e2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,41 +1,42 @@ - + - -
+ - - + - + - + - - - - - - - \ No newline at end of file + + + + + +