-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
7 changed files
with
15 additions
and
15 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 +1 @@ | ||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/language-switch/favicon.ico"/><title>@magic-modules/language-switch</title><meta name="description" content="@magic-modules LanguageSwitch. adds an intelligent language switching mechanism to your @magic app."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/language-switch"}</script><link rel="stylesheet" href="/language-switch/magic.css?iA+pHEKCq6" integrity="sha384-iA+pHEKCq6TO4dMQnuxQp7wSRMf2pSGe2UxNR4n3PToSegmXsUMv4fHUDEFmYqhH" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/language-switch/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/language-switch/"><span>LanguageSwitch</span></a><nav class="Menu"><ul><li><a href="/language-switch/#installation">installation</a></li><li><a href="/language-switch/#usage">usage</a></li><li><a href="/language-switch/#pages">language pages</a></li><li><a href="/language-switch/#state">required state</a></li><li><a href="/language-switch/#source">source</a></li></ul></nav></header><div class="Page" id="page"><div>404 - not found</div></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/language-switch/magic.js?bUUnjdUMWR" integrity="sha384-bUUnjdUMWR+VIEAWVch8+PJ87W+jPMtAlOMc8HJef+xn1NImD+3CMmSkDiRhnZ62" crossorigin="anonymous"></script></body></html> | ||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/language-switch/favicon.ico"/><title>@magic-modules/language-switch</title><meta name="description" content="@magic-modules LanguageSwitch. adds an intelligent language switching mechanism to your @magic app."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/language-switch"}</script><link rel="stylesheet" href="/language-switch/magic.css?iA+pHEKCq6" integrity="sha384-iA+pHEKCq6TO4dMQnuxQp7wSRMf2pSGe2UxNR4n3PToSegmXsUMv4fHUDEFmYqhH" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/language-switch/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/language-switch/"><span>LanguageSwitch</span></a><nav class="Menu"><ul><li><a href="/language-switch/#installation">installation</a></li><li><a href="/language-switch/#usage">usage</a></li><li><a href="/language-switch/#pages">language pages</a></li><li><a href="/language-switch/#state">required state</a></li><li><a href="/language-switch/#source">source</a></li></ul></nav></header><div class="Page" id="page"><div>404 - not found</div></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/language-switch/magic.js?st/dBoFYJm" integrity="sha384-st/dBoFYJmsvtLYSm/AqtLkNGyxqo8lDIjVAGcjWOtRVdl7Ptc8szixiOU3aS2mY" crossorigin="anonymous"></script></body></html> |
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,8 +1,8 @@ | ||
<!DOCTYPE html><html lang="de"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/language-switch/favicon.ico"/><title>@magic-modules/language-switch</title><meta name="description" content="@magic-modules LanguageSwitch. adds an intelligent language switching mechanism to your @magic app."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/language-switch"}</script><link rel="stylesheet" href="/language-switch/magic.css?iA+pHEKCq6" integrity="sha384-iA+pHEKCq6TO4dMQnuxQp7wSRMf2pSGe2UxNR4n3PToSegmXsUMv4fHUDEFmYqhH" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/language-switch/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/language-switch/"><span>LanguageSwitch</span></a><nav class="Menu"><ul><li><a href="/language-switch/#installation">installation</a></li><li><a href="/language-switch/#usage">usage</a></li><li><a href="/language-switch/#pages">language pages</a></li><li><a href="/language-switch/#state">required state</a></li><li><a href="/language-switch/#source">source</a></li></ul></nav></header><div class="Page" id="page"><h1 id="magic-moduleslanguage-switch">@magic-modules/language-switch</h1><p>dies ist das | ||
<a href="https://github.com/magic-modules" target="_blank" rel="noopener">@magic-modules</a> | ||
LanguageSwitch modul. Es rendert ein Menu mit Sprachauswahl.</p><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic-modules/language-switch" target="_blank" rel="noopener"></a><img src="https://img.shields.io/npm/v/@magic-modules/language-switch.svg" height="23" role="presentation" alt=""/></li><li><img src="https://img.shields.io/node/v/@magic/core" height="23" role="presentation" alt=""/></li><li><a href="https://travis-ci.com/magic-modules/language-switch" target="_blank" rel="noopener"></a><img src="https://img.shields.io/travis/com/magic-modules/language-switch/master" height="23" role="presentation" alt=""/></li><li><a href="https://ci.appveyor.com/project/magicmodules/language-switch/branch/master" target="_blank" rel="noopener"></a><img src="https://img.shields.io/appveyor/ci/magicmodules/language-switch/master.svg" height="23" role="presentation" alt=""/></li><li><a href="https://coveralls.io/github/magic-modules/language-switch" target="_blank" rel="noopener"></a><img src="https://img.shields.io/coveralls/github/magic-modules/language-switch/master.svg" height="23" role="presentation" alt=""/></li><li><a href="https://greenkeeper.io" target="_blank" rel="noopener"></a><img src="https://badges.greenkeeper.io/magic-modules/language-switch.svg" height="23" role="presentation" alt=""/></li><li><a href="https://snyk.io/test/github/magic-modules/language-switch" target="_blank" rel="noopener"></a><img src="https://img.shields.io/snyk/vulnerabilities/github/magic-modules/language-switch.svg" height="23" role="presentation" alt=""/></li></ul><h2 id="installation">installation</h2><div class="Pre"><div class="menu"><button>copy</button></div><pre><code class="line">npm install @magic-modules/language-<span class="keyword">switch</span></code></pre></div><h2 id="usage">verwendung</h2><p>hoisten in config.mjs:</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="comment">// /src/<span class="object">config</span>.<span class="property">mjs</span> </span></code><code class="line"><span class="keyword">export</span> <span class="keyword">default</span> {</code><code class="line"> <span class="colon">HOIST</span>: [<span class="string">'LanguageSwitch'</span>],</code><code class="line">}</code></pre></div><h3 id="caveat">caveat</h3><p>bitte beachte, dass dieses modul nicht das menu veraendert.</p><p>ich habe es gebaut, um es auf meiner seite zu verwenden: <a href="https://jaeh.at" target="_blank" rel="noopener">jaeh.at</a>, | ||
und die hat kein menu.</p><h2 id="pages">seiten</h2><p>erstelle deine sprachfiles im pages directory, zum beispiel:</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">/src/pages/</code><code class="line"> <span class="object">index</span>.<span class="property">mjs</span> <span class="comment">// englische seite </span></code><code class="line"> /de/</code><code class="line"> <span class="object">index</span>.<span class="property">mjs</span> <span class="comment">// deutsche seite </span></code></pre></div><h2 id="state">state</h2><p>LanguageSwitch braucht folgende informationen:</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="comment">// /src/<span class="object">app</span>.<span class="property">mjs</span> </span></code><code class="line"><span class="keyword">export</span> <span class="keyword">const</span> <span class="state">state</span> = {</code><code class="line"> <span class="comment">// ... other app <span class="state">state</span> </span></code><code class="line"> <span class="colon">languages</span>: [</code><code class="line"> <span class="comment">// die erste sprache ist der standard </span></code><code class="line"> { <span class="colon">code</span>: <span class="string">'en'</span>, <span class="colon">to</span>: <span class="string">'/'</span>, <span class="colon">text</span>: <span class="string">'english'</span> },</code><code class="line"> { <span class="colon">code</span>: <span class="string">'de'</span>, <span class="colon">to</span>: <span class="string">'/de/'</span>, <span class="colon">text</span>: <span class="string">'deutsch'</span> },</code><code class="line"> ],</code><code class="line">}</code></pre></div><h2 id="source">source</h2><p>der sourcecode dieser page ist im | ||
LanguageSwitch modul. Es rendert ein Menu mit Sprachauswahl.</p><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic-modules/language-switch" target="_blank" rel="noopener"></a><img src="https://img.shields.io/npm/v/@magic-modules/language-switch.svg" height="23" role="presentation" alt=""/></li><li><img src="https://img.shields.io/node/v/@magic/core" height="23" role="presentation" alt=""/></li><li><a href="https://travis-ci.com/magic-modules/language-switch" target="_blank" rel="noopener"></a><img src="https://img.shields.io/travis/com/magic-modules/language-switch/master" height="23" role="presentation" alt=""/></li><li><a href="https://ci.appveyor.com/project/magicmodules/language-switch/branch/master" target="_blank" rel="noopener"></a><img src="https://img.shields.io/appveyor/ci/magicmodules/language-switch/master.svg" height="23" role="presentation" alt=""/></li><li><a href="https://coveralls.io/github/magic-modules/language-switch" target="_blank" rel="noopener"></a><img src="https://img.shields.io/coveralls/github/magic-modules/language-switch/master.svg" height="23" role="presentation" alt=""/></li><li><a href="https://greenkeeper.io" target="_blank" rel="noopener"></a><img src="https://badges.greenkeeper.io/magic-modules/language-switch.svg" height="23" role="presentation" alt=""/></li><li><a href="https://snyk.io/test/github/magic-modules/language-switch" target="_blank" rel="noopener"></a><img src="https://img.shields.io/snyk/vulnerabilities/github/magic-modules/language-switch.svg" height="23" role="presentation" alt=""/></li></ul><h2 id="installation">installation</h2><div class="Pre"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">npm</span> <span class="keyword">install</span> @magic-modules/language-switch</code></pre></div><h2 id="usage">verwendung</h2><p>hoisten in config.mjs:</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="comment">// /src/config.mjs</span></code><code class="line"><span class="keyword">export</span> <span class="keyword">default</span> {</code><code class="line"> HOIST: [<span class="string">'LanguageSwitch'</span>],</code><code class="line">}</code></pre></div><h3 id="caveat">caveat</h3><p>bitte beachte, dass dieses modul nicht das menu veraendert.</p><p>ich habe es gebaut, um es auf meiner seite zu verwenden: <a href="https://jaeh.at" target="_blank" rel="noopener">jaeh.at</a>, | ||
und die hat kein menu.</p><h2 id="pages">seiten</h2><p>erstelle deine sprachfiles im pages directory, zum beispiel:</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">/src/pages/</code><code class="line"> index.mjs <span class="comment">// englische seite</span></code><code class="line"> /de/</code><code class="line"> index.mjs <span class="comment">// deutsche seite</span></code></pre></div><h2 id="state">state</h2><p>LanguageSwitch braucht folgende informationen:</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="comment">// /src/app.mjs</span></code><code class="line"><span class="keyword">export</span> <span class="keyword">const</span> <span class="state">state</span> = {</code><code class="line"> <span class="comment">// ... other app <span class="state">state</span></span></code><code class="line"> languages: [</code><code class="line"> <span class="comment">// die erste sprache ist der standard</span></code><code class="line"> { code: <span class="string">'en'</span>, to: <span class="string">'/'</span>, text: <span class="string">'english'</span> },</code><code class="line"> { code: <span class="string">'de'</span>, to: <span class="string">'/de/'</span>, text: <span class="string">'deutsch'</span> },</code><code class="line"> ],</code><code class="line">}</code></pre></div><h2 id="source">source</h2><p>der sourcecode dieser page ist im | ||
<a href="https://github.com/magic-modules/language-switch/tree/master/example" target="_blank" rel="noopener">example directory</a> | ||
und wird mit | ||
<a href="https://github.com/magic/core" target="_blank" rel="noopener">@magic/core</a> | ||
gebaut und zu github publiziert.</p></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/language-switch/magic.js?bUUnjdUMWR" integrity="sha384-bUUnjdUMWR+VIEAWVch8+PJ87W+jPMtAlOMc8HJef+xn1NImD+3CMmSkDiRhnZ62" crossorigin="anonymous"></script></body></html> | ||
gebaut und zu github publiziert.</p></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/language-switch/magic.js?st/dBoFYJm" integrity="sha384-st/dBoFYJmsvtLYSm/AqtLkNGyxqo8lDIjVAGcjWOtRVdl7Ptc8szixiOU3aS2mY" crossorigin="anonymous"></script></body></html> |
Binary file not shown.
Oops, something went wrong.