1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283
|
<!DOCTYPE html>
<html lang="en-us">
<head>
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Presenting Polyglot · Polyglot">
<meta name="description" content="תוסף תמיכה ב-i18n עבור Jekyll שהופך את התמיכה מרובת שפות למהירה ואינטואיטיבית, עבור בלוגים גדולים וקטנים. תוצרת.">
<meta name="keywords" content="רב-לשוני, i18n, ג'קיל, רב-לשוני, מהיר, אינטואיטיבי, untra, גיטהאב, דפים, בלוג, תוסף, רובי, ג'ם, בינלאומיות, לוקליזציה, תרגום, שפה, תמיכה, רב-לשוני, רב-לשוני">
<meta http-equiv="Content-Language" content="he">
<link rel="alternate" hreflang="en" href="https://polyglot.untra.io//2015/09/19/presenting-polyglot/"/>
<link rel="alternate" hreflang="es" href="https://polyglot.untra.io/es//2015/09/19/presenting-polyglot/"/>
<link rel="alternate" hreflang="de" href="https://polyglot.untra.io/de//2015/09/19/presenting-polyglot/"/>
<link rel="alternate" hreflang="fr" href="https://polyglot.untra.io/fr//2015/09/19/presenting-polyglot/"/>
<link rel="alternate" hreflang="ru" href="https://polyglot.untra.io/ru//2015/09/19/presenting-polyglot/"/>
<link rel="alternate" hreflang="nl" href="https://polyglot.untra.io/nl//2015/09/19/presenting-polyglot/"/>
<link rel="alternate" hreflang="he" href="https://polyglot.untra.io/he//2015/09/19/presenting-polyglot/"/>
<link rel="alternate" hreflang="ko" href="https://polyglot.untra.io/ko//2015/09/19/presenting-polyglot/"/>
<link rel="alternate" hreflang="zh-CN" href="https://polyglot.untra.io/zh-CN//2015/09/19/presenting-polyglot/"/>
<link rel="alternate" hreflang="pt-BR" href="https://polyglot.untra.io/pt-BR//2015/09/19/presenting-polyglot/"/>
<title>
Presenting Polyglot · Polyglot
</title>
<!-- CSS -->
<link rel="stylesheet" href="/public/css/poole.css">
<link rel="stylesheet" href="/public/css/syntax.css">
<link rel="stylesheet" href="/public/css/hyde.css">
<link rel="stylesheet" href="/public/css/custom.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">
<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/public/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="/public/favicon.ico">
<!-- RSS -->
<link rel="alternate" type="application/rss+xml" title="RSS" href="/he/atom.xml">
</head>
<body theme-base-08>
<div class="sidebar">
<div class="container sidebar-sticky">
<div class="sidebar-about">
<p class="speech">שלום!</p>
</br>
<h1>
<a href="">
Polyglot
</a>
</h1>
<p class="lead">תוסף תמיכה ב-i18n עבור <a href="http://jekyllrb.com" target="_blank">Jekyll</a> שהופך את התמיכה מרובת שפות למהירה ואינטואיטיבית, עבור בלוגים גדולים וקטנים. תוצרת <a href="https://github.com/untra" target="_blank">@untra</a>.</p>
</div>
<nav class="sidebar-nav">
<a class="sidebar-nav-item" href="/he/">Home</a>
<a class="sidebar-nav-item" href="/he/about/">About</a>
<a class="sidebar-nav-item" href="/he/a-really-long-hebrew/permalink/">קישור קבוע ממש ארוך</a>
<a class="sidebar-nav-item" href="/he/sample/">Sample rich text data</a>
<a class="sidebar-nav-item" href="/he/seo/">SEO Recipes</a>
<a class="sidebar-nav-item" href=""></a>
<a class="sidebar-nav-item" href="https://rubygems.org/gems/jekyll-polyglot">Ruby Gem</a>
<a class="sidebar-nav-item" href="https://github.com/untra/polyglot">GitHub project</a>
<a class="sidebar-nav-item" href="https://github.com/untra/polyglot/tree/master/site/_posts/2015-9-19-presenting-polyglot.md"><small>view this page source on github</small></a>
<small class="sidebar-nav-item">Currently v1.9.0</small>
</nav>
<p><small>© 2025 Samuel Volin</small><br/><small>MIT Licensed</small></p>
<p>
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->
<a href="/2015/09/19/presenting-polyglot/" >en</a> •
<a href="/es/2015/09/19/presenting-polyglot/" >es</a> •
<a href="/de/2015/09/19/presenting-polyglot/" >de</a> •
<a href="/fr/2015/09/19/presenting-polyglot/" >fr</a> •
<a href="/ru/2015/09/19/presenting-polyglot/" >ru</a> •
<a href="/nl/2015/09/19/presenting-polyglot/" >nl</a> •
<a style="font-weight: bold;" href="/he/2015/09/19/presenting-polyglot/" >he</a> •
<a href="/ko/2015/09/19/presenting-polyglot/" >ko</a> •
<a href="/zh-CN/2015/09/19/presenting-polyglot/" >zh-CN</a> •
<a href="/pt-BR/2015/09/19/presenting-polyglot/" >pt-BR</a>
</p>
</div>
</div>
<div class="content container">
<div class="post">
<h1 class="post-title">Presenting Polyglot</h1>
<span class="post-date">19 Sep 2015</span>
<p>After months of work and refinement, I am proud to present <strong>Polyglot</strong>: a i18n plugin for <a href="http://jekyllrb.com">Jekyll</a> sites that <em>need</em> to cater their content to multiple languages and audiences.</p>
<h3 id="features">Features</h3>
<p>While there are other multi-language plugins for Jekyll, Polyglot is special. Polyglot takes care of the typical cruftwork normally left to developers to manage (such as wrangling urls and ensuring consistent sitemaps) while providing efficient and simple tools Jekyll developers can utilize into SEO and fast-tracked content aggregation.</p>
<h2 id="relativized-links">Relativized Links</h2>
<p>In the past, a multi-language static site or blog had to keep delicate track of what language each relative link the site was serving. It was all too easy for a developer to stumble, and foreign language visitors would quickly get lost in untranslated content.</p>
<p>Polyglot automatically relativizes the urls for each language you want your site to build for. This allows website visitors to stay isolated on one language while browsing your website.</p>
<h2 id="fallback-support">Fallback Support</h2>
<p>When you <em>don’t</em> have translated or multilingual content, Jekyll will still build with the content you do have. When you <em>do</em> have translated or multilingual content, Jekyll will build using that content. Simple as that.</p>
<p>Sitemaps stay consistent across all languages, and translated stays in the site it was built for.</p>
<h2 id="rich-content-translation">Rich Content Translation</h2>
<p>Rich language content is normally hard to implement. Short strings or language dependent banners are typically hard for a Jekyll website to keep consistent.</p>
<p><em>Except when it’s this easy</em>. In your config.yml, just store your strings as:</p>
<figure class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="na">hello</span><span class="pi">:</span>
<span class="na">en</span><span class="pi">:</span> <span class="s">Hello!</span>
<span class="na">es</span><span class="pi">:</span> <span class="s">¡hola!</span>
<span class="na">fr</span><span class="pi">:</span> <span class="s">Bonjour!</span>
<span class="na">de</span><span class="pi">:</span> <span class="s">Guten Tag!</span></code></pre></figure>
<p>and in your liquid, just call:</p>
<figure class="highlight"><pre><code class="language-html" data-lang="html">{{ site.hello[site.active_lang]}}</code></pre></figure>
<p>produces:</p>
<p class="message">
</p>
<h2 id="fast-asynchronous-zero-overhead-builds">Fast, Asynchronous, Zero-Overhead Builds</h2>
<p>Polyglot will build your multi-language website just as fast as it will build your default language website. Polyglot runs with a minimal overhead by <em>simultaneously</em> building all languages of your website as separate process. This means your website build time won’t be a function of how many languages you need to support.</p>
<h3 id="download">Download</h3>
<p>Polyglot is available as a gem, or as a Jekyll plugin. It can be installed with:</p>
<figure class="highlight"><pre><code class="language-bash" data-lang="bash"> gem <span class="nb">install</span> <span class="s1">'jekyll-polyglot'</span>
</code></pre></figure>
</div>
<div class="related">
<h2>Related Posts</h2>
<ul class="related-posts">
<li>
<h3>
<a href="/he/2025/01/18/polyglot-1.9.0/">
Polyglot 1.9.0 - Instructional Improvements
<small>18 Jan 2025</small>
</a>
</h3>
</li>
<li>
<h3>
<a href="/he/2024/08/18/polyglot-1.8.1/">
Polyglot 1.8.1 - Community Bug Fixes Release
<small>18 Aug 2024</small>
</a>
</h3>
</li>
<li>
<h3>
<a href="/he/2024/03/17/polyglot-1.8.0/">
Polyglot 1.8.0 - Community Contributions Release
<small>17 Mar 2024</small>
</a>
</h3>
</li>
</ul>
</div>
</div>
</body>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HWC3D32MT8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-HWC3D32MT8');
</script>
</html>
|