@esgettext/runtime 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/{lib-esm → dist}/core/browser-environment.d.ts +1 -0
- package/dist/core/browser-environment.d.ts.map +1 -0
- package/{lib-esm → dist}/core/catalog-cache.d.ts +1 -0
- package/dist/core/catalog-cache.d.ts.map +1 -0
- package/dist/core/catalog-cache.spec.d.ts +2 -0
- package/dist/core/catalog-cache.spec.d.ts.map +1 -0
- package/dist/core/catalog-format.spec.d.ts +2 -0
- package/dist/core/catalog-format.spec.d.ts.map +1 -0
- package/{lib → dist}/core/catalog.d.ts +1 -0
- package/dist/core/catalog.d.ts.map +1 -0
- package/{lib → dist}/core/data-viewlet.d.ts +1 -0
- package/dist/core/data-viewlet.d.ts.map +1 -0
- package/dist/core/data-viewlet.spec.d.ts +2 -0
- package/dist/core/data-viewlet.spec.d.ts.map +1 -0
- package/{lib-esm → dist}/core/explode-locale.d.ts +1 -0
- package/dist/core/explode-locale.d.ts.map +1 -0
- package/dist/core/explode-locale.spec.d.ts +2 -0
- package/dist/core/explode-locale.spec.d.ts.map +1 -0
- package/{lib-esm → dist}/core/germanic-plural.d.ts +1 -0
- package/dist/core/germanic-plural.d.ts.map +1 -0
- package/{lib → dist}/core/gettext-impl.d.ts +1 -0
- package/dist/core/gettext-impl.d.ts.map +1 -0
- package/dist/core/gettext.spec.d.ts +2 -0
- package/dist/core/gettext.spec.d.ts.map +1 -0
- package/{lib-esm → dist}/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -0
- package/{lib → dist}/core/locale-container.d.ts +1 -0
- package/dist/core/locale-container.d.ts.map +1 -0
- package/dist/core/platform.d.ts +3 -0
- package/dist/core/platform.d.ts.map +1 -0
- package/{lib → dist}/core/resolve-impl.d.ts +1 -0
- package/dist/core/resolve-impl.d.ts.map +1 -0
- package/dist/core/resolve.spec.d.ts +2 -0
- package/dist/core/resolve.spec.d.ts.map +1 -0
- package/{lib-esm → dist}/core/select-locale.d.ts +1 -0
- package/dist/core/select-locale.d.ts.map +1 -0
- package/dist/core/select-locale.spec.d.ts +2 -0
- package/dist/core/select-locale.spec.d.ts.map +1 -0
- package/dist/core/set-locale-browser.spec.d.ts +2 -0
- package/dist/core/set-locale-browser.spec.d.ts.map +1 -0
- package/dist/core/set-locale-node.spec.d.ts +2 -0
- package/dist/core/set-locale-node.spec.d.ts.map +1 -0
- package/{lib-esm → dist}/core/split-locale.d.ts +1 -0
- package/dist/core/split-locale.d.ts.map +1 -0
- package/dist/core/split-locale.spec.d.ts +2 -0
- package/dist/core/split-locale.spec.d.ts.map +1 -0
- package/{lib → dist}/core/textdomain.d.ts +18 -17
- package/dist/core/textdomain.d.ts.map +1 -0
- package/dist/core/textdomain.spec.d.ts +2 -0
- package/dist/core/textdomain.spec.d.ts.map +1 -0
- package/{lib-esm → dist}/core/user-locales.d.ts +1 -0
- package/dist/core/user-locales.d.ts.map +1 -0
- package/dist/esgettext.cjs.js +868 -0
- package/dist/esgettext.cjs.js.map +1 -0
- package/dist/esgettext.esm.js +863 -0
- package/dist/esgettext.esm.js.map +1 -0
- package/dist/esgettext.min.js +2 -0
- package/dist/esgettext.min.js.map +1 -0
- package/dist/index-browser.d.ts +3 -0
- package/dist/index-browser.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/parser/index.d.ts +4 -0
- package/dist/parser/index.d.ts.map +1 -0
- package/{lib-esm → dist}/parser/parse-json-catalog.d.ts +1 -0
- package/dist/parser/parse-json-catalog.d.ts.map +1 -0
- package/{lib-esm → dist}/parser/parse-mo-catalog.d.ts +1 -0
- package/dist/parser/parse-mo-catalog.d.ts.map +1 -0
- package/dist/parser/parse-mo-catalog.spec.d.ts +2 -0
- package/dist/parser/parse-mo-catalog.spec.d.ts.map +1 -0
- package/dist/parser/parse-mo-json-catalog.d.ts +4 -0
- package/dist/parser/parse-mo-json-catalog.d.ts.map +1 -0
- package/dist/parser/parse-mo-json-catalog.spec.d.ts +2 -0
- package/dist/parser/parse-mo-json-catalog.spec.d.ts.map +1 -0
- package/{lib/transport/fs.d.ts → dist/transport/fs-browser.d.ts} +2 -1
- package/dist/transport/fs-browser.d.ts.map +1 -0
- package/{lib-esm → dist}/transport/fs.d.ts +1 -0
- package/dist/transport/fs.d.ts.map +1 -0
- package/{lib-esm → dist}/transport/http.d.ts +1 -0
- package/dist/transport/http.d.ts.map +1 -0
- package/dist/transport/http.spec.d.ts +2 -0
- package/dist/transport/http.spec.d.ts.map +1 -0
- package/{lib → dist}/transport/index.d.ts +2 -1
- package/dist/transport/index.d.ts.map +1 -0
- package/{lib → dist}/transport/transport.interface.d.ts +1 -0
- package/dist/transport/transport.interface.d.ts.map +1 -0
- package/package.json +30 -14
- package/_bundles/runtime.js +0 -1356
- package/_bundles/runtime.js.map +0 -1
- package/_bundles/runtime.min.js +0 -2
- package/_bundles/runtime.min.js.map +0 -1
- package/api-docs/assets/highlight.css +0 -127
- package/api-docs/assets/main.js +0 -59
- package/api-docs/assets/navigation.js +0 -1
- package/api-docs/assets/search.js +0 -1
- package/api-docs/assets/style.css +0 -1414
- package/api-docs/classes/Textdomain.html +0 -364
- package/api-docs/index.html +0 -222
- package/api-docs/interfaces/Catalog.html +0 -20
- package/api-docs/interfaces/CatalogEntries.html +0 -11
- package/api-docs/interfaces/LocaleContainer.html +0 -19
- package/api-docs/interfaces/Placeholders.html +0 -9
- package/api-docs/modules.html +0 -6
- package/lib/core/browser-environment.d.ts +0 -1
- package/lib/core/browser-environment.js +0 -12
- package/lib/core/browser-environment.js.map +0 -1
- package/lib/core/catalog-cache.d.ts +0 -10
- package/lib/core/catalog-cache.js +0 -39
- package/lib/core/catalog-cache.js.map +0 -1
- package/lib/core/catalog-cache.spec.d.ts +0 -1
- package/lib/core/catalog-cache.spec.js +0 -24
- package/lib/core/catalog-cache.spec.js.map +0 -1
- package/lib/core/catalog-format.spec.d.ts +0 -1
- package/lib/core/catalog-format.spec.js +0 -35
- package/lib/core/catalog-format.spec.js.map +0 -1
- package/lib/core/catalog.js +0 -3
- package/lib/core/catalog.js.map +0 -1
- package/lib/core/data-viewlet.js +0 -57
- package/lib/core/data-viewlet.js.map +0 -1
- package/lib/core/data-viewlet.spec.d.ts +0 -1
- package/lib/core/data-viewlet.spec.js +0 -62
- package/lib/core/data-viewlet.spec.js.map +0 -1
- package/lib/core/explode-locale.d.ts +0 -3
- package/lib/core/explode-locale.js +0 -37
- package/lib/core/explode-locale.js.map +0 -1
- package/lib/core/explode-locale.spec.d.ts +0 -1
- package/lib/core/explode-locale.spec.js +0 -41
- package/lib/core/explode-locale.spec.js.map +0 -1
- package/lib/core/germanic-plural.d.ts +0 -1
- package/lib/core/germanic-plural.js +0 -8
- package/lib/core/germanic-plural.js.map +0 -1
- package/lib/core/gettext-impl.js +0 -38
- package/lib/core/gettext-impl.js.map +0 -1
- package/lib/core/gettext.spec.d.ts +0 -1
- package/lib/core/gettext.spec.js +0 -391
- package/lib/core/gettext.spec.js.map +0 -1
- package/lib/core/index.d.ts +0 -4
- package/lib/core/index.js +0 -21
- package/lib/core/index.js.map +0 -1
- package/lib/core/locale-container.js +0 -3
- package/lib/core/locale-container.js.map +0 -1
- package/lib/core/path-separator.d.ts +0 -1
- package/lib/core/path-separator.js +0 -12
- package/lib/core/path-separator.js.map +0 -1
- package/lib/core/resolve-impl.js +0 -253
- package/lib/core/resolve-impl.js.map +0 -1
- package/lib/core/resolve.spec.d.ts +0 -1
- package/lib/core/resolve.spec.js +0 -345
- package/lib/core/resolve.spec.js.map +0 -1
- package/lib/core/select-locale.d.ts +0 -1
- package/lib/core/select-locale.js +0 -43
- package/lib/core/select-locale.js.map +0 -1
- package/lib/core/select-locale.spec.d.ts +0 -1
- package/lib/core/select-locale.spec.js +0 -27
- package/lib/core/select-locale.spec.js.map +0 -1
- package/lib/core/set-locale-browser.spec.d.ts +0 -1
- package/lib/core/set-locale-browser.spec.js +0 -17
- package/lib/core/set-locale-browser.spec.js.map +0 -1
- package/lib/core/set-locale-node.spec.d.ts +0 -1
- package/lib/core/set-locale-node.spec.js +0 -26
- package/lib/core/set-locale-node.spec.js.map +0 -1
- package/lib/core/split-locale.d.ts +0 -7
- package/lib/core/split-locale.js +0 -39
- package/lib/core/split-locale.js.map +0 -1
- package/lib/core/split-locale.spec.d.ts +0 -1
- package/lib/core/split-locale.spec.js +0 -59
- package/lib/core/split-locale.spec.js.map +0 -1
- package/lib/core/textdomain.js +0 -277
- package/lib/core/textdomain.js.map +0 -1
- package/lib/core/textdomain.spec.d.ts +0 -1
- package/lib/core/textdomain.spec.js +0 -33
- package/lib/core/textdomain.spec.js.map +0 -1
- package/lib/core/user-locales.d.ts +0 -1
- package/lib/core/user-locales.js +0 -12
- package/lib/core/user-locales.js.map +0 -1
- package/lib/index-browser.d.ts +0 -2
- package/lib/index-browser.js +0 -44
- package/lib/index-browser.js.map +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -37
- package/lib/index.js.map +0 -1
- package/lib/parser/index.d.ts +0 -2
- package/lib/parser/index.js +0 -19
- package/lib/parser/index.js.map +0 -1
- package/lib/parser/parse-json-catalog.d.ts +0 -3
- package/lib/parser/parse-json-catalog.js +0 -37
- package/lib/parser/parse-json-catalog.js.map +0 -1
- package/lib/parser/parse-json-catalog.spec.d.ts +0 -1
- package/lib/parser/parse-json-catalog.spec.js +0 -41
- package/lib/parser/parse-json-catalog.spec.js.map +0 -1
- package/lib/parser/parse-mo-catalog.d.ts +0 -2
- package/lib/parser/parse-mo-catalog.js +0 -86
- package/lib/parser/parse-mo-catalog.js.map +0 -1
- package/lib/parser/parse-mo-catalog.spec.d.ts +0 -1
- package/lib/parser/parse-mo-catalog.spec.js +0 -115
- package/lib/parser/parse-mo-catalog.spec.js.map +0 -1
- package/lib/transport/fs.js +0 -18
- package/lib/transport/fs.js.map +0 -1
- package/lib/transport/http.d.ts +0 -4
- package/lib/transport/http.js +0 -27
- package/lib/transport/http.js.map +0 -1
- package/lib/transport/http.spec.d.ts +0 -1
- package/lib/transport/http.spec.js +0 -119
- package/lib/transport/http.spec.js.map +0 -1
- package/lib/transport/index.js +0 -20
- package/lib/transport/index.js.map +0 -1
- package/lib/transport/transport.interface.js +0 -3
- package/lib/transport/transport.interface.js.map +0 -1
- package/lib-esm/core/browser-environment.js +0 -8
- package/lib-esm/core/browser-environment.js.map +0 -1
- package/lib-esm/core/catalog-cache.js +0 -36
- package/lib-esm/core/catalog-cache.js.map +0 -1
- package/lib-esm/core/catalog-cache.spec.d.ts +0 -1
- package/lib-esm/core/catalog-cache.spec.js +0 -22
- package/lib-esm/core/catalog-cache.spec.js.map +0 -1
- package/lib-esm/core/catalog-format.spec.d.ts +0 -1
- package/lib-esm/core/catalog-format.spec.js +0 -33
- package/lib-esm/core/catalog-format.spec.js.map +0 -1
- package/lib-esm/core/catalog.d.ts +0 -9
- package/lib-esm/core/catalog.js +0 -2
- package/lib-esm/core/catalog.js.map +0 -1
- package/lib-esm/core/data-viewlet.d.ts +0 -11
- package/lib-esm/core/data-viewlet.js +0 -54
- package/lib-esm/core/data-viewlet.js.map +0 -1
- package/lib-esm/core/data-viewlet.spec.d.ts +0 -1
- package/lib-esm/core/data-viewlet.spec.js +0 -60
- package/lib-esm/core/data-viewlet.spec.js.map +0 -1
- package/lib-esm/core/explode-locale.js +0 -33
- package/lib-esm/core/explode-locale.js.map +0 -1
- package/lib-esm/core/explode-locale.spec.d.ts +0 -1
- package/lib-esm/core/explode-locale.spec.js +0 -39
- package/lib-esm/core/explode-locale.spec.js.map +0 -1
- package/lib-esm/core/germanic-plural.js +0 -4
- package/lib-esm/core/germanic-plural.js.map +0 -1
- package/lib-esm/core/gettext-impl.d.ts +0 -10
- package/lib-esm/core/gettext-impl.js +0 -34
- package/lib-esm/core/gettext-impl.js.map +0 -1
- package/lib-esm/core/gettext.spec.d.ts +0 -1
- package/lib-esm/core/gettext.spec.js +0 -389
- package/lib-esm/core/gettext.spec.js.map +0 -1
- package/lib-esm/core/index.js +0 -5
- package/lib-esm/core/index.js.map +0 -1
- package/lib-esm/core/locale-container.d.ts +0 -8
- package/lib-esm/core/locale-container.js +0 -2
- package/lib-esm/core/locale-container.js.map +0 -1
- package/lib-esm/core/path-separator.d.ts +0 -1
- package/lib-esm/core/path-separator.js +0 -8
- package/lib-esm/core/path-separator.js.map +0 -1
- package/lib-esm/core/resolve-impl.d.ts +0 -3
- package/lib-esm/core/resolve-impl.js +0 -249
- package/lib-esm/core/resolve-impl.js.map +0 -1
- package/lib-esm/core/resolve.spec.d.ts +0 -1
- package/lib-esm/core/resolve.spec.js +0 -340
- package/lib-esm/core/resolve.spec.js.map +0 -1
- package/lib-esm/core/select-locale.js +0 -39
- package/lib-esm/core/select-locale.js.map +0 -1
- package/lib-esm/core/select-locale.spec.d.ts +0 -1
- package/lib-esm/core/select-locale.spec.js +0 -25
- package/lib-esm/core/select-locale.spec.js.map +0 -1
- package/lib-esm/core/set-locale-browser.spec.d.ts +0 -1
- package/lib-esm/core/set-locale-browser.spec.js +0 -15
- package/lib-esm/core/set-locale-browser.spec.js.map +0 -1
- package/lib-esm/core/set-locale-node.spec.d.ts +0 -1
- package/lib-esm/core/set-locale-node.spec.js +0 -24
- package/lib-esm/core/set-locale-node.spec.js.map +0 -1
- package/lib-esm/core/split-locale.js +0 -35
- package/lib-esm/core/split-locale.js.map +0 -1
- package/lib-esm/core/split-locale.spec.d.ts +0 -1
- package/lib-esm/core/split-locale.spec.js +0 -57
- package/lib-esm/core/split-locale.spec.js.map +0 -1
- package/lib-esm/core/textdomain.d.ts +0 -55
- package/lib-esm/core/textdomain.js +0 -274
- package/lib-esm/core/textdomain.js.map +0 -1
- package/lib-esm/core/textdomain.spec.d.ts +0 -1
- package/lib-esm/core/textdomain.spec.js +0 -31
- package/lib-esm/core/textdomain.spec.js.map +0 -1
- package/lib-esm/core/user-locales.js +0 -8
- package/lib-esm/core/user-locales.js.map +0 -1
- package/lib-esm/index-browser.d.ts +0 -2
- package/lib-esm/index-browser.js +0 -26
- package/lib-esm/index-browser.js.map +0 -1
- package/lib-esm/index.d.ts +0 -2
- package/lib-esm/index.js +0 -19
- package/lib-esm/index.js.map +0 -1
- package/lib-esm/parser/index.d.ts +0 -2
- package/lib-esm/parser/index.js +0 -3
- package/lib-esm/parser/index.js.map +0 -1
- package/lib-esm/parser/parse-json-catalog.js +0 -32
- package/lib-esm/parser/parse-json-catalog.js.map +0 -1
- package/lib-esm/parser/parse-json-catalog.spec.d.ts +0 -1
- package/lib-esm/parser/parse-json-catalog.spec.js +0 -39
- package/lib-esm/parser/parse-json-catalog.spec.js.map +0 -1
- package/lib-esm/parser/parse-mo-catalog.js +0 -82
- package/lib-esm/parser/parse-mo-catalog.js.map +0 -1
- package/lib-esm/parser/parse-mo-catalog.spec.d.ts +0 -1
- package/lib-esm/parser/parse-mo-catalog.spec.js +0 -113
- package/lib-esm/parser/parse-mo-catalog.spec.js.map +0 -1
- package/lib-esm/transport/fs.js +0 -15
- package/lib-esm/transport/fs.js.map +0 -1
- package/lib-esm/transport/http.js +0 -24
- package/lib-esm/transport/http.js.map +0 -1
- package/lib-esm/transport/http.spec.d.ts +0 -1
- package/lib-esm/transport/http.spec.js +0 -114
- package/lib-esm/transport/http.spec.js.map +0 -1
- package/lib-esm/transport/index.d.ts +0 -3
- package/lib-esm/transport/index.js +0 -4
- package/lib-esm/transport/index.js.map +0 -1
- package/lib-esm/transport/transport.interface.d.ts +0 -3
- package/lib-esm/transport/transport.interface.js +0 -2
- package/lib-esm/transport/transport.interface.js.map +0 -1
- package/webpack.common.js +0 -38
- package/webpack.dev.js +0 -9
- package/webpack.prod.js +0 -8
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Textdomain | @esgettext/runtime</title><meta name="description" content="Documentation for @esgettext/runtime"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@esgettext/runtime</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@esgettext/runtime</a></li><li><a href="Textdomain.html">Textdomain</a></li></ul><h1>Class Textdomain</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>A Textdomain is a container for an esgettext configuration and all loaded
|
|
2
|
-
LocaleContainer for the textual domain selected.</p>
|
|
3
|
-
<p>The actual translation methods have quite funny names like <code>_()</code> or
|
|
4
|
-
<code>_x()</code>. The purpose of this naming convention is to make the
|
|
5
|
-
internationalization of your programs as little obtrusive as possible.
|
|
6
|
-
Most of the times you just have to exchange</p>
|
|
7
|
-
<pre><code><span class="hl-2">doSomething</span><span class="hl-1">(</span><span class="hl-3">'Hello, world!'</span><span class="hl-1">);</span>
|
|
8
|
-
</code><button>Copy</button></pre>
|
|
9
|
-
<p>with</p>
|
|
10
|
-
<pre><code><span class="hl-2">doSomething</span><span class="hl-1">(</span><span class="hl-0">gtx</span><span class="hl-1">.</span><span class="hl-2">_</span><span class="hl-1">(</span><span class="hl-3">'Hello, world!'</span><span class="hl-1">));</span>
|
|
11
|
-
</code><button>Copy</button></pre>
|
|
12
|
-
<p>Besides, depending on the string extractor you are using, it may be useful
|
|
13
|
-
that the method names do not collide with method names from other packages.</p>
|
|
14
|
-
</div><div class="tsd-comment tsd-typography"></div></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L64">core/textdomain.ts:64</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="Textdomain.html#_" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_</span></a>
|
|
15
|
-
<a href="Textdomain.html#_l" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_l</span></a>
|
|
16
|
-
<a href="Textdomain.html#_ln" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_ln</span></a>
|
|
17
|
-
<a href="Textdomain.html#_lnp" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_lnp</span></a>
|
|
18
|
-
<a href="Textdomain.html#_lnpx" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_lnpx</span></a>
|
|
19
|
-
<a href="Textdomain.html#_lnx" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_lnx</span></a>
|
|
20
|
-
<a href="Textdomain.html#_lp" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_lp</span></a>
|
|
21
|
-
<a href="Textdomain.html#_lpx" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_lpx</span></a>
|
|
22
|
-
<a href="Textdomain.html#_lx" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_lx</span></a>
|
|
23
|
-
<a href="Textdomain.html#_n" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_n</span></a>
|
|
24
|
-
<a href="Textdomain.html#_np" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_np</span></a>
|
|
25
|
-
<a href="Textdomain.html#_npx" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_npx</span></a>
|
|
26
|
-
<a href="Textdomain.html#_nx" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_nx</span></a>
|
|
27
|
-
<a href="Textdomain.html#_p" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_p</span></a>
|
|
28
|
-
<a href="Textdomain.html#_px" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_px</span></a>
|
|
29
|
-
<a href="Textdomain.html#_x" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_x</span></a>
|
|
30
|
-
<a href="Textdomain.html#getInstance" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>get<wbr/>Instance</span></a>
|
|
31
|
-
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Accessors</h3><div class="tsd-index-list"><a href="Textdomain.html#catalogFormat" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>catalog<wbr/>Format</span></a>
|
|
32
|
-
<a href="Textdomain.html#locale" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>locale</span></a>
|
|
33
|
-
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="Textdomain.html#N_" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_</span></a>
|
|
34
|
-
<a href="Textdomain.html#N_p" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_<wbr/>p</span></a>
|
|
35
|
-
<a href="Textdomain.html#N_px" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_<wbr/>px</span></a>
|
|
36
|
-
<a href="Textdomain.html#N_x" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_<wbr/>x</span></a>
|
|
37
|
-
<a href="Textdomain.html#bindtextdomain" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>bindtextdomain</span></a>
|
|
38
|
-
<a href="Textdomain.html#resolve" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>resolve</span></a>
|
|
39
|
-
<a href="Textdomain.html#textdomain" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>textdomain</span></a>
|
|
40
|
-
<a href="Textdomain.html#N_-2" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_</span></a>
|
|
41
|
-
<a href="Textdomain.html#N_p-2" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_<wbr/>p</span></a>
|
|
42
|
-
<a href="Textdomain.html#N_px-2" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_<wbr/>px</span></a>
|
|
43
|
-
<a href="Textdomain.html#N_x-2" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_<wbr/>x</span></a>
|
|
44
|
-
<a href="Textdomain.html#clearInstances" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>clear<wbr/>Instances</span></a>
|
|
45
|
-
<a href="Textdomain.html#forgetInstances" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>forget<wbr/>Instances</span></a>
|
|
46
|
-
<a href="Textdomain.html#selectLocale" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>select<wbr/>Locale</span></a>
|
|
47
|
-
<a href="Textdomain.html#userLocales" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>user<wbr/>Locales</span></a>
|
|
48
|
-
</div></section></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>Properties</h2><section class="tsd-panel tsd-member"><a id="_" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_</span><a href="#_" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgid</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>Retrieve a translation for a string.</p>
|
|
49
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_.__type.__type-1"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgid</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Retrieve a translation for a string.</p>
|
|
50
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the string to translate</p>
|
|
51
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
52
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: msgid</h4><p>the string to translate</p>
|
|
53
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
54
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L94">core/textdomain.ts:94</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_l" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_l</span><a href="#_l" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_l</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgid</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>Retrieve a translation for a string with a fixed locale.</p>
|
|
55
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_l.__type-2.__type-3"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgid</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Retrieve a translation for a string with a fixed locale.</p>
|
|
56
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">locale</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the locale identifier</p>
|
|
57
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the string to translate</p>
|
|
58
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
59
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: locale</h4><p>the locale identifier</p>
|
|
60
|
-
<h4>Param: msgid</h4><p>the string to translate</p>
|
|
61
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
62
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L217">core/textdomain.ts:217</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_ln" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_ln</span><a href="#_ln" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_ln</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>Retrieve a translation for a string containing a possible plural with
|
|
63
|
-
a fixed locale.
|
|
64
|
-
You will almost always want to call <a href="Textdomain.html#_nx" class="tsd-kind-property"><code>_nx</code></a> instead so that
|
|
65
|
-
you can interpolate the number of items into the strings.</p>
|
|
66
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_ln.__type-4.__type-5"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Retrieve a translation for a string containing a possible plural with
|
|
67
|
-
a fixed locale.
|
|
68
|
-
You will almost always want to call <a href="Textdomain.html#_nx" class="tsd-kind-property"><code>_nx</code></a> instead so that
|
|
69
|
-
you can interpolate the number of items into the strings.</p>
|
|
70
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">locale</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the locale identifier</p>
|
|
71
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the string in the singular</p>
|
|
72
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgidPlural</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the string in the plural</p>
|
|
73
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">numItems</span>: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><p>the number of items</p>
|
|
74
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
75
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: locale</h4><p>the locale identifier</p>
|
|
76
|
-
<h4>Param: msgid</h4><p>the string in the singular</p>
|
|
77
|
-
<h4>Param: msgidPlural</h4><p>the string in the plural</p>
|
|
78
|
-
<h4>Param: numItems</h4><p>the number of items</p>
|
|
79
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
80
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L232">core/textdomain.ts:232</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_lnp" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_lnp</span><a href="#_lnp" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_lnp</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>The method <code>_lnp()</code> combines <code>_ln()</code> with <code>_lp()</code>.
|
|
81
|
-
You will almost always want to call <a href="Textdomain.html#_npx" class="tsd-kind-property"><code>_npx</code></a> instead so that
|
|
82
|
-
you can interpolate the number of items into the strings.</p>
|
|
83
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_lnp.__type-6.__type-7"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>The method <code>_lnp()</code> combines <code>_ln()</code> with <code>_lp()</code>.
|
|
84
|
-
You will almost always want to call <a href="Textdomain.html#_npx" class="tsd-kind-property"><code>_npx</code></a> instead so that
|
|
85
|
-
you can interpolate the number of items into the strings.</p>
|
|
86
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">locale</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the locale identifier</p>
|
|
87
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgctxt</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message context</p>
|
|
88
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
89
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgidPlural</span>: <span class="tsd-signature-type">string</span></h5></li><li><h5><span class="tsd-kind-parameter">numItems</span>: <span class="tsd-signature-type">number</span></h5></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
90
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: locale</h4><p>the locale identifier</p>
|
|
91
|
-
<h4>Param: msgctxt</h4><p>the message context</p>
|
|
92
|
-
<h4>Param: msgid</h4><p>the message id</p>
|
|
93
|
-
<h4>Param: placeholders</h4><p>a dictionary with placehoders</p>
|
|
94
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
95
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L262">core/textdomain.ts:262</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_lnpx" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_lnpx</span><a href="#_lnpx" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_lnpx</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>The method <code>_lnpx()</code> brings it all together. It combines <code>_ln()</code> and
|
|
96
|
-
_lp()<code>and</code>_lx()`.</p>
|
|
97
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_lnpx.__type-8.__type-9"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>The method <code>_lnpx()</code> brings it all together. It combines <code>_ln()</code> and
|
|
98
|
-
_lp()<code>and</code>_lx()`.</p>
|
|
99
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">locale</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the locale identifier</p>
|
|
100
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgctxt</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message context</p>
|
|
101
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
102
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgidPlural</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the plural string</p>
|
|
103
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">numItems</span>: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><p>the number of items</p>
|
|
104
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">placeholders</span>: <a href="../interfaces/Placeholders.html" class="tsd-signature-type tsd-kind-interface">Placeholders</a></h5><div class="tsd-comment tsd-typography"><p>an optional dictionary with placehoders</p>
|
|
105
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
106
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: locale</h4><p>the locale identifier</p>
|
|
107
|
-
<h4>Param: msgctxt</h4><p>the message context</p>
|
|
108
|
-
<h4>Param: msgid</h4><p>the message id</p>
|
|
109
|
-
<h4>Param: msgidPlural</h4><p>the plural string</p>
|
|
110
|
-
<h4>Param: numItems</h4><p>the number of items</p>
|
|
111
|
-
<h4>Param: placeholders</h4><p>an optional dictionary with placehoders</p>
|
|
112
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
113
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L327">core/textdomain.ts:327</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_lnx" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_lnx</span><a href="#_lnx" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_lnx</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>Translate a string with a plural expression with placeholders into a
|
|
114
|
-
fixed locale.</p>
|
|
115
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_lnx.__type-10.__type-11"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Translate a string with a plural expression with placeholders into a
|
|
116
|
-
fixed locale.</p>
|
|
117
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">locale</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the locale identifier</p>
|
|
118
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the string in the singular</p>
|
|
119
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgidPlural</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the string in the plural</p>
|
|
120
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">numItems</span>: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><p>the number of items</p>
|
|
121
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">placeholders</span>: <a href="../interfaces/Placeholders.html" class="tsd-signature-type tsd-kind-interface">Placeholders</a></h5><div class="tsd-comment tsd-typography"><p>an optional dictionary of placeholders</p>
|
|
122
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
123
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: locale</h4><p>the locale identifier</p>
|
|
124
|
-
<h4>Param: msgid</h4><p>the string in the singular</p>
|
|
125
|
-
<h4>Param: msgidPlural</h4><p>the string in the plural</p>
|
|
126
|
-
<h4>Param: numItems</h4><p>the number of items</p>
|
|
127
|
-
<h4>Param: placeholders</h4><p>an optional dictionary of placeholders</p>
|
|
128
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
129
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L296">core/textdomain.ts:296</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_lp" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_lp</span><a href="#_lp" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_lp</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>Translate a string with a context with a fixed locale.</p>
|
|
130
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_lp.__type-12.__type-13"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Translate a string with a context with a fixed locale.</p>
|
|
131
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">locale</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the locale identifier</p>
|
|
132
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgctxt</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message context</p>
|
|
133
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the string to translate</p>
|
|
134
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
135
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: locale</h4><p>the locale identifier</p>
|
|
136
|
-
<h4>Param: msgctxt</h4><p>the message context</p>
|
|
137
|
-
<h4>Param: msgid</h4><p>the string to translate</p>
|
|
138
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
139
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L248">core/textdomain.ts:248</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_lpx" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_lpx</span><a href="#_lpx" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_lpx</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>The method <code>_lpx()</code> combines <code>_lp()</code> with <code>_lx()</code>.</p>
|
|
140
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_lpx.__type-14.__type-15"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>The method <code>_lpx()</code> combines <code>_lp()</code> with <code>_lx()</code>.</p>
|
|
141
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgctxt</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message context</p>
|
|
142
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
143
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">placeholders</span>: <a href="../interfaces/Placeholders.html" class="tsd-signature-type tsd-kind-interface">Placeholders</a></h5><div class="tsd-comment tsd-typography"><p>an optional dictionary with placehoders</p>
|
|
144
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
145
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: locale</h4><p>the locale identifier</p>
|
|
146
|
-
<h4>Param: msgctxt</h4><p>the message context</p>
|
|
147
|
-
<h4>Param: msgid</h4><p>the message id</p>
|
|
148
|
-
<h4>Param: placeholders</h4><p>an optional dictionary with placehoders</p>
|
|
149
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
150
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L313">core/textdomain.ts:313</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_lx" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_lx</span><a href="#_lx" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_lx</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>Translate a string with placeholders for a fixed locale.
|
|
151
|
-
The placeholders should be
|
|
152
|
-
wrapped into curly braces and must match the regular expression
|
|
153
|
-
"[_a-zA-Z][_a-zA-Z0-9]*".</p>
|
|
154
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_lx.__type-16.__type-17"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Translate a string with placeholders for a fixed locale.
|
|
155
|
-
The placeholders should be
|
|
156
|
-
wrapped into curly braces and must match the regular expression
|
|
157
|
-
"[_a-zA-Z][_a-zA-Z0-9]*".</p>
|
|
158
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">locale</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the locale identifier</p>
|
|
159
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the msgid to translate</p>
|
|
160
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">placeholders</span>: <a href="../interfaces/Placeholders.html" class="tsd-signature-type tsd-kind-interface">Placeholders</a></h5><div class="tsd-comment tsd-typography"><p>an optional dictionary of placeholders</p>
|
|
161
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string with placeholders expanded</p>
|
|
162
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: locale</h4><p>the locale identifier</p>
|
|
163
|
-
<h4>Param: msgid</h4><p>the msgid to translate</p>
|
|
164
|
-
<h4>Param: placeholders</h4><p>an optional dictionary of placeholders</p>
|
|
165
|
-
<h4>Returns</h4><p>the translated string with placeholders expanded</p>
|
|
166
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L282">core/textdomain.ts:282</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_n" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_n</span><a href="#_n" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_n</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>Retrieve a translation for a string containing a possible plural.
|
|
167
|
-
You will almost always want to call <a href="Textdomain.html#_nx" class="tsd-kind-property"><code>_nx</code></a> instead so that
|
|
168
|
-
you can interpolate the number of items into the strings.</p>
|
|
169
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_n.__type-18.__type-19"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Retrieve a translation for a string containing a possible plural.
|
|
170
|
-
You will almost always want to call <a href="Textdomain.html#_nx" class="tsd-kind-property"><code>_nx</code></a> instead so that
|
|
171
|
-
you can interpolate the number of items into the strings.</p>
|
|
172
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the string in the singular</p>
|
|
173
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgidPlural</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the string in the plural</p>
|
|
174
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">numItems</span>: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><p>the number of items</p>
|
|
175
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
176
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: msgid</h4><p>the string in the singular</p>
|
|
177
|
-
<h4>Param: msgidPlural</h4><p>the string in the plural</p>
|
|
178
|
-
<h4>Param: numItems</h4><p>the number of items</p>
|
|
179
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
180
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L107">core/textdomain.ts:107</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_np" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_np</span><a href="#_np" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_np</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>The method <code>_np()</code> combines <code>_n()</code> with <code>_p()</code>.
|
|
181
|
-
You will almost always want to call <a href="Textdomain.html#_npx" class="tsd-kind-property"><code>_npx</code></a> instead so that
|
|
182
|
-
you can interpolate the number of items into the strings.</p>
|
|
183
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_np.__type-20.__type-21"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>The method <code>_np()</code> combines <code>_n()</code> with <code>_p()</code>.
|
|
184
|
-
You will almost always want to call <a href="Textdomain.html#_npx" class="tsd-kind-property"><code>_npx</code></a> instead so that
|
|
185
|
-
you can interpolate the number of items into the strings.</p>
|
|
186
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgctxt</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message context</p>
|
|
187
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
188
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgidPlural</span>: <span class="tsd-signature-type">string</span></h5></li><li><h5><span class="tsd-kind-parameter">numItems</span>: <span class="tsd-signature-type">number</span></h5></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
189
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: msgctxt</h4><p>the message context</p>
|
|
190
|
-
<h4>Param: msgid</h4><p>the message id</p>
|
|
191
|
-
<h4>Param: placeholders</h4><p>a dictionary with placehoders</p>
|
|
192
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
193
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L130">core/textdomain.ts:130</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_npx" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_npx</span><a href="#_npx" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_npx</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>The method <code>_npx()</code> brings it all together. It combines <code>_n()</code> and
|
|
194
|
-
_p()<code>and</code>_x()`.</p>
|
|
195
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_npx.__type-22.__type-23"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>The method <code>_npx()</code> brings it all together. It combines <code>_n()</code> and
|
|
196
|
-
_p()<code>and</code>_x()`.</p>
|
|
197
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgctxt</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message context</p>
|
|
198
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
199
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgidPlural</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the plural string</p>
|
|
200
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">numItems</span>: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><p>the number of items</p>
|
|
201
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">placeholders</span>: <a href="../interfaces/Placeholders.html" class="tsd-signature-type tsd-kind-interface">Placeholders</a></h5><div class="tsd-comment tsd-typography"><p>an optional dictionary with placehoders</p>
|
|
202
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
203
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: msgctxt</h4><p>the message context</p>
|
|
204
|
-
<h4>Param: msgid</h4><p>the message id</p>
|
|
205
|
-
<h4>Param: msgidPlural</h4><p>the plural string</p>
|
|
206
|
-
<h4>Param: numItems</h4><p>the number of items</p>
|
|
207
|
-
<h4>Param: placeholders</h4><p>an optional dictionary with placehoders</p>
|
|
208
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
209
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L187">core/textdomain.ts:187</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_nx" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_nx</span><a href="#_nx" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_nx</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>Translate a string with a plural expression with placeholders.</p>
|
|
210
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_nx.__type-24.__type-25"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">msgidPlural</span>, <span class="tsd-kind-parameter">numItems</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Translate a string with a plural expression with placeholders.</p>
|
|
211
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the string in the singular</p>
|
|
212
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgidPlural</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the string in the plural</p>
|
|
213
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">numItems</span>: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><p>the number of items</p>
|
|
214
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">placeholders</span>: <a href="../interfaces/Placeholders.html" class="tsd-signature-type tsd-kind-interface">Placeholders</a></h5><div class="tsd-comment tsd-typography"><p>an optional dictionary of placeholders</p>
|
|
215
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
216
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: msgid</h4><p>the string in the singular</p>
|
|
217
|
-
<h4>Param: msgidPlural</h4><p>the string in the plural</p>
|
|
218
|
-
<h4>Param: numItems</h4><p>the number of items</p>
|
|
219
|
-
<h4>Param: placeholders</h4><p>an optional dictionary of placeholders</p>
|
|
220
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
221
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L159">core/textdomain.ts:159</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_p" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_p</span><a href="#_p" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_p</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>Translate a string with a context.</p>
|
|
222
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_p.__type-26.__type-27"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Translate a string with a context.</p>
|
|
223
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgctxt</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message context</p>
|
|
224
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the string to translate</p>
|
|
225
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
226
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: msgctxt</h4><p>the message context</p>
|
|
227
|
-
<h4>Param: msgid</h4><p>the string to translate</p>
|
|
228
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
229
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L117">core/textdomain.ts:117</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_px" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_px</span><a href="#_px" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_px</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>The method <code>_px()</code> combines <code>_p()</code> with <code>_x()</code>.</p>
|
|
230
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_px.__type-28.__type-29"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>The method <code>_px()</code> combines <code>_p()</code> with <code>_x()</code>.</p>
|
|
231
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgctxt</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message context</p>
|
|
232
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
233
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">placeholders</span>: <a href="../interfaces/Placeholders.html" class="tsd-signature-type tsd-kind-interface">Placeholders</a></h5><div class="tsd-comment tsd-typography"><p>an optional dictionary with placehoders</p>
|
|
234
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string</p>
|
|
235
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: msgctxt</h4><p>the message context</p>
|
|
236
|
-
<h4>Param: msgid</h4><p>the message id</p>
|
|
237
|
-
<h4>Param: placeholders</h4><p>an optional dictionary with placehoders</p>
|
|
238
|
-
<h4>Returns</h4><p>the translated string</p>
|
|
239
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L174">core/textdomain.ts:174</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="_x" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_x</span><a href="#_x" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_x</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>Translate a string with placeholders. The placeholders should be
|
|
240
|
-
wrapped into curly braces and must match the regular expression
|
|
241
|
-
"[_a-zA-Z][_a-zA-Z0-9]*".</p>
|
|
242
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="_x.__type-30.__type-31"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Translate a string with placeholders. The placeholders should be
|
|
243
|
-
wrapped into curly braces and must match the regular expression
|
|
244
|
-
"[_a-zA-Z][_a-zA-Z0-9]*".</p>
|
|
245
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the msgid to translate</p>
|
|
246
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">placeholders</span>: <a href="../interfaces/Placeholders.html" class="tsd-signature-type tsd-kind-interface">Placeholders</a></h5><div class="tsd-comment tsd-typography"><p>an optional dictionary of placeholders</p>
|
|
247
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the translated string with placeholders expanded</p>
|
|
248
|
-
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: msgid</h4><p>the msgid to translate</p>
|
|
249
|
-
<h4>Param: placeholders</h4><p>an optional dictionary of placeholders</p>
|
|
250
|
-
<h4>Returns</h4><p>the translated string with placeholders expanded</p>
|
|
251
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L147">core/textdomain.ts:147</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="getInstance" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Instance</span><a href="#getInstance" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">get<wbr/>Instance</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">textdomain</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><a href="Textdomain.html" class="tsd-signature-type tsd-kind-class">Textdomain</a><span class="tsd-signature-symbol">)</span></div><div class="tsd-comment tsd-typography"><p>Instantiate a Textdomain object. Textdomain objects are singletons
|
|
252
|
-
for each textdomain identifier.</p>
|
|
253
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="getInstance.__type-32.__type-33"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">textdomain</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Textdomain.html" class="tsd-signature-type tsd-kind-class">Textdomain</a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Instantiate a Textdomain object. Textdomain objects are singletons
|
|
254
|
-
for each textdomain identifier.</p>
|
|
255
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">textdomain</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the textdomain of your application or library.</p>
|
|
256
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="Textdomain.html" class="tsd-signature-type tsd-kind-class">Textdomain</a></h4><div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><h4>Param: textdomain</h4><p>the textdomain of your application or library.</p>
|
|
257
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L85">core/textdomain.ts:85</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group"><h2>Accessors</h2><section class="tsd-panel tsd-member"><a id="catalogFormat" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>catalog<wbr/>Format</span><a href="#catalogFormat" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature" id="catalogFormat.catalogFormat-1"><span class="tsd-signature-keyword">get</span> catalogFormat<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get the catalog format in use.</p>
|
|
258
|
-
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>one of 'json' or 'mo' (default is 'json')</p>
|
|
259
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L605">core/textdomain.ts:605</a></li></ul></aside></li><li class="tsd-signature" id="catalogFormat.catalogFormat-2"><span class="tsd-signature-keyword">set</span> catalogFormat<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">format</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Set the catalog format to use.</p>
|
|
260
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">format</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>one of 'json' or 'mo'</p>
|
|
261
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L614">core/textdomain.ts:614</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="locale" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>locale</span><a href="#locale" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature" id="locale.locale-1"><span class="tsd-signature-keyword">get</span> locale<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Query the locale in use.</p>
|
|
262
|
-
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L453">core/textdomain.ts:453</a></li></ul></aside></li><li class="tsd-signature" id="locale.locale-2"><span class="tsd-signature-keyword">set</span> locale<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Change the locale.</p>
|
|
263
|
-
<p>For the web you can use all valid language identifier tags that
|
|
264
|
-
<a href="https://tools.ietf.org/html/bcp47">BCP47</a> allows
|
|
265
|
-
(and actually a lot more). The tag is always used unmodified.</p>
|
|
266
|
-
<p>For server environments, the locale identifier has to match the following
|
|
267
|
-
scheme:</p>
|
|
268
|
-
<p> <code>ll_CC.charset\@modifier</code></p>
|
|
269
|
-
<ul>
|
|
270
|
-
<li><code>ll</code> is the two- or three-letter language code.</li>
|
|
271
|
-
<li><code>CC</code> is the optional two-letter country code.</li>
|
|
272
|
-
<li><code>charset</code> is an optional character set (letters, digits, and the hyphen).</li>
|
|
273
|
-
<li><code>modifier</code> is an optional variant (letters and digits).</li>
|
|
274
|
-
</ul>
|
|
275
|
-
<p>The language code is always converted to lowercase, the country code is
|
|
276
|
-
converted to uppercase, variant and charset are used as is.</p>
|
|
277
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">locale</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the locale identifier</p>
|
|
278
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><p>the locale in use</p>
|
|
279
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L480">core/textdomain.ts:480</a></li></ul></aside></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Methods</h2><section class="tsd-panel tsd-member"><a id="N_" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>N_</span><a href="#N_" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="N_.N_-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">N_</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgid</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#N_.N_-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Does the same as the static method <code>N_()</code>.</p>
|
|
280
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
281
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the original string</p>
|
|
282
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L713">core/textdomain.ts:713</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="N_p" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>N_<wbr/>p</span><a href="#N_p" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="N_p.N_p-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">N_<wbr/>p</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">_msgctxt</span>, <span class="tsd-kind-parameter">msgid</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#N_p.N_p-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Same as <code>N_()</code> but with context.</p>
|
|
283
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">_msgctxt</span>: <span class="tsd-signature-type">string</span></h5></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
284
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the original string</p>
|
|
285
|
-
<div class="tsd-comment tsd-typography"><h4>Params</h4><p>_msgctxt - the message context (not used)</p>
|
|
286
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L746">core/textdomain.ts:746</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="N_px" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>N_<wbr/>px</span><a href="#N_px" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="N_px.N_px-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">N_<wbr/>px</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">_msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#N_px.N_px-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Same as <code>N_()</code> but with context and placeholder expansion.</p>
|
|
287
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">_msgctxt</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message context (not used)</p>
|
|
288
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
289
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">placeholders</span>: <a href="../interfaces/Placeholders.html" class="tsd-signature-type tsd-kind-interface">Placeholders</a></h5><div class="tsd-comment tsd-typography"><p>a dictionary of placeholders</p>
|
|
290
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the original string with placeholders expanded</p>
|
|
291
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L769">core/textdomain.ts:769</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="N_x" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>N_<wbr/>x</span><a href="#N_x" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="N_x.N_x-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">N_<wbr/>x</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#N_x.N_x-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Same as <code>N_()</code> but with placeholder expansion.</p>
|
|
292
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
293
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">placeholders</span>: <a href="../interfaces/Placeholders.html" class="tsd-signature-type tsd-kind-interface">Placeholders</a></h5><div class="tsd-comment tsd-typography"><p>a dictionary of placeholders</p>
|
|
294
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the original string with placeholders expanded</p>
|
|
295
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L724">core/textdomain.ts:724</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="bindtextdomain" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>bindtextdomain</span><a href="#bindtextdomain" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="bindtextdomain.bindtextdomain-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">bindtextdomain</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">path</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/LocaleContainer.html" class="tsd-signature-type tsd-kind-interface">LocaleContainer</a><a href="#bindtextdomain.bindtextdomain-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Bind a textdomain to a certain path or queries the path that a
|
|
296
|
-
textdomain is bound to. The catalog file will be searched
|
|
297
|
-
in <code>${path}/locale/LC_MESSAGES/${domainname}.EXT</code>.</p>
|
|
298
|
-
<p>Alternatively, you can pass a [[<code>LocaleContainer</code>]] that holds the
|
|
299
|
-
catalogs in memory.</p>
|
|
300
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">path</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/LocaleContainer.html" class="tsd-signature-type tsd-kind-interface">LocaleContainer</a></h5><div class="tsd-comment tsd-typography"><p>the base path or [[<code>LocaleContainer</code>]] for this textdomain</p>
|
|
301
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/LocaleContainer.html" class="tsd-signature-type tsd-kind-interface">LocaleContainer</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L540">core/textdomain.ts:540</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="resolve" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>resolve</span><a href="#resolve" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="resolve.resolve-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">resolve</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">locale</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/Catalog.html" class="tsd-signature-type tsd-kind-interface">Catalog</a><span class="tsd-signature-symbol">></span><a href="#resolve.resolve-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Resolve a textdomain, i.e. load the LocaleContainer for this domain and all
|
|
302
|
-
of its dependencies for the currently selected locale or the locale
|
|
303
|
-
specified.</p>
|
|
304
|
-
<p>The promise will always resolve. If no catalog was found, an empty
|
|
305
|
-
catalog will be returned that is still usable.</p>
|
|
306
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">locale</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>an optional locale identifier, defaults to Textdomain.locale</p>
|
|
307
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/Catalog.html" class="tsd-signature-type tsd-kind-interface">Catalog</a><span class="tsd-signature-symbol">></span></h4><p>a promise for a Catalog that will always resolve.</p>
|
|
308
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L560">core/textdomain.ts:560</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="textdomain" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>textdomain</span><a href="#textdomain" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="textdomain.textdomain-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">textdomain</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#textdomain.textdomain-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>A textdomain is an identifier for your application or library. It is
|
|
309
|
-
the basename of your translation files which are either TEXTDOMAIN.json
|
|
310
|
-
or TEXTDOMAIN.mo, depending on the format you have chosen.</p>
|
|
311
|
-
<p>FIXME! This should be a getter!</p>
|
|
312
|
-
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the textdomain</p>
|
|
313
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L526">core/textdomain.ts:526</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="N_-2" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>N_</span><a href="#N_-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="N_-2.N_-3" class="tsd-anchor"></a><span class="tsd-kind-call-signature">N_</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgid</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#N_-2.N_-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>A no-op method for string marking.</p>
|
|
314
|
-
<p>Sometimes you want to mark strings for translation but do not actually
|
|
315
|
-
want to translate them, at least not at the time of their definition.
|
|
316
|
-
This is often the case, when you have to preserve the original string.</p>
|
|
317
|
-
<p>Take this example:</p>
|
|
318
|
-
<pre><code><span class="hl-0">orangeColors</span><span class="hl-1"> = [</span><span class="hl-0">gtx</span><span class="hl-1">.</span><span class="hl-2">N_</span><span class="hl-1">(</span><span class="hl-3">'coral'</span><span class="hl-1">), </span><span class="hl-0">gtx</span><span class="hl-1">.</span><span class="hl-2">N_</span><span class="hl-1">(</span><span class="hl-3">'tomato'</span><span class="hl-1">), </span><span class="hl-0">gtx</span><span class="hl-1">.</span><span class="hl-2">N_</span><span class="hl-1">(</span><span class="hl-3">'orangered'</span><span class="hl-1">),</span><br/><span class="hl-1"> </span><span class="hl-0">gtx</span><span class="hl-1">.</span><span class="hl-2">N_</span><span class="hl-1">(</span><span class="hl-3">'gold'</span><span class="hl-1">), </span><span class="hl-0">gtx</span><span class="hl-1">.</span><span class="hl-2">N_</span><span class="hl-1">(</span><span class="hl-3">'orange'</span><span class="hl-1">), </span><span class="hl-0">gtx</span><span class="hl-1">.</span><span class="hl-2">N_</span><span class="hl-1">(</span><span class="hl-3">'darkorange'</span><span class="hl-1">)]</span>
|
|
319
|
-
</code><button>Copy</button></pre>
|
|
320
|
-
<p>These are standard CSS colors, and you cannot translate them inside
|
|
321
|
-
CSS styles. But for presentation you may want to translate them later:</p>
|
|
322
|
-
<pre><code><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-2">log</span><span class="hl-1">(</span><span class="hl-0">gtx</span><span class="hl-1">.</span><span class="hl-2">_x</span><span class="hl-1">(</span><span class="hl-3">"The css color '{color}' is {translated}."</span><span class="hl-1">,</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">color:</span><span class="hl-1"> </span><span class="hl-0">orangeColors</span><span class="hl-1">[</span><span class="hl-14">2</span><span class="hl-1">],</span><br/><span class="hl-1"> </span><span class="hl-0">translated:</span><span class="hl-1"> </span><span class="hl-0">gtx</span><span class="hl-1">.</span><span class="hl-2">_</span><span class="hl-1">(</span><span class="hl-0">orangeColors</span><span class="hl-1">[</span><span class="hl-14">2</span><span class="hl-1">]),</span><br/><span class="hl-1"> }</span><br/><span class="hl-1"> )</span><br/><span class="hl-1">);</span>
|
|
323
|
-
</code><button>Copy</button></pre>
|
|
324
|
-
<p>In other words: The method just marks strings for translation, so that
|
|
325
|
-
the extractor <code>esgettext-xgettext</code> finds them but it does not actually
|
|
326
|
-
translate anything.</p>
|
|
327
|
-
<p>Similar methods are available for other cases (with placeholder
|
|
328
|
-
expansion, context, or both). They are <em>not</em> available for plural
|
|
329
|
-
methods because that would not make sense.</p>
|
|
330
|
-
<p>Note that all of these methods are also available as instance methods.</p>
|
|
331
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
332
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the original string</p>
|
|
333
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L703">core/textdomain.ts:703</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="N_p-2" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>N_<wbr/>p</span><a href="#N_p-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="N_p-2.N_p-3" class="tsd-anchor"></a><span class="tsd-kind-call-signature">N_<wbr/>p</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">_msgctxt</span>, <span class="tsd-kind-parameter">msgid</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#N_p-2.N_p-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Does the same as the static method <code>N_p()</code>.</p>
|
|
334
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">_msgctxt</span>: <span class="tsd-signature-type">string</span></h5></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
335
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the original string with placeholders expanded</p>
|
|
336
|
-
<div class="tsd-comment tsd-typography"><h4>Params</h4><p>_msgctxt - the message context (not used)</p>
|
|
337
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L757">core/textdomain.ts:757</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="N_px-2" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>N_<wbr/>px</span><a href="#N_px-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="N_px-2.N_px-3" class="tsd-anchor"></a><span class="tsd-kind-call-signature">N_<wbr/>px</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">_msgctxt</span>, <span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#N_px-2.N_px-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Does the same as the static method <code>N_px()</code>.</p>
|
|
338
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">_msgctxt</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message context (not used)</p>
|
|
339
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
340
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">placeholders</span>: <a href="../interfaces/Placeholders.html" class="tsd-signature-type tsd-kind-interface">Placeholders</a></h5><div class="tsd-comment tsd-typography"><p>a dictionary of placeholders</p>
|
|
341
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the original string with placeholders expanded</p>
|
|
342
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L781">core/textdomain.ts:781</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="N_x-2" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>N_<wbr/>x</span><a href="#N_x-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="N_x-2.N_x-3" class="tsd-anchor"></a><span class="tsd-kind-call-signature">N_<wbr/>x</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msgid</span>, <span class="tsd-kind-parameter">placeholders</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#N_x-2.N_x-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Does the same as the static method <code>N_x()</code>.</p>
|
|
343
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">msgid</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>the message id</p>
|
|
344
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">placeholders</span>: <a href="../interfaces/Placeholders.html" class="tsd-signature-type tsd-kind-interface">Placeholders</a></h5><div class="tsd-comment tsd-typography"><p>a dictionary of placeholders</p>
|
|
345
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the original string with placeholders expanded</p>
|
|
346
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L735">core/textdomain.ts:735</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="clearInstances" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>clear<wbr/>Instances</span><a href="#clearInstances" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="clearInstances.clearInstances-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">clear<wbr/>Instances</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#clearInstances.clearInstances-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Delete all existing singletons. This method should usually be called
|
|
347
|
-
only, when you want to free memory.</p>
|
|
348
|
-
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L438">core/textdomain.ts:438</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="forgetInstances" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>forget<wbr/>Instances</span><a href="#forgetInstances" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="forgetInstances.forgetInstances-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">forget<wbr/>Instances</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#forgetInstances.forgetInstances-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>This method is used for testing. Do not use it yourself!</p>
|
|
349
|
-
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L445">core/textdomain.ts:445</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="selectLocale" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>select<wbr/>Locale</span><a href="#selectLocale" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="selectLocale.selectLocale-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">select<wbr/>Locale</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">supported</span>, <span class="tsd-kind-parameter">requested</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#selectLocale.selectLocale-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Select one of the supported locales from a list of locales accepted by
|
|
350
|
-
the user.</p>
|
|
351
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">supported</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><p>the list of locales supported by the application</p>
|
|
352
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">requested</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><p>the list of locales accepted by the user</p>
|
|
353
|
-
<p>If called with just one argument, then the list of requested locales
|
|
354
|
-
is determined by calling [[Textdomain.userLocales]].</p>
|
|
355
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the negotiated locale or 'C' if not possible.</p>
|
|
356
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L653">core/textdomain.ts:653</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="userLocales" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>user<wbr/>Locales</span><a href="#userLocales" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="userLocales.userLocales-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">user<wbr/>Locales</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><a href="#userLocales.userLocales-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Queries the user's preferred locales. On the server it queries the
|
|
357
|
-
environment variables <code>LANGUAGE</code>, <code>LC_ALL</code>, <code>LANG</code>, and <code>LC_MESSAGES</code>
|
|
358
|
-
(in that order). In the browser, it parses it checks the user preferences
|
|
359
|
-
in the variables <code>navigator.languages</code>, <code>navigator.language</code>,
|
|
360
|
-
<code>navigator.userLanguage</code>, <code>navigator.browserLanguage</code>, and
|
|
361
|
-
<code>navigator.systemLanguage</code>.</p>
|
|
362
|
-
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4><p>the set of locales in order of preference</p>
|
|
363
|
-
<p>Added in @runtime 0.1.0.</p>
|
|
364
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/gflohr/esgettext/blob/f5b2215/packages/runtime/src/core/textdomain.ts#L637">core/textdomain.ts:637</a></li></ul></aside></li></ul></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><ul><li><a href="#_" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_</span></a></li><li><a href="#_l" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_l</span></a></li><li><a href="#_ln" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_ln</span></a></li><li><a href="#_lnp" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_lnp</span></a></li><li><a href="#_lnpx" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_lnpx</span></a></li><li><a href="#_lnx" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_lnx</span></a></li><li><a href="#_lp" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_lp</span></a></li><li><a href="#_lpx" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_lpx</span></a></li><li><a href="#_lx" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_lx</span></a></li><li><a href="#_n" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_n</span></a></li><li><a href="#_np" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_np</span></a></li><li><a href="#_npx" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_npx</span></a></li><li><a href="#_nx" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_nx</span></a></li><li><a href="#_p" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_p</span></a></li><li><a href="#_px" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_px</span></a></li><li><a href="#_x" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_x</span></a></li><li><a href="#getInstance" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>get<wbr/>Instance</span></a></li><li><a href="#catalogFormat" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>catalog<wbr/>Format</span></a></li><li><a href="#locale" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>locale</span></a></li><li><a href="#N_" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_</span></a></li><li><a href="#N_p" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_<wbr/>p</span></a></li><li><a href="#N_px" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_<wbr/>px</span></a></li><li><a href="#N_x" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_<wbr/>x</span></a></li><li><a href="#bindtextdomain" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>bindtextdomain</span></a></li><li><a href="#resolve" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>resolve</span></a></li><li><a href="#textdomain" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>textdomain</span></a></li><li><a href="#N_-2" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_</span></a></li><li><a href="#N_p-2" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_<wbr/>p</span></a></li><li><a href="#N_px-2" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_<wbr/>px</span></a></li><li><a href="#N_x-2" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>N_<wbr/>x</span></a></li><li><a href="#clearInstances" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>clear<wbr/>Instances</span></a></li><li><a href="#forgetInstances" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>forget<wbr/>Instances</span></a></li><li><a href="#selectLocale" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>select<wbr/>Locale</span></a></li><li><a href="#userLocales" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>user<wbr/>Locales</span></a></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1"></use></svg><span>@esgettext/runtime</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li><a href="Textdomain.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Textdomain</a></li><li><a href="../interfaces/Catalog.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>Catalog</a></li><li><a href="../interfaces/CatalogEntries.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>CatalogEntries</a></li><li><a href="../interfaces/LocaleContainer.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>LocaleContainer</a></li><li><a href="../interfaces/Placeholders.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg>Placeholders</a></li></ul></nav></div></div></div><div class="tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><svg style="display: none"><g id="icon-1"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-2"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g><g id="icon-16"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4096"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-8192"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-16384"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-32768"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-65536"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-131072"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-524288"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-1048576"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-2097152"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g><g id="icon-chevronDown"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></g><g id="icon-chevronSmall"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></g><g id="icon-menu"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></g><g id="icon-search"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></g><g id="icon-anchor"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g></svg></body></html>
|