-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path139.3b63d783371dde7d00b8.chunk.js
1 lines (1 loc) · 2.8 KB
/
139.3b63d783371dde7d00b8.chunk.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[139],{400:function(e,n,a){"use strict";a.r(n),n.default='<p>i18n (localization) plugin for Webpack.</p>\n<h2 id="install">Install<a href="#install" aria-hidden="true"><span class="icon icon-link"></span></a></h2>\n<pre><code class="hljs language-bash"><span class="token function">npm</span> i -D i18n-webpack-plugin</code></pre>\n<h2 id="usage">Usage<a href="#usage" aria-hidden="true"><span class="icon icon-link"></span></a></h2>\n<p>This plugin creates bundles with translations baked in. So you can serve the translated bundle to your clients.</p>\n<p>see <a href="https://github.com/webpack/webpack/tree/master/examples/i18n">webpack/webpack/examples/i18n</a>.</p>\n<h2 id="options">Options<a href="#options" aria-hidden="true"><span class="icon icon-link"></span></a></h2>\n<pre><code>plugins: [\n ...\n new I18nPlugin(languageConfig, optionsObj)\n],\n</code></pre>\n<ul>\n<li><code>optionsObj.functionName</code>: the default value is <code>__</code>, you can change it to other function name.</li>\n<li><code>optionsObj.failOnMissing</code>: the default value is <code>false</code>, which will show a warning message, if the mapping text cannot be found. If set to <code>true</code>, the message will be an error message.</li>\n<li><code>optionsObj.hideMessage</code>: the default value is <code>false</code>, which will show the warning/error message. If set to <code>true</code>, the message will be hidden.</li>\n<li><code>optionsObj.nested</code>: the default value is <code>false</code>. If set to <code>true</code>, the keys in <code>languageConfig</code> can be nested. This option is interpreted only if <code>languageConfig</code> isn\'t a function.</li>\n</ul>\n<h2 id="maintainers">Maintainers<a href="#maintainers" aria-hidden="true"><span class="icon icon-link"></span></a></h2>\n<table>\n <tbody>\n <tr>\n <td align="center">\n <img width="150" height="150"\n src="https://avatars3.githubusercontent.com/u/166921?v=3&s=150">\n </br>\n <a href="https://github.com/bebraw">Juho Vepsäläinen</a>\n </td>\n <td align="center">\n <img width="150" height="150"\n src="https://avatars2.githubusercontent.com/u/8420490?v=3&s=150">\n </br>\n <a href="https://github.com/d3viant0ne">Joshua Wiens</a>\n </td>\n <td align="center">\n <img width="150" height="150"\n src="https://avatars3.githubusercontent.com/u/533616?v=3&s=150">\n </br>\n <a href="https://github.com/SpaceK33z">Kees Kluskens</a>\n </td>\n <td align="center">\n <img width="150" height="150"\n src="https://avatars3.githubusercontent.com/u/3408176?v=3&s=150">\n </br>\n <a href="https://github.com/TheLarkInn">Sean Larkin</a>\n </td>\n </tr>\n <tbody>\n</table>\n'}}]);