mirror of
https://github.com/plausible/analytics.git
synced 2024-11-30 00:58:54 +03:00
deploy: 82a15884ad
This commit is contained in:
parent
0edefc5123
commit
a19362630e
5
.build
5
.build
@ -194,6 +194,7 @@ Plausible.Stats.Imported.SQL.Expression.html
|
|||||||
Plausible.Stats.Imported.SQL.WhereBuilder.html
|
Plausible.Stats.Imported.SQL.WhereBuilder.html
|
||||||
Plausible.Stats.Imported.html
|
Plausible.Stats.Imported.html
|
||||||
Plausible.Stats.Interval.html
|
Plausible.Stats.Interval.html
|
||||||
|
Plausible.Stats.JSONSchema.Utils.html
|
||||||
Plausible.Stats.JSONSchema.html
|
Plausible.Stats.JSONSchema.html
|
||||||
Plausible.Stats.Legacy.Dimensions.html
|
Plausible.Stats.Legacy.Dimensions.html
|
||||||
Plausible.Stats.Legacy.QueryBuilder.html
|
Plausible.Stats.Legacy.QueryBuilder.html
|
||||||
@ -437,8 +438,8 @@ dist/merriweather-latin-ext-300-normal-K6L27CZ5.woff2
|
|||||||
dist/merriweather-vietnamese-300-italic-EHHNZPUO.woff2
|
dist/merriweather-vietnamese-300-italic-EHHNZPUO.woff2
|
||||||
dist/merriweather-vietnamese-300-normal-U376L4Z4.woff2
|
dist/merriweather-vietnamese-300-normal-U376L4Z4.woff2
|
||||||
dist/remixicon-NKANDIL5.woff2
|
dist/remixicon-NKANDIL5.woff2
|
||||||
dist/search_data-AEAAEAEF.js
|
dist/search_data-80C474AF.js
|
||||||
dist/sidebar_items-800E1FDC.js
|
dist/sidebar_items-DEB0EA1A.js
|
||||||
index.html
|
index.html
|
||||||
readme.html
|
readme.html
|
||||||
search.html
|
search.html
|
||||||
|
2
404.html
2
404.html
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -1187,23 +1187,23 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
|||||||
|
|
||||||
<section class="docstring">
|
<section class="docstring">
|
||||||
|
|
||||||
<p>Similar to <a href="#insert_all/2"><code class="inline">insert_all/2</code></a> but with the following differences:</p><ul><li>accepts rows as streams or lists</li><li>sends rows as a chunked request</li><li>doesn't autogenerate ids or does any other preprocessing</li></ul><p>Example:</p><pre><code class="makeup elixir" translate="no"><span class="nc">Repo</span><span class="o">.</span><span class="n">query!</span><span class="p" data-group-id="9958478991-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="9958478991-1">)</span><span class="w">
|
<p>Similar to <a href="#insert_all/2"><code class="inline">insert_all/2</code></a> but with the following differences:</p><ul><li>accepts rows as streams or lists</li><li>sends rows as a chunked request</li><li>doesn't autogenerate ids or does any other preprocessing</li></ul><p>Example:</p><pre><code class="makeup elixir" translate="no"><span class="nc">Repo</span><span class="o">.</span><span class="n">query!</span><span class="p" data-group-id="7152550906-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="7152550906-1">)</span><span class="w">
|
||||||
|
|
||||||
</span><span class="kd">defmodule</span><span class="w"> </span><span class="nc">Demo</span><span class="w"> </span><span class="k" data-group-id="9958478991-2">do</span><span class="w">
|
</span><span class="kd">defmodule</span><span class="w"> </span><span class="nc">Demo</span><span class="w"> </span><span class="k" data-group-id="7152550906-2">do</span><span class="w">
|
||||||
</span><span class="kn">use</span><span class="w"> </span><span class="nc">Ecto.Schema</span><span class="w">
|
</span><span class="kn">use</span><span class="w"> </span><span class="nc">Ecto.Schema</span><span class="w">
|
||||||
|
|
||||||
</span><span class="na">@primary_key</span><span class="w"> </span><span class="no">false</span><span class="w">
|
</span><span class="na">@primary_key</span><span class="w"> </span><span class="no">false</span><span class="w">
|
||||||
</span><span class="n">schema</span><span class="w"> </span><span class="s">"ecto_ch_demo"</span><span class="w"> </span><span class="k" data-group-id="9958478991-3">do</span><span class="w">
|
</span><span class="n">schema</span><span class="w"> </span><span class="s">"ecto_ch_demo"</span><span class="w"> </span><span class="k" data-group-id="7152550906-3">do</span><span class="w">
|
||||||
</span><span class="n">field</span><span class="w"> </span><span class="ss">:a</span><span class="p">,</span><span class="w"> </span><span class="nc">Ch</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="s">"UInt64"</span><span class="w">
|
</span><span class="n">field</span><span class="w"> </span><span class="ss">:a</span><span class="p">,</span><span class="w"> </span><span class="nc">Ch</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="s">"UInt64"</span><span class="w">
|
||||||
</span><span class="n">field</span><span class="w"> </span><span class="ss">:b</span><span class="p">,</span><span class="w"> </span><span class="ss">:string</span><span class="w">
|
</span><span class="n">field</span><span class="w"> </span><span class="ss">:b</span><span class="p">,</span><span class="w"> </span><span class="ss">:string</span><span class="w">
|
||||||
</span><span class="k" data-group-id="9958478991-3">end</span><span class="w">
|
</span><span class="k" data-group-id="7152550906-3">end</span><span class="w">
|
||||||
</span><span class="k" data-group-id="9958478991-2">end</span><span class="w">
|
</span><span class="k" data-group-id="7152550906-2">end</span><span class="w">
|
||||||
|
|
||||||
</span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Stream</span><span class="o">.</span><span class="n">map</span><span class="p" data-group-id="9958478991-4">(</span><span class="mi">1</span><span class="o">..</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="k" data-group-id="9958478991-5">fn</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="p" data-group-id="9958478991-6">%{</span><span class="ss">a</span><span class="p">:</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="ss">b</span><span class="p">:</span><span class="w"> </span><span class="n">to_string</span><span class="p" data-group-id="9958478991-7">(</span><span class="n">i</span><span class="p" data-group-id="9958478991-7">)</span><span class="p" data-group-id="9958478991-6">}</span><span class="w"> </span><span class="k" data-group-id="9958478991-5">end</span><span class="p" data-group-id="9958478991-4">)</span><span class="w">
|
</span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Stream</span><span class="o">.</span><span class="n">map</span><span class="p" data-group-id="7152550906-4">(</span><span class="mi">1</span><span class="o">..</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="k" data-group-id="7152550906-5">fn</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="p" data-group-id="7152550906-6">%{</span><span class="ss">a</span><span class="p">:</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="ss">b</span><span class="p">:</span><span class="w"> </span><span class="n">to_string</span><span class="p" data-group-id="7152550906-7">(</span><span class="n">i</span><span class="p" data-group-id="7152550906-7">)</span><span class="p" data-group-id="7152550906-6">}</span><span class="w"> </span><span class="k" data-group-id="7152550906-5">end</span><span class="p" data-group-id="7152550906-4">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="9958478991-8">{</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="9958478991-8">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Repo</span><span class="o">.</span><span class="n">insert_stream</span><span class="p" data-group-id="9958478991-9">(</span><span class="nc">Demo</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p" data-group-id="9958478991-9">)</span><span class="w">
|
</span><span class="p" data-group-id="7152550906-8">{</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="7152550906-8">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Repo</span><span class="o">.</span><span class="n">insert_stream</span><span class="p" data-group-id="7152550906-9">(</span><span class="nc">Demo</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p" data-group-id="7152550906-9">)</span><span class="w">
|
||||||
|
|
||||||
</span><span class="c1"># schemaless</span><span class="w">
|
</span><span class="c1"># schemaless</span><span class="w">
|
||||||
</span><span class="p" data-group-id="9958478991-10">{</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="9958478991-10">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Repo</span><span class="o">.</span><span class="n">insert_stream</span><span class="p" data-group-id="9958478991-11">(</span><span class="s">"ecto_ch_demo"</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p">,</span><span class="w"> </span><span class="ss">types</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9958478991-12">[</span><span class="ss">a</span><span class="p">:</span><span class="w"> </span><span class="nc">Ch.Types</span><span class="o">.</span><span class="n">u64</span><span class="p" data-group-id="9958478991-13">(</span><span class="p" data-group-id="9958478991-13">)</span><span class="p">,</span><span class="w"> </span><span class="ss">b</span><span class="p">:</span><span class="w"> </span><span class="ss">:string</span><span class="p" data-group-id="9958478991-12">]</span><span class="p" data-group-id="9958478991-11">)</span></code></pre>
|
</span><span class="p" data-group-id="7152550906-10">{</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="7152550906-10">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Repo</span><span class="o">.</span><span class="n">insert_stream</span><span class="p" data-group-id="7152550906-11">(</span><span class="s">"ecto_ch_demo"</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p">,</span><span class="w"> </span><span class="ss">types</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7152550906-12">[</span><span class="ss">a</span><span class="p">:</span><span class="w"> </span><span class="nc">Ch.Types</span><span class="o">.</span><span class="n">u64</span><span class="p" data-group-id="7152550906-13">(</span><span class="p" data-group-id="7152550906-13">)</span><span class="p">,</span><span class="w"> </span><span class="ss">b</span><span class="p">:</span><span class="w"> </span><span class="ss">:string</span><span class="p" data-group-id="7152550906-12">]</span><span class="p" data-group-id="7152550906-11">)</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="load/2">
|
<section class="detail" id="load/2">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ Pages
|
|||||||
the set of natural languages that are preferred as a response to the request.
|
the set of natural languages that are preferred as a response to the request.
|
||||||
Language tags function are provided in <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code class="inline">Cldr.LanguageTag</code></a>.</p><p>The format of an <code class="inline">Accept-Language</code> header is as follows in <code class="inline">ABNF</code> format:</p><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="nc">Accept</span><span class="o">-</span><span class="nc">Language</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Accept-Language"</span><span class="w"> </span><span class="s">":"</span><span class="w">
|
Language tags function are provided in <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code class="inline">Cldr.LanguageTag</code></a>.</p><p>The format of an <code class="inline">Accept-Language</code> header is as follows in <code class="inline">ABNF</code> format:</p><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="nc">Accept</span><span class="o">-</span><span class="nc">Language</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Accept-Language"</span><span class="w"> </span><span class="s">":"</span><span class="w">
|
||||||
</span><span class="mi">1</span><span class="c1">#( language-range [ ";" "q" "=" qvalue ] )</span><span class="w">
|
</span><span class="mi">1</span><span class="c1">#( language-range [ ";" "q" "=" qvalue ] )</span><span class="w">
|
||||||
</span><span class="n">language</span><span class="o">-</span><span class="n">range</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p" data-group-id="6840039808-1">(</span><span class="w"> </span><span class="p" data-group-id="6840039808-2">(</span><span class="w"> </span><span class="mi">1</span><span class="o">*</span><span class="mi">8</span><span class="nc">ALPHA</span><span class="w"> </span><span class="o">*</span><span class="p" data-group-id="6840039808-3">(</span><span class="w"> </span><span class="s">"-"</span><span class="w"> </span><span class="mi">1</span><span class="o">*</span><span class="mi">8</span><span class="nc">ALPHA</span><span class="w"> </span><span class="p" data-group-id="6840039808-3">)</span><span class="w"> </span><span class="p" data-group-id="6840039808-2">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="s">"*"</span><span class="w"> </span><span class="p" data-group-id="6840039808-1">)</span></code></pre><p>Each language-range MAY be given an associated quality value which represents an
|
</span><span class="n">language</span><span class="o">-</span><span class="n">range</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p" data-group-id="7299668283-1">(</span><span class="w"> </span><span class="p" data-group-id="7299668283-2">(</span><span class="w"> </span><span class="mi">1</span><span class="o">*</span><span class="mi">8</span><span class="nc">ALPHA</span><span class="w"> </span><span class="o">*</span><span class="p" data-group-id="7299668283-3">(</span><span class="w"> </span><span class="s">"-"</span><span class="w"> </span><span class="mi">1</span><span class="o">*</span><span class="mi">8</span><span class="nc">ALPHA</span><span class="w"> </span><span class="p" data-group-id="7299668283-3">)</span><span class="w"> </span><span class="p" data-group-id="7299668283-2">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="s">"*"</span><span class="w"> </span><span class="p" data-group-id="7299668283-1">)</span></code></pre><p>Each language-range MAY be given an associated quality value which represents an
|
||||||
estimate of the user's preference for the languages specified by that range. The
|
estimate of the user's preference for the languages specified by that range. The
|
||||||
quality value defaults to "q=1". For example,</p><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="nc">Accept</span><span class="o">-</span><span class="ss">Language</span><span class="p">:</span><span class="w"> </span><span class="n">da</span><span class="p">,</span><span class="w"> </span><span class="n">en</span><span class="o">-</span><span class="n">gb</span><span class="p">;</span><span class="n">q</span><span class="o">=</span><span class="mf">0.8</span><span class="p">,</span><span class="w"> </span><span class="n">en</span><span class="p">;</span><span class="n">q</span><span class="o">=</span><span class="mf">0.7</span></code></pre><p>would mean: "I prefer Danish, but will accept British English and other types of English."</p>
|
quality value defaults to "q=1". For example,</p><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="nc">Accept</span><span class="o">-</span><span class="ss">Language</span><span class="p">:</span><span class="w"> </span><span class="n">da</span><span class="p">,</span><span class="w"> </span><span class="n">en</span><span class="o">-</span><span class="n">gb</span><span class="p">;</span><span class="n">q</span><span class="o">=</span><span class="mf">0.8</span><span class="p">,</span><span class="w"> </span><span class="n">en</span><span class="p">;</span><span class="n">q</span><span class="o">=</span><span class="mf">0.7</span></code></pre><p>would mean: "I prefer Danish, but will accept British English and other types of English."</p>
|
||||||
</section>
|
</section>
|
||||||
@ -261,54 +261,54 @@ a configured <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.html"><code class="
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">best_match</span><span class="p" data-group-id="4663103248-1">(</span><span class="s">"da;q=0.1,zh-TW;q=0.3"</span><span class="p">,</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p" data-group-id="4663103248-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">best_match</span><span class="p" data-group-id="7510401967-1">(</span><span class="s">"da;q=0.1,zh-TW;q=0.3"</span><span class="p">,</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p" data-group-id="7510401967-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4663103248-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="7510401967-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4663103248-3">%</span><span class="nc" data-group-id="4663103248-3">Cldr.LanguageTag</span><span class="p" data-group-id="4663103248-3">{</span><span class="w">
|
</span><span class="p" data-group-id="7510401967-3">%</span><span class="nc" data-group-id="7510401967-3">Cldr.LanguageTag</span><span class="p" data-group-id="7510401967-3">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4663103248-4">[</span><span class="p" data-group-id="4663103248-4">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7510401967-4">[</span><span class="p" data-group-id="7510401967-4">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4663103248-5">%{</span><span class="p" data-group-id="4663103248-5">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7510401967-5">%{</span><span class="p" data-group-id="7510401967-5">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4663103248-6">%{</span><span class="p" data-group-id="4663103248-6">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7510401967-6">%{</span><span class="p" data-group-id="7510401967-6">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4663103248-7">[</span><span class="p" data-group-id="4663103248-7">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7510401967-7">[</span><span class="p" data-group-id="7510401967-7">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Hant</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Hant</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:TW</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:TW</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4663103248-8">%{</span><span class="p" data-group-id="4663103248-8">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7510401967-8">%{</span><span class="p" data-group-id="7510401967-8">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4663103248-9">[</span><span class="p" data-group-id="4663103248-9">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7510401967-9">[</span><span class="p" data-group-id="7510401967-9">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4663103248-3">}</span><span class="p" data-group-id="4663103248-2">}</span><span class="w">
|
</span><span class="p" data-group-id="7510401967-3">}</span><span class="p" data-group-id="7510401967-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">best_match</span><span class="p" data-group-id="4663103248-10">(</span><span class="s">"da;q=0.1,zh-TW;q=0.3"</span><span class="p">,</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p" data-group-id="4663103248-10">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">best_match</span><span class="p" data-group-id="7510401967-10">(</span><span class="s">"da;q=0.1,zh-TW;q=0.3"</span><span class="p">,</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p" data-group-id="7510401967-10">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4663103248-11">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="7510401967-11">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4663103248-12">%</span><span class="nc" data-group-id="4663103248-12">Cldr.LanguageTag</span><span class="p" data-group-id="4663103248-12">{</span><span class="w">
|
</span><span class="p" data-group-id="7510401967-12">%</span><span class="nc" data-group-id="7510401967-12">Cldr.LanguageTag</span><span class="p" data-group-id="7510401967-12">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4663103248-13">[</span><span class="p" data-group-id="4663103248-13">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7510401967-13">[</span><span class="p" data-group-id="7510401967-13">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4663103248-14">%{</span><span class="p" data-group-id="4663103248-14">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7510401967-14">%{</span><span class="p" data-group-id="7510401967-14">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4663103248-15">%{</span><span class="p" data-group-id="4663103248-15">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7510401967-15">%{</span><span class="p" data-group-id="7510401967-15">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4663103248-16">[</span><span class="p" data-group-id="4663103248-16">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7510401967-16">[</span><span class="p" data-group-id="7510401967-16">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Hant</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Hant</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:TW</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:TW</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4663103248-17">%{</span><span class="p" data-group-id="4663103248-17">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7510401967-17">%{</span><span class="p" data-group-id="7510401967-17">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4663103248-18">[</span><span class="p" data-group-id="4663103248-18">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7510401967-18">[</span><span class="p" data-group-id="7510401967-18">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4663103248-12">}</span><span class="p" data-group-id="4663103248-11">}</span><span class="w">
|
</span><span class="p" data-group-id="7510401967-12">}</span><span class="p" data-group-id="7510401967-11">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">best_match</span><span class="p" data-group-id="4663103248-19">(</span><span class="s">"xx,yy;q=0.3"</span><span class="p" data-group-id="4663103248-19">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">best_match</span><span class="p" data-group-id="7510401967-19">(</span><span class="s">"xx,yy;q=0.3"</span><span class="p" data-group-id="7510401967-19">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4663103248-20">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="7510401967-20">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4663103248-21">{</span><span class="nc">Cldr.NoMatchingLocale</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="7510401967-21">{</span><span class="nc">Cldr.NoMatchingLocale</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"No configured locale could be matched to </span><span class="se">\"</span><span class="s">xx,yy;q=0.3</span><span class="se">\"</span><span class="s">"</span><span class="p" data-group-id="4663103248-21">}</span><span class="p" data-group-id="4663103248-20">}</span><span class="w">
|
</span><span class="s">"No configured locale could be matched to </span><span class="se">\"</span><span class="s">xx,yy;q=0.3</span><span class="se">\"</span><span class="s">"</span><span class="p" data-group-id="7510401967-21">}</span><span class="p" data-group-id="7510401967-20">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">best_match</span><span class="p" data-group-id="4663103248-22">(</span><span class="s">"invalid_tag"</span><span class="p" data-group-id="4663103248-22">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">best_match</span><span class="p" data-group-id="7510401967-22">(</span><span class="s">"invalid_tag"</span><span class="p" data-group-id="7510401967-22">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4663103248-23">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4663103248-24">{</span><span class="nc">Cldr.LanguageTag.ParseError</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="7510401967-23">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7510401967-24">{</span><span class="nc">Cldr.LanguageTag.ParseError</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"Expected a BCP47 language tag. Could not parse the remaining </span><span class="se">\"</span><span class="s">g</span><span class="se">\"</span><span class="s"> starting at position 11"</span><span class="p" data-group-id="4663103248-24">}</span><span class="p" data-group-id="4663103248-23">}</span></code></pre>
|
</span><span class="s">"Expected a BCP47 language tag. Could not parse the remaining </span><span class="se">\"</span><span class="s">g</span><span class="se">\"</span><span class="s"> starting at position 11"</span><span class="p" data-group-id="7510401967-24">}</span><span class="p" data-group-id="7510401967-23">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="parse/1">
|
<section class="detail" id="parse/1">
|
||||||
@ -369,95 +369,95 @@ with an error tuple for each invalid tag added at the end of the list.</p><h2 id
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="3071837958-1">(</span><span class="s">"da,zh-TW;q=0.3"</span><span class="p">,</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p" data-group-id="3071837958-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="5928966967-1">(</span><span class="s">"da,zh-TW;q=0.3"</span><span class="p">,</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p" data-group-id="5928966967-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-3">[</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-3">[</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-4">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-4">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-5">%</span><span class="nc" data-group-id="3071837958-5">Cldr.LanguageTag</span><span class="p" data-group-id="3071837958-5">{</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-5">%</span><span class="nc" data-group-id="5928966967-5">Cldr.LanguageTag</span><span class="p" data-group-id="5928966967-5">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-6">[</span><span class="p" data-group-id="3071837958-6">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-6">[</span><span class="p" data-group-id="5928966967-6">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-7">%{</span><span class="p" data-group-id="3071837958-7">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-7">%{</span><span class="p" data-group-id="5928966967-7">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-8">%{</span><span class="p" data-group-id="3071837958-8">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-8">%{</span><span class="p" data-group-id="5928966967-8">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-9">[</span><span class="p" data-group-id="3071837958-9">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-9">[</span><span class="p" data-group-id="5928966967-9">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:DK</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:DK</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-10">%{</span><span class="p" data-group-id="3071837958-10">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-10">%{</span><span class="p" data-group-id="5928966967-10">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-11">[</span><span class="p" data-group-id="3071837958-11">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-11">[</span><span class="p" data-group-id="5928966967-11">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-5">}</span><span class="p" data-group-id="3071837958-4">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-5">}</span><span class="p" data-group-id="5928966967-4">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-12">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-12">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-13">%</span><span class="nc" data-group-id="3071837958-13">Cldr.LanguageTag</span><span class="p" data-group-id="3071837958-13">{</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-13">%</span><span class="nc" data-group-id="5928966967-13">Cldr.LanguageTag</span><span class="p" data-group-id="5928966967-13">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-14">[</span><span class="p" data-group-id="3071837958-14">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-14">[</span><span class="p" data-group-id="5928966967-14">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-15">%{</span><span class="p" data-group-id="3071837958-15">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-15">%{</span><span class="p" data-group-id="5928966967-15">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-16">%{</span><span class="p" data-group-id="3071837958-16">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-16">%{</span><span class="p" data-group-id="5928966967-16">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-17">[</span><span class="p" data-group-id="3071837958-17">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-17">[</span><span class="p" data-group-id="5928966967-17">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Hant</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Hant</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:TW</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:TW</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-18">%{</span><span class="p" data-group-id="3071837958-18">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-18">%{</span><span class="p" data-group-id="5928966967-18">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-19">[</span><span class="p" data-group-id="3071837958-19">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-19">[</span><span class="p" data-group-id="5928966967-19">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-13">}</span><span class="p" data-group-id="3071837958-12">}</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-13">}</span><span class="p" data-group-id="5928966967-12">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-3">]</span><span class="p" data-group-id="3071837958-2">}</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-3">]</span><span class="p" data-group-id="5928966967-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="3071837958-20">(</span><span class="s">"invalid_tag"</span><span class="p" data-group-id="3071837958-20">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="5928966967-20">(</span><span class="s">"invalid_tag"</span><span class="p" data-group-id="5928966967-20">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-21">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-21">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-22">{</span><span class="nc">Cldr.LanguageTag.ParseError</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-22">{</span><span class="nc">Cldr.LanguageTag.ParseError</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"Expected a BCP47 language tag. Could not parse the remaining </span><span class="se">\"</span><span class="s">g</span><span class="se">\"</span><span class="s"> starting at position 11"</span><span class="p" data-group-id="3071837958-22">}</span><span class="p" data-group-id="3071837958-21">}</span><span class="w">
|
</span><span class="s">"Expected a BCP47 language tag. Could not parse the remaining </span><span class="se">\"</span><span class="s">g</span><span class="se">\"</span><span class="s"> starting at position 11"</span><span class="p" data-group-id="5928966967-22">}</span><span class="p" data-group-id="5928966967-21">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="3071837958-23">(</span><span class="s">"da,zh-TW;q=0.3,invalid_tag"</span><span class="p" data-group-id="3071837958-23">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="5928966967-23">(</span><span class="s">"da,zh-TW;q=0.3,invalid_tag"</span><span class="p" data-group-id="5928966967-23">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-24">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-24">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-25">[</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-25">[</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-26">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-26">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-27">%</span><span class="nc" data-group-id="3071837958-27">Cldr.LanguageTag</span><span class="p" data-group-id="3071837958-27">{</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-27">%</span><span class="nc" data-group-id="5928966967-27">Cldr.LanguageTag</span><span class="p" data-group-id="5928966967-27">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-28">[</span><span class="p" data-group-id="3071837958-28">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-28">[</span><span class="p" data-group-id="5928966967-28">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-29">%{</span><span class="p" data-group-id="3071837958-29">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-29">%{</span><span class="p" data-group-id="5928966967-29">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-30">%{</span><span class="p" data-group-id="3071837958-30">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-30">%{</span><span class="p" data-group-id="5928966967-30">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-31">[</span><span class="p" data-group-id="3071837958-31">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-31">[</span><span class="p" data-group-id="5928966967-31">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:DK</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:DK</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-32">%{</span><span class="p" data-group-id="3071837958-32">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-32">%{</span><span class="p" data-group-id="5928966967-32">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-33">[</span><span class="p" data-group-id="3071837958-33">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-33">[</span><span class="p" data-group-id="5928966967-33">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-27">}</span><span class="p" data-group-id="3071837958-26">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-27">}</span><span class="p" data-group-id="5928966967-26">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-34">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-34">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-35">%</span><span class="nc" data-group-id="3071837958-35">Cldr.LanguageTag</span><span class="p" data-group-id="3071837958-35">{</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-35">%</span><span class="nc" data-group-id="5928966967-35">Cldr.LanguageTag</span><span class="p" data-group-id="5928966967-35">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-36">[</span><span class="p" data-group-id="3071837958-36">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-36">[</span><span class="p" data-group-id="5928966967-36">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-37">%{</span><span class="p" data-group-id="3071837958-37">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-37">%{</span><span class="p" data-group-id="5928966967-37">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-38">%{</span><span class="p" data-group-id="3071837958-38">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-38">%{</span><span class="p" data-group-id="5928966967-38">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-39">[</span><span class="p" data-group-id="3071837958-39">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-39">[</span><span class="p" data-group-id="5928966967-39">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Hant</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Hant</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:TW</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:TW</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-40">%{</span><span class="p" data-group-id="3071837958-40">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-40">%{</span><span class="p" data-group-id="5928966967-40">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3071837958-41">[</span><span class="p" data-group-id="3071837958-41">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5928966967-41">[</span><span class="p" data-group-id="5928966967-41">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-35">}</span><span class="p" data-group-id="3071837958-34">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-35">}</span><span class="p" data-group-id="5928966967-34">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-42">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-42">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-43">{</span><span class="nc">Cldr.LanguageTag.ParseError</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5928966967-43">{</span><span class="nc">Cldr.LanguageTag.ParseError</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"Expected a BCP47 language tag. Could not parse the remaining </span><span class="se">\"</span><span class="s">g</span><span class="se">\"</span><span class="s"> starting at position 11"</span><span class="p" data-group-id="3071837958-43">}</span><span class="p" data-group-id="3071837958-42">}</span><span class="w">
|
</span><span class="s">"Expected a BCP47 language tag. Could not parse the remaining </span><span class="se">\"</span><span class="s">g</span><span class="se">\"</span><span class="s"> starting at position 11"</span><span class="p" data-group-id="5928966967-43">}</span><span class="p" data-group-id="5928966967-42">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3071837958-25">]</span><span class="p" data-group-id="3071837958-24">}</span></code></pre>
|
</span><span class="p" data-group-id="5928966967-25">]</span><span class="p" data-group-id="5928966967-24">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="parse!/1">
|
<section class="detail" id="parse!/1">
|
||||||
@ -502,92 +502,92 @@ with an error tuple for each invalid tag added at the end of the list.</p><h2 id
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">parse!</span><span class="p" data-group-id="4561276457-1">(</span><span class="s">"da,zh-TW;q=0.3"</span><span class="p" data-group-id="4561276457-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">parse!</span><span class="p" data-group-id="5977709130-1">(</span><span class="s">"da,zh-TW;q=0.3"</span><span class="p" data-group-id="5977709130-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-2">[</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-2">[</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-3">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-3">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-4">%</span><span class="nc" data-group-id="4561276457-4">Cldr.LanguageTag</span><span class="p" data-group-id="4561276457-4">{</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-4">%</span><span class="nc" data-group-id="5977709130-4">Cldr.LanguageTag</span><span class="p" data-group-id="5977709130-4">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-5">[</span><span class="p" data-group-id="4561276457-5">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-5">[</span><span class="p" data-group-id="5977709130-5">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-6">%{</span><span class="p" data-group-id="4561276457-6">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-6">%{</span><span class="p" data-group-id="5977709130-6">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-7">%{</span><span class="p" data-group-id="4561276457-7">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-7">%{</span><span class="p" data-group-id="5977709130-7">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-8">[</span><span class="p" data-group-id="4561276457-8">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-8">[</span><span class="p" data-group-id="5977709130-8">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:DK</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:DK</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-9">%{</span><span class="p" data-group-id="4561276457-9">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-9">%{</span><span class="p" data-group-id="5977709130-9">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-10">[</span><span class="p" data-group-id="4561276457-10">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-10">[</span><span class="p" data-group-id="5977709130-10">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-4">}</span><span class="p" data-group-id="4561276457-3">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-4">}</span><span class="p" data-group-id="5977709130-3">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-11">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-11">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-12">%</span><span class="nc" data-group-id="4561276457-12">Cldr.LanguageTag</span><span class="p" data-group-id="4561276457-12">{</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-12">%</span><span class="nc" data-group-id="5977709130-12">Cldr.LanguageTag</span><span class="p" data-group-id="5977709130-12">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-13">[</span><span class="p" data-group-id="4561276457-13">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-13">[</span><span class="p" data-group-id="5977709130-13">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-14">%{</span><span class="p" data-group-id="4561276457-14">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-14">%{</span><span class="p" data-group-id="5977709130-14">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-15">%{</span><span class="p" data-group-id="4561276457-15">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-15">%{</span><span class="p" data-group-id="5977709130-15">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-16">[</span><span class="p" data-group-id="4561276457-16">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-16">[</span><span class="p" data-group-id="5977709130-16">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Hant</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Hant</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:TW</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:TW</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-17">%{</span><span class="p" data-group-id="4561276457-17">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-17">%{</span><span class="p" data-group-id="5977709130-17">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-18">[</span><span class="p" data-group-id="4561276457-18">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-18">[</span><span class="p" data-group-id="5977709130-18">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-12">}</span><span class="p" data-group-id="4561276457-11">}</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-12">}</span><span class="p" data-group-id="5977709130-11">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-2">]</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-2">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">parse!</span><span class="w"> </span><span class="s">"invalid_tag"</span><span class="w">
|
</span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">parse!</span><span class="w"> </span><span class="s">"invalid_tag"</span><span class="w">
|
||||||
</span><span class="gt">** (Cldr.AcceptLanguageError) "Expected a BCP47 language tag. Could not parse the remaining "g" starting at position 11
|
</span><span class="gt">** (Cldr.AcceptLanguageError) "Expected a BCP47 language tag. Could not parse the remaining "g" starting at position 11
|
||||||
(ex_cldr) lib/cldr/accept_language.ex:304: Cldr.AcceptLanguage.parse!/1</span><span class="w">
|
(ex_cldr) lib/cldr/accept_language.ex:304: Cldr.AcceptLanguage.parse!/1</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">parse!</span><span class="p" data-group-id="4561276457-19">(</span><span class="s">"da,zh-TW;q=0.3,invalid_tag"</span><span class="p" data-group-id="4561276457-19">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.AcceptLanguage</span><span class="o">.</span><span class="n">parse!</span><span class="p" data-group-id="5977709130-19">(</span><span class="s">"da,zh-TW;q=0.3,invalid_tag"</span><span class="p" data-group-id="5977709130-19">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-20">[</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-20">[</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-21">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-21">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-22">%</span><span class="nc" data-group-id="4561276457-22">Cldr.LanguageTag</span><span class="p" data-group-id="4561276457-22">{</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-22">%</span><span class="nc" data-group-id="5977709130-22">Cldr.LanguageTag</span><span class="p" data-group-id="5977709130-22">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-23">[</span><span class="p" data-group-id="4561276457-23">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-23">[</span><span class="p" data-group-id="5977709130-23">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-24">%{</span><span class="p" data-group-id="4561276457-24">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-24">%{</span><span class="p" data-group-id="5977709130-24">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-25">%{</span><span class="p" data-group-id="4561276457-25">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-25">%{</span><span class="p" data-group-id="5977709130-25">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-26">[</span><span class="p" data-group-id="4561276457-26">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-26">[</span><span class="p" data-group-id="5977709130-26">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:da</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"da"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:DK</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:DK</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-27">%{</span><span class="p" data-group-id="4561276457-27">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-27">%{</span><span class="p" data-group-id="5977709130-27">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-28">[</span><span class="p" data-group-id="4561276457-28">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-28">[</span><span class="p" data-group-id="5977709130-28">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-22">}</span><span class="p" data-group-id="4561276457-21">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-22">}</span><span class="p" data-group-id="5977709130-21">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-29">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-29">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-30">%</span><span class="nc" data-group-id="4561276457-30">Cldr.LanguageTag</span><span class="p" data-group-id="4561276457-30">{</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-30">%</span><span class="nc" data-group-id="5977709130-30">Cldr.LanguageTag</span><span class="p" data-group-id="5977709130-30">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">TestBackend.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-31">[</span><span class="p" data-group-id="4561276457-31">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-31">[</span><span class="p" data-group-id="5977709130-31">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-32">%{</span><span class="p" data-group-id="4561276457-32">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-32">%{</span><span class="p" data-group-id="5977709130-32">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-33">%{</span><span class="p" data-group-id="4561276457-33">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-33">%{</span><span class="p" data-group-id="5977709130-33">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-34">[</span><span class="p" data-group-id="4561276457-34">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-34">[</span><span class="p" data-group-id="5977709130-34">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"zh-Hant"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"zh-TW"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Hant</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Hant</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:TW</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:TW</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-35">%{</span><span class="p" data-group-id="4561276457-35">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-35">%{</span><span class="p" data-group-id="5977709130-35">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4561276457-36">[</span><span class="p" data-group-id="4561276457-36">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5977709130-36">[</span><span class="p" data-group-id="5977709130-36">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-30">}</span><span class="p" data-group-id="4561276457-29">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-30">}</span><span class="p" data-group-id="5977709130-29">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-37">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-37">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-38">{</span><span class="nc">Cldr.LanguageTag.ParseError</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5977709130-38">{</span><span class="nc">Cldr.LanguageTag.ParseError</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"Expected a BCP47 language tag. Could not parse the remaining </span><span class="se">\"</span><span class="s">g</span><span class="se">\"</span><span class="s"> starting at position 11"</span><span class="p" data-group-id="4561276457-38">}</span><span class="p" data-group-id="4561276457-37">}</span><span class="w">
|
</span><span class="s">"Expected a BCP47 language tag. Could not parse the remaining </span><span class="se">\"</span><span class="s">g</span><span class="se">\"</span><span class="s"> starting at position 11"</span><span class="p" data-group-id="5977709130-38">}</span><span class="p" data-group-id="5977709130-37">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4561276457-20">]</span></code></pre>
|
</span><span class="p" data-group-id="5977709130-20">]</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -419,11 +419,11 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
|||||||
</h2>
|
</h2>
|
||||||
<p> MyApp.Cldr.Currency.currencies_for_locale("en")
|
<p> MyApp.Cldr.Currency.currencies_for_locale("en")
|
||||||
=> {:ok,
|
=> {:ok,
|
||||||
%{</p><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="ss">FJD</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3963176590-1">%</span><span class="nc" data-group-id="3963176590-1">Cldr.Currency</span><span class="p" data-group-id="3963176590-1">{</span><span class="w">
|
%{</p><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="ss">FJD</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9389677753-1">%</span><span class="nc" data-group-id="9389677753-1">Cldr.Currency</span><span class="p" data-group-id="9389677753-1">{</span><span class="w">
|
||||||
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"FJD"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"FJD"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3963176590-2">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Fijian dollar"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Fijian dollars"</span><span class="p" data-group-id="3963176590-2">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9389677753-2">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Fijian dollar"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Fijian dollars"</span><span class="p" data-group-id="9389677753-2">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
@ -433,12 +433,12 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
|||||||
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"FJD"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"FJD"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="p">,</span><span class="w">
|
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="w">
|
</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3963176590-1">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9389677753-1">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">SUR</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3963176590-3">%</span><span class="nc" data-group-id="3963176590-3">Cldr.Currency</span><span class="p" data-group-id="3963176590-3">{</span><span class="w">
|
</span><span class="ss">SUR</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9389677753-3">%</span><span class="nc" data-group-id="9389677753-3">Cldr.Currency</span><span class="p" data-group-id="9389677753-3">{</span><span class="w">
|
||||||
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"SUR"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"SUR"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3963176590-4">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Soviet rouble"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Soviet roubles"</span><span class="p" data-group-id="3963176590-4">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9389677753-4">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Soviet rouble"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Soviet roubles"</span><span class="p" data-group-id="9389677753-4">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
@ -448,7 +448,7 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
|||||||
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"SUR"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"SUR"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="p">,</span><span class="w">
|
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="w">
|
</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3963176590-3">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9389677753-3">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="n">...</span><span class="w">
|
</span><span class="n">...</span><span class="w">
|
||||||
</span><span class="err">}</span><span class="err">}</span></code></pre>
|
</span><span class="err">}</span><span class="err">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
@ -499,11 +499,11 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
|||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<p> MyApp.Cldr.Currency.currencies_for_locale!("en")
|
<p> MyApp.Cldr.Currency.currencies_for_locale!("en")
|
||||||
=> %{</p><pre><code class="makeup elixir" translate="no"><span class="ss">FJD</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1671350718-1">%</span><span class="nc" data-group-id="1671350718-1">Cldr.Currency</span><span class="p" data-group-id="1671350718-1">{</span><span class="w">
|
=> %{</p><pre><code class="makeup elixir" translate="no"><span class="ss">FJD</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4923609520-1">%</span><span class="nc" data-group-id="4923609520-1">Cldr.Currency</span><span class="p" data-group-id="4923609520-1">{</span><span class="w">
|
||||||
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"FJD"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"FJD"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1671350718-2">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Fijian dollar"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Fijian dollars"</span><span class="p" data-group-id="1671350718-2">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4923609520-2">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Fijian dollar"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Fijian dollars"</span><span class="p" data-group-id="4923609520-2">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
@ -513,12 +513,12 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
|||||||
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"FJD"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"FJD"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="p">,</span><span class="w">
|
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="w">
|
</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1671350718-1">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="4923609520-1">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">SUR</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1671350718-3">%</span><span class="nc" data-group-id="1671350718-3">Cldr.Currency</span><span class="p" data-group-id="1671350718-3">{</span><span class="w">
|
</span><span class="ss">SUR</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4923609520-3">%</span><span class="nc" data-group-id="4923609520-3">Cldr.Currency</span><span class="p" data-group-id="4923609520-3">{</span><span class="w">
|
||||||
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"SUR"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"SUR"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1671350718-4">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Soviet rouble"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Soviet roubles"</span><span class="p" data-group-id="1671350718-4">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4923609520-4">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Soviet rouble"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Soviet roubles"</span><span class="p" data-group-id="4923609520-4">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
@ -528,7 +528,7 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
|||||||
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"SUR"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"SUR"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="p">,</span><span class="w">
|
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="w">
|
</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1671350718-3">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="4923609520-3">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="n">...</span></code></pre><p> }</p>
|
</span><span class="n">...</span></code></pre><p> }</p>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -586,13 +586,13 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code cla
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_for_code</span><span class="p" data-group-id="3881294068-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="3881294068-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_for_code</span><span class="p" data-group-id="0223710569-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="0223710569-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3881294068-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="0223710569-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3881294068-3">%</span><span class="nc" data-group-id="3881294068-3">Cldr.Currency</span><span class="p" data-group-id="3881294068-3">{</span><span class="w">
|
</span><span class="p" data-group-id="0223710569-3">%</span><span class="nc" data-group-id="0223710569-3">Cldr.Currency</span><span class="p" data-group-id="0223710569-3">{</span><span class="w">
|
||||||
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"AUD"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"AUD"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3881294068-4">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Australian dollar"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Australian dollars"</span><span class="p" data-group-id="3881294068-4">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0223710569-4">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Australian dollar"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Australian dollars"</span><span class="p" data-group-id="0223710569-4">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"Australian Dollar"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"Australian Dollar"</span><span class="p">,</span><span class="w">
|
||||||
@ -600,15 +600,15 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code cla
|
|||||||
</span><span class="ss">rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"A$"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"A$"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="w">
|
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3881294068-3">}</span><span class="p" data-group-id="3881294068-2">}</span><span class="w">
|
</span><span class="p" data-group-id="0223710569-3">}</span><span class="p" data-group-id="0223710569-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_for_code</span><span class="p" data-group-id="3881294068-5">(</span><span class="s">"THB"</span><span class="p" data-group-id="3881294068-5">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_for_code</span><span class="p" data-group-id="0223710569-5">(</span><span class="s">"THB"</span><span class="p" data-group-id="0223710569-5">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3881294068-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="0223710569-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3881294068-7">%</span><span class="nc" data-group-id="3881294068-7">Cldr.Currency</span><span class="p" data-group-id="3881294068-7">{</span><span class="w">
|
</span><span class="p" data-group-id="0223710569-7">%</span><span class="nc" data-group-id="0223710569-7">Cldr.Currency</span><span class="p" data-group-id="0223710569-7">{</span><span class="w">
|
||||||
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3881294068-8">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Thai baht"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Thai baht"</span><span class="p" data-group-id="3881294068-8">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0223710569-8">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Thai baht"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Thai baht"</span><span class="p" data-group-id="0223710569-8">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"Thai Baht"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"Thai Baht"</span><span class="p">,</span><span class="w">
|
||||||
@ -616,7 +616,7 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code cla
|
|||||||
</span><span class="ss">rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="w">
|
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3881294068-7">}</span><span class="p" data-group-id="3881294068-6">}</span></code></pre>
|
</span><span class="p" data-group-id="0223710569-7">}</span><span class="p" data-group-id="0223710569-6">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="currency_for_code!/2">
|
<section class="detail" id="currency_for_code!/2">
|
||||||
@ -675,12 +675,12 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code cla
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_for_code!</span><span class="p" data-group-id="4297148712-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="4297148712-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_for_code!</span><span class="p" data-group-id="6566529999-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="6566529999-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4297148712-2">%</span><span class="nc" data-group-id="4297148712-2">Cldr.Currency</span><span class="p" data-group-id="4297148712-2">{</span><span class="w">
|
</span><span class="p" data-group-id="6566529999-2">%</span><span class="nc" data-group-id="6566529999-2">Cldr.Currency</span><span class="p" data-group-id="6566529999-2">{</span><span class="w">
|
||||||
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"AUD"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"AUD"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4297148712-3">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Australian dollar"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Australian dollars"</span><span class="p" data-group-id="4297148712-3">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6566529999-3">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Australian dollar"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Australian dollars"</span><span class="p" data-group-id="6566529999-3">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"Australian Dollar"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"Australian Dollar"</span><span class="p">,</span><span class="w">
|
||||||
@ -688,14 +688,14 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code cla
|
|||||||
</span><span class="ss">rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"A$"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"A$"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="w">
|
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4297148712-2">}</span><span class="w">
|
</span><span class="p" data-group-id="6566529999-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_for_code!</span><span class="p" data-group-id="4297148712-4">(</span><span class="s">"THB"</span><span class="p" data-group-id="4297148712-4">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_for_code!</span><span class="p" data-group-id="6566529999-4">(</span><span class="s">"THB"</span><span class="p" data-group-id="6566529999-4">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4297148712-5">%</span><span class="nc" data-group-id="4297148712-5">Cldr.Currency</span><span class="p" data-group-id="4297148712-5">{</span><span class="w">
|
</span><span class="p" data-group-id="6566529999-5">%</span><span class="nc" data-group-id="6566529999-5">Cldr.Currency</span><span class="p" data-group-id="6566529999-5">{</span><span class="w">
|
||||||
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4297148712-6">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Thai baht"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Thai baht"</span><span class="p" data-group-id="4297148712-6">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6566529999-6">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"Thai baht"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Thai baht"</span><span class="p" data-group-id="6566529999-6">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"Thai Baht"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"Thai Baht"</span><span class="p">,</span><span class="w">
|
||||||
@ -703,7 +703,7 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code cla
|
|||||||
</span><span class="ss">rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rounding</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="w">
|
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4297148712-5">}</span></code></pre>
|
</span><span class="p" data-group-id="6566529999-5">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="currency_from_locale/1">
|
<section class="detail" id="currency_from_locale/1">
|
||||||
@ -744,15 +744,15 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code cla
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="p" data-group-id="8956684290-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p" data-group-id="8956684290-1">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="p" data-group-id="8956684290-2">(</span><span class="s">"en"</span><span class="p" data-group-id="8956684290-2">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="p" data-group-id="0788509288-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p" data-group-id="0788509288-1">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="p" data-group-id="0788509288-2">(</span><span class="s">"en"</span><span class="p" data-group-id="0788509288-2">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_from_locale</span><span class="w"> </span><span class="n">locale</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_from_locale</span><span class="w"> </span><span class="n">locale</span><span class="w">
|
||||||
</span><span class="ss">:USD</span><span class="w">
|
</span><span class="ss">:USD</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="p" data-group-id="8956684290-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p" data-group-id="8956684290-3">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="p" data-group-id="8956684290-4">(</span><span class="s">"en-AU"</span><span class="p" data-group-id="8956684290-4">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="p" data-group-id="0788509288-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p" data-group-id="0788509288-3">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="p" data-group-id="0788509288-4">(</span><span class="s">"en-AU"</span><span class="p" data-group-id="0788509288-4">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_from_locale</span><span class="w"> </span><span class="n">locale</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_from_locale</span><span class="w"> </span><span class="n">locale</span><span class="w">
|
||||||
</span><span class="ss">:AUD</span><span class="w">
|
</span><span class="ss">:AUD</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_from_locale</span><span class="p" data-group-id="8956684290-5">(</span><span class="s">"en-GB"</span><span class="p" data-group-id="8956684290-5">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">currency_from_locale</span><span class="p" data-group-id="0788509288-5">(</span><span class="s">"en-GB"</span><span class="p" data-group-id="0788509288-5">)</span><span class="w">
|
||||||
</span><span class="ss">:GBP</span></code></pre>
|
</span><span class="ss">:GBP</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -796,14 +796,14 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code cla
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">currency_history_for_locale</span><span class="p" data-group-id="3276397072-1">(</span><span class="s">"en"</span><span class="p" data-group-id="3276397072-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">currency_history_for_locale</span><span class="p" data-group-id="1776136835-1">(</span><span class="s">"en"</span><span class="p" data-group-id="1776136835-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3276397072-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="1776136835-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3276397072-3">%{</span><span class="w">
|
</span><span class="p" data-group-id="1776136835-3">%{</span><span class="w">
|
||||||
</span><span class="ss">USD</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3276397072-4">%{</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="ld">~D[1792-01-01]</span><span class="p">,</span><span class="w"> </span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="3276397072-4">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">USD</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1776136835-4">%{</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="ld">~D[1792-01-01]</span><span class="p">,</span><span class="w"> </span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="1776136835-4">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">USN</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3276397072-5">%{</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">false</span><span class="p" data-group-id="3276397072-5">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">USN</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1776136835-5">%{</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">false</span><span class="p" data-group-id="1776136835-5">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">USS</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3276397072-6">%{</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w"> </span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">false</span><span class="p">,</span><span class="w"> </span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="ld">~D[2014-03-01]</span><span class="p" data-group-id="3276397072-6">}</span><span class="w">
|
</span><span class="ss">USS</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1776136835-6">%{</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w"> </span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">false</span><span class="p">,</span><span class="w"> </span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="ld">~D[2014-03-01]</span><span class="p" data-group-id="1776136835-6">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3276397072-3">}</span><span class="w">
|
</span><span class="p" data-group-id="1776136835-3">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3276397072-2">}</span></code></pre>
|
</span><span class="p" data-group-id="1776136835-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="currency_strings/3">
|
<section class="detail" id="currency_strings/3">
|
||||||
@ -862,9 +862,9 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">currency_strings</span><span class="p" data-group-id="1018593092-1">(</span><span class="s">"en"</span><span class="p" data-group-id="1018593092-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">currency_strings</span><span class="p" data-group-id="8670709104-1">(</span><span class="s">"en"</span><span class="p" data-group-id="8670709104-1">)</span><span class="w">
|
||||||
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="1018593092-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8670709104-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1018593092-3">%{</span><span class="w">
|
</span><span class="p" data-group-id="8670709104-3">%{</span><span class="w">
|
||||||
</span><span class="s">"mexican silver pesos"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:MXP</span><span class="p">,</span><span class="w">
|
</span><span class="s">"mexican silver pesos"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:MXP</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"sudanese dinar"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:SDD</span><span class="p">,</span><span class="w">
|
</span><span class="s">"sudanese dinar"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:SDD</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"bad"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:BAD</span><span class="p">,</span><span class="w">
|
</span><span class="s">"bad"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:BAD</span><span class="p">,</span><span class="w">
|
||||||
@ -874,7 +874,7 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
|||||||
</span><span class="s">"guyanaese dollars"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:GYD</span><span class="p">,</span><span class="w">
|
</span><span class="s">"guyanaese dollars"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:GYD</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"equatorial guinean ekwele"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:GQE</span><span class="p">,</span><span class="w">
|
</span><span class="s">"equatorial guinean ekwele"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:GQE</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="n">...</span><span class="w">
|
</span><span class="n">...</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1018593092-3">}</span><span class="p" data-group-id="1018593092-2">}</span></code></pre>
|
</span><span class="p" data-group-id="8670709104-3">}</span><span class="p" data-group-id="8670709104-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="currency_strings!/3">
|
<section class="detail" id="currency_strings!/3">
|
||||||
@ -933,8 +933,8 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">currency_strings!</span><span class="p" data-group-id="3438142269-1">(</span><span class="s">"en"</span><span class="p" data-group-id="3438142269-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">currency_strings!</span><span class="p" data-group-id="5840859959-1">(</span><span class="s">"en"</span><span class="p" data-group-id="5840859959-1">)</span><span class="w">
|
||||||
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="3438142269-2">%{</span><span class="w">
|
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="5840859959-2">%{</span><span class="w">
|
||||||
</span><span class="s">"mexican silver pesos"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:MXP</span><span class="p">,</span><span class="w">
|
</span><span class="s">"mexican silver pesos"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:MXP</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"sudanese dinar"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:SDD</span><span class="p">,</span><span class="w">
|
</span><span class="s">"sudanese dinar"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:SDD</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"bad"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:BAD</span><span class="p">,</span><span class="w">
|
</span><span class="s">"bad"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:BAD</span><span class="p">,</span><span class="w">
|
||||||
@ -944,7 +944,7 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
|||||||
</span><span class="s">"guyanaese dollars"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:GYD</span><span class="p">,</span><span class="w">
|
</span><span class="s">"guyanaese dollars"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:GYD</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"equatorial guinean ekwele"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:GQE</span><span class="p">,</span><span class="w">
|
</span><span class="s">"equatorial guinean ekwele"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="ss">:GQE</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="n">...</span><span class="w">
|
</span><span class="n">...</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3438142269-2">}</span></code></pre>
|
</span><span class="p" data-group-id="5840859959-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="current_currency_from_locale/1">
|
<section class="detail" id="current_currency_from_locale/1">
|
||||||
@ -982,10 +982,10 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code cla
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">current_currency_from_locale</span><span class="p" data-group-id="0262617590-1">(</span><span class="s">"en"</span><span class="p" data-group-id="0262617590-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">current_currency_from_locale</span><span class="p" data-group-id="6023861496-1">(</span><span class="s">"en"</span><span class="p" data-group-id="6023861496-1">)</span><span class="w">
|
||||||
</span><span class="ss">:USD</span><span class="w">
|
</span><span class="ss">:USD</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">current_currency_from_locale</span><span class="p" data-group-id="0262617590-2">(</span><span class="s">"en-AU"</span><span class="p" data-group-id="0262617590-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">current_currency_from_locale</span><span class="p" data-group-id="6023861496-2">(</span><span class="s">"en-AU"</span><span class="p" data-group-id="6023861496-2">)</span><span class="w">
|
||||||
</span><span class="ss">:AUD</span></code></pre>
|
</span><span class="ss">:AUD</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -1033,7 +1033,7 @@ mapping is returned for that territory.</p><h2 id="current_territory_currencies/
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">current_territory_currencies</span><span class="p" data-group-id="9272465857-1">(</span><span class="p" data-group-id="9272465857-1">)</span></code></pre>
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">current_territory_currencies</span><span class="p" data-group-id="1317694041-1">(</span><span class="p" data-group-id="1317694041-1">)</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="known_currencies/0">
|
<section class="detail" id="known_currencies/0">
|
||||||
@ -1125,11 +1125,11 @@ currency code</li></ul><h2 id="known_currency_code/1-returns" class="section-hea
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">known_currency_code</span><span class="p" data-group-id="4546671443-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="4546671443-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">known_currency_code</span><span class="p" data-group-id="3524579127-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="3524579127-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4546671443-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:AUD</span><span class="p" data-group-id="4546671443-2">}</span><span class="w">
|
</span><span class="p" data-group-id="3524579127-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:AUD</span><span class="p" data-group-id="3524579127-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">known_currency_code</span><span class="p" data-group-id="4546671443-3">(</span><span class="s">"GGG"</span><span class="p" data-group-id="4546671443-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">known_currency_code</span><span class="p" data-group-id="3524579127-3">(</span><span class="s">"GGG"</span><span class="p" data-group-id="3524579127-3">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4546671443-4">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4546671443-5">{</span><span class="nc">Cldr.UnknownCurrencyError</span><span class="p">,</span><span class="w"> </span><span class="s">"The currency </span><span class="se">\"</span><span class="s">GGG</span><span class="se">\"</span><span class="s"> is invalid"</span><span class="p" data-group-id="4546671443-5">}</span><span class="p" data-group-id="4546671443-4">}</span></code></pre>
|
</span><span class="p" data-group-id="3524579127-4">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3524579127-5">{</span><span class="nc">Cldr.UnknownCurrencyError</span><span class="p">,</span><span class="w"> </span><span class="s">"The currency </span><span class="se">\"</span><span class="s">GGG</span><span class="se">\"</span><span class="s"> is invalid"</span><span class="p" data-group-id="3524579127-5">}</span><span class="p" data-group-id="3524579127-4">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="known_currency_code?/1">
|
<section class="detail" id="known_currency_code?/1">
|
||||||
@ -1176,13 +1176,13 @@ currency code</li></ul><h2 id="known_currency_code?/1-returns" class="section-he
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">known_currency_code?</span><span class="p" data-group-id="0622594251-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="0622594251-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">known_currency_code?</span><span class="p" data-group-id="6568759346-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="6568759346-1">)</span><span class="w">
|
||||||
</span><span class="no">true</span><span class="w">
|
</span><span class="no">true</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">known_currency_code?</span><span class="p" data-group-id="0622594251-2">(</span><span class="s">"GGG"</span><span class="p" data-group-id="0622594251-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">known_currency_code?</span><span class="p" data-group-id="6568759346-2">(</span><span class="s">"GGG"</span><span class="p" data-group-id="6568759346-2">)</span><span class="w">
|
||||||
</span><span class="no">false</span><span class="w">
|
</span><span class="no">false</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">known_currency_code?</span><span class="p" data-group-id="0622594251-3">(</span><span class="ss">:XCV</span><span class="p" data-group-id="0622594251-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">known_currency_code?</span><span class="p" data-group-id="6568759346-3">(</span><span class="ss">:XCV</span><span class="p" data-group-id="6568759346-3">)</span><span class="w">
|
||||||
</span><span class="no">false</span></code></pre>
|
</span><span class="no">false</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -1217,7 +1217,7 @@ currency code</li></ul><h2 id="known_currency_code?/1-returns" class="section-he
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">known_currency_codes</span><span class="p" data-group-id="6098507869-1">(</span><span class="p" data-group-id="6098507869-1">)</span></code></pre>
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">known_currency_codes</span><span class="p" data-group-id="4642114881-1">(</span><span class="p" data-group-id="4642114881-1">)</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="new/2">
|
<section class="detail" id="new/2">
|
||||||
@ -1276,14 +1276,14 @@ such as <code class="inline">0.05</code>. Optional.</li></ul><h2 id="new/2-retur
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="0836236434-1">(</span><span class="ss">:XAE</span><span class="p">,</span><span class="w"> </span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"Custom Name"</span><span class="p">,</span><span class="w"> </span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p" data-group-id="0836236434-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="9099998862-1">(</span><span class="ss">:XAE</span><span class="p">,</span><span class="w"> </span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"Custom Name"</span><span class="p">,</span><span class="w"> </span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p" data-group-id="9099998862-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0836236434-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9099998862-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0836236434-3">%</span><span class="nc" data-group-id="0836236434-3">Cldr.Currency</span><span class="p" data-group-id="0836236434-3">{</span><span class="w">
|
</span><span class="p" data-group-id="9099998862-3">%</span><span class="nc" data-group-id="9099998862-3">Cldr.Currency</span><span class="p" data-group-id="9099998862-3">{</span><span class="w">
|
||||||
</span><span class="ss">alt_code</span><span class="p">:</span><span class="w"> </span><span class="ss">:XAE</span><span class="p">,</span><span class="w">
|
</span><span class="ss">alt_code</span><span class="p">:</span><span class="w"> </span><span class="ss">:XAE</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cash_rounding</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="ss">:XAE</span><span class="p">,</span><span class="w">
|
</span><span class="ss">code</span><span class="p">:</span><span class="w"> </span><span class="ss">:XAE</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0836236434-4">%{</span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Custom Name"</span><span class="p" data-group-id="0836236434-4">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9099998862-4">%{</span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"Custom Name"</span><span class="p" data-group-id="9099998862-4">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">from</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
</span><span class="ss">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w">
|
||||||
@ -1293,11 +1293,11 @@ such as <code class="inline">0.05</code>. Optional.</li></ul><h2 id="new/2-retur
|
|||||||
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"XAE"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">symbol</span><span class="p">:</span><span class="w"> </span><span class="s">"XAE"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">false</span><span class="p">,</span><span class="w">
|
</span><span class="ss">tender</span><span class="p">:</span><span class="w"> </span><span class="no">false</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="w">
|
</span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="no">nil</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0836236434-3">}</span><span class="p" data-group-id="0836236434-2">}</span><span class="w">
|
</span><span class="p" data-group-id="9099998862-3">}</span><span class="p" data-group-id="9099998862-2">}</span><span class="w">
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="0836236434-5">(</span><span class="ss">:XAH</span><span class="p">,</span><span class="w"> </span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"Custom Name"</span><span class="p" data-group-id="0836236434-5">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="9099998862-5">(</span><span class="ss">:XAH</span><span class="p">,</span><span class="w"> </span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"Custom Name"</span><span class="p" data-group-id="9099998862-5">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0836236434-6">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="s">"Required options are missing. Required options are [:name, :digits]"</span><span class="p" data-group-id="0836236434-6">}</span><span class="w">
|
</span><span class="p" data-group-id="9099998862-6">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="s">"Required options are missing. Required options are [:name, :digits]"</span><span class="p" data-group-id="9099998862-6">}</span><span class="w">
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="0836236434-7">(</span><span class="ss">:XAE</span><span class="p">,</span><span class="w"> </span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"XAE"</span><span class="p">,</span><span class="w"> </span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p" data-group-id="0836236434-7">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="9099998862-7">(</span><span class="ss">:XAE</span><span class="p">,</span><span class="w"> </span><span class="ss">name</span><span class="p">:</span><span class="w"> </span><span class="s">"XAE"</span><span class="p">,</span><span class="w"> </span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p" data-group-id="9099998862-7">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0836236434-8">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0836236434-9">{</span><span class="nc">Cldr.CurrencyAlreadyDefined</span><span class="p">,</span><span class="w"> </span><span class="s">"Currency :XAE is already defined."</span><span class="p" data-group-id="0836236434-9">}</span><span class="p" data-group-id="0836236434-8">}</span></code></pre>
|
</span><span class="p" data-group-id="9099998862-8">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9099998862-9">{</span><span class="nc">Cldr.CurrencyAlreadyDefined</span><span class="p">,</span><span class="w"> </span><span class="s">"Currency :XAE is already defined."</span><span class="p" data-group-id="9099998862-9">}</span><span class="p" data-group-id="9099998862-8">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="pluralize/3">
|
<section class="detail" id="pluralize/3">
|
||||||
@ -1355,20 +1355,20 @@ default is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plaus
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">pluralize</span><span class="p" data-group-id="6485044969-1">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p" data-group-id="6485044969-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">pluralize</span><span class="p" data-group-id="6061773151-1">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p" data-group-id="6061773151-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6485044969-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"US dollar"</span><span class="p" data-group-id="6485044969-2">}</span><span class="w">
|
</span><span class="p" data-group-id="6061773151-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"US dollar"</span><span class="p" data-group-id="6061773151-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">pluralize</span><span class="p" data-group-id="6485044969-3">(</span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p" data-group-id="6485044969-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">pluralize</span><span class="p" data-group-id="6061773151-3">(</span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p" data-group-id="6061773151-3">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6485044969-4">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"US dollars"</span><span class="p" data-group-id="6485044969-4">}</span><span class="w">
|
</span><span class="p" data-group-id="6061773151-4">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"US dollars"</span><span class="p" data-group-id="6061773151-4">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">pluralize</span><span class="p" data-group-id="6485044969-5">(</span><span class="mi">12</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p" data-group-id="6485044969-5">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">pluralize</span><span class="p" data-group-id="6061773151-5">(</span><span class="mi">12</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"zh"</span><span class="p" data-group-id="6061773151-5">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6485044969-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"美元"</span><span class="p" data-group-id="6485044969-6">}</span><span class="w">
|
</span><span class="p" data-group-id="6061773151-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"美元"</span><span class="p" data-group-id="6061773151-6">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">pluralize</span><span class="p" data-group-id="6485044969-7">(</span><span class="mi">12</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="p" data-group-id="6485044969-7">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">pluralize</span><span class="p" data-group-id="6061773151-7">(</span><span class="mi">12</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="p" data-group-id="6061773151-7">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6485044969-8">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"dollars des États-Unis"</span><span class="p" data-group-id="6485044969-8">}</span><span class="w">
|
</span><span class="p" data-group-id="6061773151-8">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"dollars des États-Unis"</span><span class="p" data-group-id="6061773151-8">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">pluralize</span><span class="p" data-group-id="6485044969-9">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="p" data-group-id="6485044969-9">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Currency</span><span class="o">.</span><span class="n">pluralize</span><span class="p" data-group-id="6061773151-9">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="p" data-group-id="6061773151-9">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6485044969-10">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"dollar des États-Unis"</span><span class="p" data-group-id="6485044969-10">}</span></code></pre>
|
</span><span class="p" data-group-id="6061773151-10">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"dollar des États-Unis"</span><span class="p" data-group-id="6061773151-10">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="strings_for_currency/2">
|
<section class="detail" id="strings_for_currency/2">
|
||||||
@ -1410,8 +1410,8 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code cla
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">strings_for_currency</span><span class="w"> </span><span class="ss">:AUD</span><span class="p">,</span><span class="p" data-group-id="6661905679-1">(</span><span class="s">"en"</span><span class="p" data-group-id="6661905679-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">MyApp.Cldr.Currency</span><span class="o">.</span><span class="n">strings_for_currency</span><span class="w"> </span><span class="ss">:AUD</span><span class="p">,</span><span class="p" data-group-id="2951144548-1">(</span><span class="s">"en"</span><span class="p" data-group-id="2951144548-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6661905679-2">[</span><span class="s">"a$"</span><span class="p">,</span><span class="w"> </span><span class="s">"australian dollars"</span><span class="p">,</span><span class="w"> </span><span class="s">"aud"</span><span class="p">,</span><span class="w"> </span><span class="s">"australian dollar"</span><span class="p" data-group-id="6661905679-2">]</span></code></pre>
|
</span><span class="p" data-group-id="2951144548-2">[</span><span class="s">"a$"</span><span class="p">,</span><span class="w"> </span><span class="s">"australian dollars"</span><span class="p">,</span><span class="w"> </span><span class="s">"aud"</span><span class="p">,</span><span class="w"> </span><span class="s">"australian dollar"</span><span class="p" data-group-id="2951144548-2">]</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -326,16 +326,16 @@ this specific locale..</p><h2 id="fallback_locale_names/1-arguments" class="sect
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">fallback_locale_names</span><span class="p" data-group-id="1069791116-1">(</span><span class="ss">:"fr-CA"</span><span class="p" data-group-id="1069791116-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">fallback_locale_names</span><span class="p" data-group-id="5994311552-1">(</span><span class="ss">:"fr-CA"</span><span class="p" data-group-id="5994311552-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1069791116-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1069791116-3">[</span><span class="ss">:"fr-CA"</span><span class="p">,</span><span class="w"> </span><span class="ss">:fr</span><span class="p">,</span><span class="w"> </span><span class="ss">:und</span><span class="p" data-group-id="1069791116-3">]</span><span class="p" data-group-id="1069791116-2">}</span><span class="w">
|
</span><span class="p" data-group-id="5994311552-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5994311552-3">[</span><span class="ss">:"fr-CA"</span><span class="p">,</span><span class="w"> </span><span class="ss">:fr</span><span class="p">,</span><span class="w"> </span><span class="ss">:und</span><span class="p" data-group-id="5994311552-3">]</span><span class="p" data-group-id="5994311552-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="c1"># Fallbacks are typically formed by progressively</span><span class="w">
|
</span><span class="c1"># Fallbacks are typically formed by progressively</span><span class="w">
|
||||||
</span><span class="c1"># stripping variant, territory and script from the</span><span class="w">
|
</span><span class="c1"># stripping variant, territory and script from the</span><span class="w">
|
||||||
</span><span class="c1"># given locale name. But not always - there are</span><span class="w">
|
</span><span class="c1"># given locale name. But not always - there are</span><span class="w">
|
||||||
</span><span class="c1"># certain fallbacks that take a different path.</span><span class="w">
|
</span><span class="c1"># certain fallbacks that take a different path.</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">fallback_locale_names</span><span class="p" data-group-id="1069791116-4">(</span><span class="ss">:nb</span><span class="p" data-group-id="1069791116-4">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">fallback_locale_names</span><span class="p" data-group-id="5994311552-4">(</span><span class="ss">:nb</span><span class="p" data-group-id="5994311552-4">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1069791116-5">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1069791116-6">[</span><span class="ss">:nb</span><span class="p">,</span><span class="w"> </span><span class="ss">:no</span><span class="p">,</span><span class="w"> </span><span class="ss">:und</span><span class="p" data-group-id="1069791116-6">]</span><span class="p" data-group-id="1069791116-5">}</span></code></pre>
|
</span><span class="p" data-group-id="5994311552-5">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5994311552-6">[</span><span class="ss">:nb</span><span class="p">,</span><span class="w"> </span><span class="ss">:no</span><span class="p">,</span><span class="w"> </span><span class="ss">:und</span><span class="p" data-group-id="5994311552-6">]</span><span class="p" data-group-id="5994311552-5">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="fallback_locales/1">
|
<section class="detail" id="fallback_locales/1">
|
||||||
@ -389,20 +389,20 @@ this specific locale.</p><h2 id="fallback_locales/1-arguments" class="section-he
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">fallback_locales</span><span class="p" data-group-id="9315699619-1">(</span><span class="ss">:"fr-CA"</span><span class="p" data-group-id="9315699619-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">fallback_locales</span><span class="p" data-group-id="9963419838-1">(</span><span class="ss">:"fr-CA"</span><span class="p" data-group-id="9963419838-1">)</span><span class="w">
|
||||||
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="9315699619-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="9963419838-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="9315699619-3">[</span><span class="p" data-group-id="9315699619-4">#</span><span class="nc" data-group-id="9315699619-4">Cldr.LanguageTag</span><span class="p" data-group-id="9315699619-4"><</span><span class="n">fr</span><span class="o">-</span><span class="nc">CA</span><span class="w"> </span><span class="p" data-group-id="9315699619-5">[</span><span class="n">validated</span><span class="p" data-group-id="9315699619-5">]</span><span class="p" data-group-id="9315699619-4">></span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9315699619-6">#</span><span class="nc" data-group-id="9315699619-6">Cldr.LanguageTag</span><span class="p" data-group-id="9315699619-6"><</span><span class="n">fr</span><span class="w"> </span><span class="p" data-group-id="9315699619-7">[</span><span class="n">validated</span><span class="p" data-group-id="9315699619-7">]</span><span class="p" data-group-id="9315699619-6">></span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9963419838-3">[</span><span class="p" data-group-id="9963419838-4">#</span><span class="nc" data-group-id="9963419838-4">Cldr.LanguageTag</span><span class="p" data-group-id="9963419838-4"><</span><span class="n">fr</span><span class="o">-</span><span class="nc">CA</span><span class="w"> </span><span class="p" data-group-id="9963419838-5">[</span><span class="n">validated</span><span class="p" data-group-id="9963419838-5">]</span><span class="p" data-group-id="9963419838-4">></span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9963419838-6">#</span><span class="nc" data-group-id="9963419838-6">Cldr.LanguageTag</span><span class="p" data-group-id="9963419838-6"><</span><span class="n">fr</span><span class="w"> </span><span class="p" data-group-id="9963419838-7">[</span><span class="n">validated</span><span class="p" data-group-id="9963419838-7">]</span><span class="p" data-group-id="9963419838-6">></span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="9315699619-8">#</span><span class="nc" data-group-id="9315699619-8">Cldr.LanguageTag</span><span class="p" data-group-id="9315699619-8"><</span><span class="n">und</span><span class="w"> </span><span class="p" data-group-id="9315699619-9">[</span><span class="n">validated</span><span class="p" data-group-id="9315699619-9">]</span><span class="p" data-group-id="9315699619-8">></span><span class="p" data-group-id="9315699619-3">]</span><span class="p" data-group-id="9315699619-2">}</span><span class="w">
|
</span><span class="p" data-group-id="9963419838-8">#</span><span class="nc" data-group-id="9963419838-8">Cldr.LanguageTag</span><span class="p" data-group-id="9963419838-8"><</span><span class="n">und</span><span class="w"> </span><span class="p" data-group-id="9963419838-9">[</span><span class="n">validated</span><span class="p" data-group-id="9963419838-9">]</span><span class="p" data-group-id="9963419838-8">></span><span class="p" data-group-id="9963419838-3">]</span><span class="p" data-group-id="9963419838-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="c1"># Fallbacks are typically formed by progressively</span><span class="w">
|
</span><span class="c1"># Fallbacks are typically formed by progressively</span><span class="w">
|
||||||
</span><span class="c1"># stripping variant, territory and script from the</span><span class="w">
|
</span><span class="c1"># stripping variant, territory and script from the</span><span class="w">
|
||||||
</span><span class="c1"># given locale name. But not always - there are</span><span class="w">
|
</span><span class="c1"># given locale name. But not always - there are</span><span class="w">
|
||||||
</span><span class="c1"># certain fallbacks that take a different path.</span><span class="w">
|
</span><span class="c1"># certain fallbacks that take a different path.</span><span class="w">
|
||||||
|
|
||||||
</span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">fallback_locales</span><span class="p" data-group-id="9315699619-10">(</span><span class="ss">:nb</span><span class="p" data-group-id="9315699619-10">)</span><span class="p">)</span><span class="w">
|
</span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">fallback_locales</span><span class="p" data-group-id="9963419838-10">(</span><span class="ss">:nb</span><span class="p" data-group-id="9963419838-10">)</span><span class="p">)</span><span class="w">
|
||||||
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="9315699619-11">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="9963419838-11">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="9315699619-12">[</span><span class="p" data-group-id="9315699619-13">#</span><span class="nc" data-group-id="9315699619-13">Cldr.LanguageTag</span><span class="p" data-group-id="9315699619-13"><</span><span class="n">nb</span><span class="w"> </span><span class="p" data-group-id="9315699619-14">[</span><span class="n">validated</span><span class="p" data-group-id="9315699619-14">]</span><span class="p" data-group-id="9315699619-13">></span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9315699619-15">#</span><span class="nc" data-group-id="9315699619-15">Cldr.LanguageTag</span><span class="p" data-group-id="9315699619-15"><</span><span class="n">no</span><span class="w"> </span><span class="p" data-group-id="9315699619-16">[</span><span class="n">validated</span><span class="p" data-group-id="9315699619-16">]</span><span class="p" data-group-id="9315699619-15">></span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9963419838-12">[</span><span class="p" data-group-id="9963419838-13">#</span><span class="nc" data-group-id="9963419838-13">Cldr.LanguageTag</span><span class="p" data-group-id="9963419838-13"><</span><span class="n">nb</span><span class="w"> </span><span class="p" data-group-id="9963419838-14">[</span><span class="n">validated</span><span class="p" data-group-id="9963419838-14">]</span><span class="p" data-group-id="9963419838-13">></span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9963419838-15">#</span><span class="nc" data-group-id="9963419838-15">Cldr.LanguageTag</span><span class="p" data-group-id="9963419838-15"><</span><span class="n">no</span><span class="w"> </span><span class="p" data-group-id="9963419838-16">[</span><span class="n">validated</span><span class="p" data-group-id="9963419838-16">]</span><span class="p" data-group-id="9963419838-15">></span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="9315699619-17">#</span><span class="nc" data-group-id="9315699619-17">Cldr.LanguageTag</span><span class="p" data-group-id="9315699619-17"><</span><span class="n">und</span><span class="w"> </span><span class="p" data-group-id="9315699619-18">[</span><span class="n">validated</span><span class="p" data-group-id="9315699619-18">]</span><span class="p" data-group-id="9315699619-17">></span><span class="p" data-group-id="9315699619-12">]</span><span class="p" data-group-id="9315699619-11">}</span></code></pre>
|
</span><span class="p" data-group-id="9963419838-17">#</span><span class="nc" data-group-id="9963419838-17">Cldr.LanguageTag</span><span class="p" data-group-id="9963419838-17"><</span><span class="n">und</span><span class="w"> </span><span class="p" data-group-id="9963419838-18">[</span><span class="n">validated</span><span class="p" data-group-id="9963419838-18">]</span><span class="p" data-group-id="9963419838-17">></span><span class="p" data-group-id="9963419838-12">]</span><span class="p" data-group-id="9963419838-11">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="locale_for_territory/1">
|
<section class="detail" id="locale_for_territory/1">
|
||||||
@ -533,15 +533,15 @@ generic top-level domain names.</p><h2 id="locale_from_host/2-examples" class="s
|
|||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">locale_from_host</span><span class="w"> </span><span class="s">"a.b.com.au"</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">locale_from_host</span><span class="w"> </span><span class="s">"a.b.com.au"</span><span class="w">
|
||||||
</span><span class="nc">Elixir.Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="p" data-group-id="4698104891-1">(</span><span class="ss">:"en-AU"</span><span class="p" data-group-id="4698104891-1">)</span><span class="w">
|
</span><span class="nc">Elixir.Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="p" data-group-id="8638289597-1">(</span><span class="ss">:"en-AU"</span><span class="p" data-group-id="8638289597-1">)</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">locale_from_host</span><span class="p" data-group-id="4698104891-2">(</span><span class="s">"a.b.com.tv"</span><span class="p" data-group-id="4698104891-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">locale_from_host</span><span class="p" data-group-id="8638289597-2">(</span><span class="s">"a.b.com.tv"</span><span class="p" data-group-id="8638289597-2">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4698104891-3">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="8638289597-3">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4698104891-4">{</span><span class="nc">Cldr.UnknownLocaleError</span><span class="p">,</span><span class="w"> </span><span class="s">"No locale was identified for territory </span><span class="se">\"</span><span class="s">tv</span><span class="se">\"</span><span class="s">"</span><span class="p" data-group-id="4698104891-4">}</span><span class="p" data-group-id="4698104891-3">}</span><span class="w">
|
</span><span class="p" data-group-id="8638289597-4">{</span><span class="nc">Cldr.UnknownLocaleError</span><span class="p">,</span><span class="w"> </span><span class="s">"No locale was identified for territory </span><span class="se">\"</span><span class="s">tv</span><span class="se">\"</span><span class="s">"</span><span class="p" data-group-id="8638289597-4">}</span><span class="p" data-group-id="8638289597-3">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">locale_from_host</span><span class="p" data-group-id="4698104891-5">(</span><span class="s">"a.b.com"</span><span class="p" data-group-id="4698104891-5">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">locale_from_host</span><span class="p" data-group-id="8638289597-5">(</span><span class="s">"a.b.com"</span><span class="p" data-group-id="8638289597-5">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4698104891-6">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="8638289597-6">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4698104891-7">{</span><span class="nc">Cldr.UnknownLocaleError</span><span class="p">,</span><span class="w"> </span><span class="s">"No locale was identified for territory </span><span class="se">\"</span><span class="s">com</span><span class="se">\"</span><span class="s">"</span><span class="p" data-group-id="4698104891-7">}</span><span class="p" data-group-id="4698104891-6">}</span></code></pre>
|
</span><span class="p" data-group-id="8638289597-7">{</span><span class="nc">Cldr.UnknownLocaleError</span><span class="p">,</span><span class="w"> </span><span class="s">"No locale was identified for territory </span><span class="se">\"</span><span class="s">com</span><span class="se">\"</span><span class="s">"</span><span class="p" data-group-id="8638289597-7">}</span><span class="p" data-group-id="8638289597-6">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="new/1">
|
<section class="detail" id="new/1">
|
||||||
@ -683,12 +683,12 @@ be a territory.</p><h2 id="territory_from_host/1-arguments" class="section-headi
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Cldr.Locale</span><span class="o">.</span><span class="n">territory_from_host</span><span class="p" data-group-id="9289220440-1">(</span><span class="s">"a.b.com.au"</span><span class="p" data-group-id="9289220440-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Cldr.Locale</span><span class="o">.</span><span class="n">territory_from_host</span><span class="p" data-group-id="4283774470-1">(</span><span class="s">"a.b.com.au"</span><span class="p" data-group-id="4283774470-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="9289220440-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:AU</span><span class="p" data-group-id="9289220440-2">}</span><span class="w">
|
</span><span class="p" data-group-id="4283774470-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:AU</span><span class="p" data-group-id="4283774470-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Cldr.Locale</span><span class="o">.</span><span class="n">territory_from_host</span><span class="p" data-group-id="9289220440-3">(</span><span class="s">"a.b.com"</span><span class="p" data-group-id="9289220440-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Cldr.Locale</span><span class="o">.</span><span class="n">territory_from_host</span><span class="p" data-group-id="4283774470-3">(</span><span class="s">"a.b.com"</span><span class="p" data-group-id="4283774470-3">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="9289220440-4">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="4283774470-4">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="9289220440-5">{</span><span class="nc">Cldr.UnknownLocaleError</span><span class="p">,</span><span class="w"> </span><span class="s">"No locale was identified for territory </span><span class="se">\"</span><span class="s">com</span><span class="se">\"</span><span class="s">"</span><span class="p" data-group-id="9289220440-5">}</span><span class="p" data-group-id="9289220440-4">}</span></code></pre>
|
</span><span class="p" data-group-id="4283774470-5">{</span><span class="nc">Cldr.UnknownLocaleError</span><span class="p">,</span><span class="w"> </span><span class="s">"No locale was identified for territory </span><span class="se">\"</span><span class="s">com</span><span class="se">\"</span><span class="s">"</span><span class="p" data-group-id="4283774470-5">}</span><span class="p" data-group-id="4283774470-4">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="territory_from_locale/1">
|
<section class="detail" id="territory_from_locale/1">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -461,31 +461,31 @@ The valid substitution keys are <code class="inline">:zero</code>, <code class="
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0540383678-1">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="0540383678-1">}</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1993107689-1">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="1993107689-1">}</span><span class="w">
|
||||||
</span><span class="s">"one"</span><span class="w">
|
</span><span class="s">"one"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0540383678-2">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="0540383678-2">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1993107689-2">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="1993107689-2">}</span><span class="w">
|
||||||
</span><span class="no">nil</span><span class="w">
|
</span><span class="no">nil</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0540383678-3">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">two</span><span class="p">:</span><span class="w"> </span><span class="s">"two"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="0540383678-3">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1993107689-3">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">two</span><span class="p">:</span><span class="w"> </span><span class="s">"two"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="1993107689-3">}</span><span class="w">
|
||||||
</span><span class="s">"other"</span><span class="w">
|
</span><span class="s">"other"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">22</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0540383678-4">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">two</span><span class="p">:</span><span class="w"> </span><span class="s">"two"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="0540383678-4">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">22</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1993107689-4">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">two</span><span class="p">:</span><span class="w"> </span><span class="s">"two"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="1993107689-4">}</span><span class="w">
|
||||||
</span><span class="s">"other"</span><span class="w">
|
</span><span class="s">"other"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="nc">Decimal</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="0540383678-5">(</span><span class="mi">1</span><span class="p" data-group-id="0540383678-5">)</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0540383678-6">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="0540383678-6">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="nc">Decimal</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="1993107689-5">(</span><span class="mi">1</span><span class="p" data-group-id="1993107689-5">)</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1993107689-6">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="1993107689-6">}</span><span class="w">
|
||||||
</span><span class="s">"one"</span><span class="w">
|
</span><span class="s">"one"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="nc">Decimal</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="0540383678-7">(</span><span class="mi">2</span><span class="p" data-group-id="0540383678-7">)</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0540383678-8">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="0540383678-8">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="nc">Decimal</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="1993107689-7">(</span><span class="mi">2</span><span class="p" data-group-id="1993107689-7">)</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1993107689-8">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="1993107689-8">}</span><span class="w">
|
||||||
</span><span class="no">nil</span><span class="w">
|
</span><span class="no">nil</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="nc">Decimal</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="0540383678-9">(</span><span class="mi">2</span><span class="p" data-group-id="0540383678-9">)</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0540383678-10">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">two</span><span class="p">:</span><span class="w"> </span><span class="s">"two"</span><span class="p" data-group-id="0540383678-10">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="nc">Decimal</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="1993107689-9">(</span><span class="mi">2</span><span class="p" data-group-id="1993107689-9">)</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1993107689-10">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">two</span><span class="p">:</span><span class="w"> </span><span class="s">"two"</span><span class="p" data-group-id="1993107689-10">}</span><span class="w">
|
||||||
</span><span class="no">nil</span><span class="w">
|
</span><span class="no">nil</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">1</span><span class="o">..</span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="s">"ar"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0540383678-11">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">few</span><span class="p">:</span><span class="w"> </span><span class="s">"few"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="0540383678-11">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">1</span><span class="o">..</span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="s">"ar"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1993107689-11">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">few</span><span class="p">:</span><span class="w"> </span><span class="s">"few"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="1993107689-11">}</span><span class="w">
|
||||||
</span><span class="s">"few"</span><span class="w">
|
</span><span class="s">"few"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">1</span><span class="o">..</span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0540383678-12">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">few</span><span class="p">:</span><span class="w"> </span><span class="s">"few"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="0540383678-12">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Cardinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">1</span><span class="o">..</span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1993107689-12">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">few</span><span class="p">:</span><span class="w"> </span><span class="s">"few"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="1993107689-12">}</span><span class="w">
|
||||||
</span><span class="s">"other"</span></code></pre>
|
</span><span class="s">"other"</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -465,7 +465,7 @@ to precompile all the known formats at compile time.</p><h2 id="decimal_format_l
|
|||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="c1">#=> Plausible.Cldr.Number.Format.Format.decimal_format_list</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="c1">#=> Plausible.Cldr.Number.Format.Format.decimal_format_list</span><span class="w">
|
||||||
</span><span class="p" data-group-id="5030168966-1">[</span><span class="s">"#"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##,##0%"</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="8732187926-1">[</span><span class="s">"#"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##,##0%"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"#,##,##0.###"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##,##0.00¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##,##0.00¤;(#,##,##0.00¤)"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"#,##,##0.###"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##,##0.00¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##,##0.00¤;(#,##,##0.00¤)"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"#,##,##0 %"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0%"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.###"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.00 ¤"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"#,##,##0 %"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0%"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.###"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.00 ¤"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"#,##0.00 ¤;(#,##0.00 ¤)"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.00¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.00¤;(#,##0.00¤)"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"#,##0.00 ¤;(#,##0.00 ¤)"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.00¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.00¤;(#,##0.00¤)"</span><span class="p">,</span><span class="w">
|
||||||
@ -475,7 +475,7 @@ to precompile all the known formats at compile time.</p><h2 id="decimal_format_l
|
|||||||
</span><span class="s">"000 B ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 E ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 K ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 MRD ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Md ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Mio'.' ¤"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"000 B ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 E ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 K ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 MRD ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Md ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Mio'.' ¤"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"000 Mio ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Mld ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Mln ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Mn ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Mrd'.' ¤"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"000 Mio ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Mld ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Mln ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Mn ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Mrd'.' ¤"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"000 Mrd ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Mr ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 M ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 NT ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 N ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Tn ¤"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"000 Mrd ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Mr ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 M ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 NT ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 N ¤"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 Tn ¤"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"000 Tr ¤"</span><span class="p">,</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="5030168966-1">]</span></code></pre>
|
</span><span class="s">"000 Tr ¤"</span><span class="p">,</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="8732187926-1">]</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="decimal_format_list_for/1">
|
<section class="detail" id="decimal_format_list_for/1">
|
||||||
@ -523,8 +523,8 @@ the known formats at compile time. Its use is not otherwise recommended.</p><h2
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Format</span><span class="o">.</span><span class="n">decimal_format_list_for</span><span class="p" data-group-id="7851522308-1">(</span><span class="ss">:en</span><span class="p" data-group-id="7851522308-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Format</span><span class="o">.</span><span class="n">decimal_format_list_for</span><span class="p" data-group-id="5650284674-1">(</span><span class="ss">:en</span><span class="p" data-group-id="5650284674-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="7851522308-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7851522308-3">[</span><span class="s">"#,##0%"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.###"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.00"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.00;(#,##0.00)"</span><span class="p">,</span><span class="s">"#E0"</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5650284674-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5650284674-3">[</span><span class="s">"#,##0%"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.###"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.00"</span><span class="p">,</span><span class="w"> </span><span class="s">"#,##0.00;(#,##0.00)"</span><span class="p">,</span><span class="s">"#E0"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"0 billion"</span><span class="p">,</span><span class="w"> </span><span class="s">"0 million"</span><span class="p">,</span><span class="w"> </span><span class="s">"0 thousand"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"0 billion"</span><span class="p">,</span><span class="w"> </span><span class="s">"0 million"</span><span class="p">,</span><span class="w"> </span><span class="s">"0 thousand"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"0 trillion"</span><span class="p">,</span><span class="w"> </span><span class="s">"00 billion"</span><span class="p">,</span><span class="w"> </span><span class="s">"00 million"</span><span class="p">,</span><span class="w"> </span><span class="s">"00 thousand"</span><span class="p">,</span><span class="w"> </span><span class="s">"00 trillion"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"0 trillion"</span><span class="p">,</span><span class="w"> </span><span class="s">"00 billion"</span><span class="p">,</span><span class="w"> </span><span class="s">"00 million"</span><span class="p">,</span><span class="w"> </span><span class="s">"00 thousand"</span><span class="p">,</span><span class="w"> </span><span class="s">"00 trillion"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"000 billion"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 million"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 thousand"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 trillion"</span><span class="p">,</span><span class="w"> </span><span class="s">"000B"</span><span class="p">,</span><span class="w"> </span><span class="s">"000K"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"000 billion"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 million"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 thousand"</span><span class="p">,</span><span class="w"> </span><span class="s">"000 trillion"</span><span class="p">,</span><span class="w"> </span><span class="s">"000B"</span><span class="p">,</span><span class="w"> </span><span class="s">"000K"</span><span class="p">,</span><span class="w">
|
||||||
@ -532,7 +532,7 @@ the known formats at compile time. Its use is not otherwise recommended.</p><h2
|
|||||||
</span><span class="s">"¤#,##0.00"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤#,##0.00;(¤#,##0.00)"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤000B"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤000K"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤000M"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"¤#,##0.00"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤#,##0.00;(¤#,##0.00)"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤000B"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤000K"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤000M"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"¤000T"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤00B"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤00K"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤00M"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤00T"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤0B"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤0K"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤0M"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤0T"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"¤000T"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤00B"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤00K"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤00M"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤00T"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤0B"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤0K"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤0M"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤0T"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"¤ #,##0.00"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ #,##0.00;(¤ #,##0.00)"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 000B"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 000K"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 000M"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"¤ #,##0.00"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ #,##0.00;(¤ #,##0.00)"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 000B"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 000K"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 000M"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"¤ 000T"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 00B"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 00K"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 00M"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 00T"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 0B"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 0K"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 0M"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 0T"</span><span class="p" data-group-id="7851522308-3">]</span><span class="p" data-group-id="7851522308-2">}</span></code></pre>
|
</span><span class="s">"¤ 000T"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 00B"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 00K"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 00M"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 00T"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 0B"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 0K"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 0M"</span><span class="p">,</span><span class="w"> </span><span class="s">"¤ 0T"</span><span class="p" data-group-id="5650284674-3">]</span><span class="p" data-group-id="5650284674-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="default_grouping_for/1">
|
<section class="detail" id="default_grouping_for/1">
|
||||||
@ -585,8 +585,8 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Format</span><span class="o">.</span><span class="n">default_grouping_for</span><span class="p" data-group-id="8700999435-1">(</span><span class="ss">:en</span><span class="p" data-group-id="8700999435-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Format</span><span class="o">.</span><span class="n">default_grouping_for</span><span class="p" data-group-id="2895119012-1">(</span><span class="ss">:en</span><span class="p" data-group-id="2895119012-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8700999435-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8700999435-3">%{</span><span class="ss">fraction</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8700999435-4">%{</span><span class="ss">first</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="ss">rest</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p" data-group-id="8700999435-4">}</span><span class="p">,</span><span class="w"> </span><span class="ss">integer</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8700999435-5">%{</span><span class="ss">first</span><span class="p">:</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="ss">rest</span><span class="p">:</span><span class="w"> </span><span class="mi">3</span><span class="p" data-group-id="8700999435-5">}</span><span class="p" data-group-id="8700999435-3">}</span><span class="p" data-group-id="8700999435-2">}</span></code></pre>
|
</span><span class="p" data-group-id="2895119012-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="2895119012-3">%{</span><span class="ss">fraction</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="2895119012-4">%{</span><span class="ss">first</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="ss">rest</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p" data-group-id="2895119012-4">}</span><span class="p">,</span><span class="w"> </span><span class="ss">integer</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="2895119012-5">%{</span><span class="ss">first</span><span class="p">:</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="ss">rest</span><span class="p">:</span><span class="w"> </span><span class="mi">3</span><span class="p" data-group-id="2895119012-5">}</span><span class="p" data-group-id="2895119012-3">}</span><span class="p" data-group-id="2895119012-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="default_grouping_for!/1">
|
<section class="detail" id="default_grouping_for!/1">
|
||||||
@ -642,8 +642,8 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Format</span><span class="o">.</span><span class="n">default_grouping_for!</span><span class="p" data-group-id="8950701415-1">(</span><span class="ss">:en</span><span class="p" data-group-id="8950701415-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Format</span><span class="o">.</span><span class="n">default_grouping_for!</span><span class="p" data-group-id="8319238483-1">(</span><span class="ss">:en</span><span class="p" data-group-id="8319238483-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8950701415-2">%{</span><span class="ss">fraction</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8950701415-3">%{</span><span class="ss">first</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="ss">rest</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p" data-group-id="8950701415-3">}</span><span class="p">,</span><span class="w"> </span><span class="ss">integer</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8950701415-4">%{</span><span class="ss">first</span><span class="p">:</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="ss">rest</span><span class="p">:</span><span class="w"> </span><span class="mi">3</span><span class="p" data-group-id="8950701415-4">}</span><span class="p" data-group-id="8950701415-2">}</span></code></pre>
|
</span><span class="p" data-group-id="8319238483-2">%{</span><span class="ss">fraction</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8319238483-3">%{</span><span class="ss">first</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="ss">rest</span><span class="p">:</span><span class="w"> </span><span class="mi">0</span><span class="p" data-group-id="8319238483-3">}</span><span class="p">,</span><span class="w"> </span><span class="ss">integer</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8319238483-4">%{</span><span class="ss">first</span><span class="p">:</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="ss">rest</span><span class="p">:</span><span class="w"> </span><span class="mi">3</span><span class="p" data-group-id="8319238483-4">}</span><span class="p" data-group-id="8319238483-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="formats_for/2">
|
<section class="detail" id="formats_for/2">
|
||||||
@ -700,18 +700,18 @@ by <a href="Plausible.Cldr.Number.System.html#number_systems_for/1"><code class=
|
|||||||
</span><span class="ss">percent</span><span class="p">:</span><span class="w"> </span><span class="s">"#,##0 %"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">percent</span><span class="p">:</span><span class="w"> </span><span class="s">"#,##0 %"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">scientific</span><span class="p">:</span><span class="w"> </span><span class="s">"#E0"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">scientific</span><span class="p">:</span><span class="w"> </span><span class="s">"#E0"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">standard</span><span class="p">:</span><span class="w"> </span><span class="s">"#,##0.###"</span><span class="w">
|
</span><span class="ss">standard</span><span class="p">:</span><span class="w"> </span><span class="s">"#,##0.###"</span><span class="w">
|
||||||
</span><span class="ss">currency_short</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1929544221-1">[</span><span class="p" data-group-id="1929544221-2">{</span><span class="s">"1000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1929544221-3">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"0 k ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"0 k ¤"</span><span class="p" data-group-id="1929544221-3">]</span><span class="p" data-group-id="1929544221-2">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">currency_short</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9776643924-1">[</span><span class="p" data-group-id="9776643924-2">{</span><span class="s">"1000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9776643924-3">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"0 k ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"0 k ¤"</span><span class="p" data-group-id="9776643924-3">]</span><span class="p" data-group-id="9776643924-2">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1929544221-4">{</span><span class="s">"10000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1929544221-5">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"00 k ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"00 k ¤"</span><span class="p" data-group-id="1929544221-5">]</span><span class="p" data-group-id="1929544221-4">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9776643924-4">{</span><span class="s">"10000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9776643924-5">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"00 k ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"00 k ¤"</span><span class="p" data-group-id="9776643924-5">]</span><span class="p" data-group-id="9776643924-4">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1929544221-6">{</span><span class="s">"100000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1929544221-7">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"000 k ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"000 k ¤"</span><span class="p" data-group-id="1929544221-7">]</span><span class="p" data-group-id="1929544221-6">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9776643924-6">{</span><span class="s">"100000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9776643924-7">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"000 k ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"000 k ¤"</span><span class="p" data-group-id="9776643924-7">]</span><span class="p" data-group-id="9776643924-6">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1929544221-8">{</span><span class="s">"1000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1929544221-9">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"0 M ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"0 M ¤"</span><span class="p" data-group-id="1929544221-9">]</span><span class="p" data-group-id="1929544221-8">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9776643924-8">{</span><span class="s">"1000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9776643924-9">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"0 M ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"0 M ¤"</span><span class="p" data-group-id="9776643924-9">]</span><span class="p" data-group-id="9776643924-8">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1929544221-10">{</span><span class="s">"10000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1929544221-11">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"00 M ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"00 M ¤"</span><span class="p" data-group-id="1929544221-11">]</span><span class="p" data-group-id="1929544221-10">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9776643924-10">{</span><span class="s">"10000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9776643924-11">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"00 M ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"00 M ¤"</span><span class="p" data-group-id="9776643924-11">]</span><span class="p" data-group-id="9776643924-10">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1929544221-12">{</span><span class="s">"100000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1929544221-13">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"000 M ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"000 M ¤"</span><span class="p" data-group-id="1929544221-13">]</span><span class="p" data-group-id="1929544221-12">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9776643924-12">{</span><span class="s">"100000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9776643924-13">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"000 M ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"000 M ¤"</span><span class="p" data-group-id="9776643924-13">]</span><span class="p" data-group-id="9776643924-12">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1929544221-14">{</span><span class="s">"1000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1929544221-15">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"0 Md ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"0 Md ¤"</span><span class="p" data-group-id="1929544221-15">]</span><span class="p" data-group-id="1929544221-14">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9776643924-14">{</span><span class="s">"1000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9776643924-15">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"0 Md ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"0 Md ¤"</span><span class="p" data-group-id="9776643924-15">]</span><span class="p" data-group-id="9776643924-14">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1929544221-16">{</span><span class="s">"10000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1929544221-17">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"00 Md ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"00 Md ¤"</span><span class="p" data-group-id="1929544221-17">]</span><span class="p" data-group-id="1929544221-16">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9776643924-16">{</span><span class="s">"10000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9776643924-17">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"00 Md ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"00 Md ¤"</span><span class="p" data-group-id="9776643924-17">]</span><span class="p" data-group-id="9776643924-16">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1929544221-18">{</span><span class="s">"100000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1929544221-19">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"000 Md ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"000 Md ¤"</span><span class="p" data-group-id="1929544221-19">]</span><span class="p" data-group-id="1929544221-18">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9776643924-18">{</span><span class="s">"100000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9776643924-19">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"000 Md ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"000 Md ¤"</span><span class="p" data-group-id="9776643924-19">]</span><span class="p" data-group-id="9776643924-18">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1929544221-20">{</span><span class="s">"1000000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1929544221-21">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"0 Bn ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"0 Bn ¤"</span><span class="p" data-group-id="1929544221-21">]</span><span class="p" data-group-id="1929544221-20">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9776643924-20">{</span><span class="s">"1000000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9776643924-21">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"0 Bn ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"0 Bn ¤"</span><span class="p" data-group-id="9776643924-21">]</span><span class="p" data-group-id="9776643924-20">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1929544221-22">{</span><span class="s">"10000000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1929544221-23">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"00 Bn ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"00 Bn ¤"</span><span class="p" data-group-id="1929544221-23">]</span><span class="p" data-group-id="1929544221-22">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9776643924-22">{</span><span class="s">"10000000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9776643924-23">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"00 Bn ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"00 Bn ¤"</span><span class="p" data-group-id="9776643924-23">]</span><span class="p" data-group-id="9776643924-22">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1929544221-24">{</span><span class="s">"100000000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1929544221-25">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"000 Bn ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"000 Bn ¤"</span><span class="p" data-group-id="1929544221-25">]</span><span class="p" data-group-id="1929544221-24">}</span><span class="p" data-group-id="1929544221-1">]</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9776643924-24">{</span><span class="s">"100000000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9776643924-25">[</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"000 Bn ¤"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"000 Bn ¤"</span><span class="p" data-group-id="9776643924-25">]</span><span class="p" data-group-id="9776643924-24">}</span><span class="p" data-group-id="9776643924-1">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="n">...</span><span class="w">
|
</span><span class="n">...</span><span class="w">
|
||||||
</span><span class="err">}</span></code></pre>
|
</span><span class="err">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
@ -802,8 +802,8 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Format</span><span class="o">.</span><span class="n">minimum_grouping_digits_for</span><span class="p" data-group-id="6693928635-1">(</span><span class="s">"en"</span><span class="p" data-group-id="6693928635-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Format</span><span class="o">.</span><span class="n">minimum_grouping_digits_for</span><span class="p" data-group-id="5778229846-1">(</span><span class="s">"en"</span><span class="p" data-group-id="5778229846-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6693928635-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p" data-group-id="6693928635-2">}</span></code></pre>
|
</span><span class="p" data-group-id="5778229846-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p" data-group-id="5778229846-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="minimum_grouping_digits_for!/1">
|
<section class="detail" id="minimum_grouping_digits_for!/1">
|
||||||
@ -855,7 +855,7 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Format</span><span class="o">.</span><span class="n">minimum_grouping_digits_for!</span><span class="p" data-group-id="4790735578-1">(</span><span class="s">"en"</span><span class="p" data-group-id="4790735578-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Format</span><span class="o">.</span><span class="n">minimum_grouping_digits_for!</span><span class="p" data-group-id="9623534602-1">(</span><span class="s">"en"</span><span class="p" data-group-id="9623534602-1">)</span><span class="w">
|
||||||
</span><span class="mi">1</span></code></pre>
|
</span><span class="mi">1</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -464,31 +464,31 @@ The valid substitution keys are <code class="inline">:zero</code>, <code class="
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7730919552-1">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="7730919552-1">}</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8440641031-1">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="8440641031-1">}</span><span class="w">
|
||||||
</span><span class="s">"one"</span><span class="w">
|
</span><span class="s">"one"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7730919552-2">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="7730919552-2">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8440641031-2">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="8440641031-2">}</span><span class="w">
|
||||||
</span><span class="no">nil</span><span class="w">
|
</span><span class="no">nil</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7730919552-3">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">two</span><span class="p">:</span><span class="w"> </span><span class="s">"two"</span><span class="p" data-group-id="7730919552-3">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8440641031-3">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">two</span><span class="p">:</span><span class="w"> </span><span class="s">"two"</span><span class="p" data-group-id="8440641031-3">}</span><span class="w">
|
||||||
</span><span class="s">"two"</span><span class="w">
|
</span><span class="s">"two"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">22</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7730919552-4">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">two</span><span class="p">:</span><span class="w"> </span><span class="s">"two"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="7730919552-4">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">22</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8440641031-4">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">two</span><span class="p">:</span><span class="w"> </span><span class="s">"two"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="8440641031-4">}</span><span class="w">
|
||||||
</span><span class="s">"two"</span><span class="w">
|
</span><span class="s">"two"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="nc">Decimal</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="7730919552-5">(</span><span class="mi">1</span><span class="p" data-group-id="7730919552-5">)</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7730919552-6">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="7730919552-6">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="nc">Decimal</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="8440641031-5">(</span><span class="mi">1</span><span class="p" data-group-id="8440641031-5">)</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8440641031-6">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="8440641031-6">}</span><span class="w">
|
||||||
</span><span class="s">"one"</span><span class="w">
|
</span><span class="s">"one"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="nc">Decimal</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="7730919552-7">(</span><span class="mi">2</span><span class="p" data-group-id="7730919552-7">)</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7730919552-8">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="7730919552-8">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="nc">Decimal</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="8440641031-7">(</span><span class="mi">2</span><span class="p" data-group-id="8440641031-7">)</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8440641031-8">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p" data-group-id="8440641031-8">}</span><span class="w">
|
||||||
</span><span class="no">nil</span><span class="w">
|
</span><span class="no">nil</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="nc">Decimal</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="7730919552-9">(</span><span class="mi">2</span><span class="p" data-group-id="7730919552-9">)</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7730919552-10">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">two</span><span class="p">:</span><span class="w"> </span><span class="s">"two"</span><span class="p" data-group-id="7730919552-10">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="nc">Decimal</span><span class="o">.</span><span class="n">new</span><span class="p" data-group-id="8440641031-9">(</span><span class="mi">2</span><span class="p" data-group-id="8440641031-9">)</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8440641031-10">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">two</span><span class="p">:</span><span class="w"> </span><span class="s">"two"</span><span class="p" data-group-id="8440641031-10">}</span><span class="w">
|
||||||
</span><span class="s">"two"</span><span class="w">
|
</span><span class="s">"two"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">1</span><span class="o">..</span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="s">"ar"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7730919552-11">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">few</span><span class="p">:</span><span class="w"> </span><span class="s">"few"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="7730919552-11">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">1</span><span class="o">..</span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="s">"ar"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8440641031-11">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">few</span><span class="p">:</span><span class="w"> </span><span class="s">"few"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="8440641031-11">}</span><span class="w">
|
||||||
</span><span class="s">"other"</span><span class="w">
|
</span><span class="s">"other"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">1</span><span class="o">..</span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7730919552-12">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">few</span><span class="p">:</span><span class="w"> </span><span class="s">"few"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="7730919552-12">}</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Ordinal</span><span class="o">.</span><span class="n">pluralize</span><span class="w"> </span><span class="mi">1</span><span class="o">..</span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8440641031-12">%{</span><span class="ss">one</span><span class="p">:</span><span class="w"> </span><span class="s">"one"</span><span class="p">,</span><span class="w"> </span><span class="ss">few</span><span class="p">:</span><span class="w"> </span><span class="s">"few"</span><span class="p">,</span><span class="w"> </span><span class="ss">other</span><span class="p">:</span><span class="w"> </span><span class="s">"other"</span><span class="p" data-group-id="8440641031-12">}</span><span class="w">
|
||||||
</span><span class="s">"other"</span></code></pre>
|
</span><span class="s">"other"</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -378,9 +378,9 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example:</span>
|
<span class="text">Example:</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Symbol</span><span class="o">.</span><span class="n">number_symbols_for</span><span class="p" data-group-id="0276758388-1">(</span><span class="ss">:th</span><span class="p" data-group-id="0276758388-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Symbol</span><span class="o">.</span><span class="n">number_symbols_for</span><span class="p" data-group-id="0662263478-1">(</span><span class="ss">:th</span><span class="p" data-group-id="0662263478-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0276758388-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0276758388-3">%{</span><span class="w">
|
</span><span class="p" data-group-id="0662263478-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0662263478-3">%{</span><span class="w">
|
||||||
</span><span class="ss">latn</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0276758388-4">%</span><span class="nc" data-group-id="0276758388-4">Cldr.Number.Symbol</span><span class="p" data-group-id="0276758388-4">{</span><span class="w">
|
</span><span class="ss">latn</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0662263478-4">%</span><span class="nc" data-group-id="0662263478-4">Cldr.Number.Symbol</span><span class="p" data-group-id="0662263478-4">{</span><span class="w">
|
||||||
</span><span class="ss">decimal</span><span class="p">:</span><span class="w"> </span><span class="s">"."</span><span class="p">,</span><span class="w">
|
</span><span class="ss">decimal</span><span class="p">:</span><span class="w"> </span><span class="s">"."</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">exponential</span><span class="p">:</span><span class="w"> </span><span class="s">"E"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">exponential</span><span class="p">:</span><span class="w"> </span><span class="s">"E"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">group</span><span class="p">:</span><span class="w"> </span><span class="s">","</span><span class="p">,</span><span class="w">
|
</span><span class="ss">group</span><span class="p">:</span><span class="w"> </span><span class="s">","</span><span class="p">,</span><span class="w">
|
||||||
@ -393,8 +393,8 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
|||||||
</span><span class="ss">plus_sign</span><span class="p">:</span><span class="w"> </span><span class="s">"+"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">plus_sign</span><span class="p">:</span><span class="w"> </span><span class="s">"+"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">superscripting_exponent</span><span class="p">:</span><span class="w"> </span><span class="s">"×"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">superscripting_exponent</span><span class="p">:</span><span class="w"> </span><span class="s">"×"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">time_separator</span><span class="p">:</span><span class="w"> </span><span class="s">":"</span><span class="w">
|
</span><span class="ss">time_separator</span><span class="p">:</span><span class="w"> </span><span class="s">":"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0276758388-4">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="0662263478-4">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">thai</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0276758388-5">%</span><span class="nc" data-group-id="0276758388-5">Cldr.Number.Symbol</span><span class="p" data-group-id="0276758388-5">{</span><span class="w">
|
</span><span class="ss">thai</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0662263478-5">%</span><span class="nc" data-group-id="0662263478-5">Cldr.Number.Symbol</span><span class="p" data-group-id="0662263478-5">{</span><span class="w">
|
||||||
</span><span class="ss">decimal</span><span class="p">:</span><span class="w"> </span><span class="s">"."</span><span class="p">,</span><span class="w">
|
</span><span class="ss">decimal</span><span class="p">:</span><span class="w"> </span><span class="s">"."</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">exponential</span><span class="p">:</span><span class="w"> </span><span class="s">"E"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">exponential</span><span class="p">:</span><span class="w"> </span><span class="s">"E"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">group</span><span class="p">:</span><span class="w"> </span><span class="s">","</span><span class="p">,</span><span class="w">
|
</span><span class="ss">group</span><span class="p">:</span><span class="w"> </span><span class="s">","</span><span class="p">,</span><span class="w">
|
||||||
@ -407,8 +407,8 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
|||||||
</span><span class="ss">plus_sign</span><span class="p">:</span><span class="w"> </span><span class="s">"+"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">plus_sign</span><span class="p">:</span><span class="w"> </span><span class="s">"+"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">superscripting_exponent</span><span class="p">:</span><span class="w"> </span><span class="s">"×"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">superscripting_exponent</span><span class="p">:</span><span class="w"> </span><span class="s">"×"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">time_separator</span><span class="p">:</span><span class="w"> </span><span class="s">":"</span><span class="w">
|
</span><span class="ss">time_separator</span><span class="p">:</span><span class="w"> </span><span class="s">":"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0276758388-5">}</span><span class="w">
|
</span><span class="p" data-group-id="0662263478-5">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0276758388-3">}</span><span class="p" data-group-id="0276758388-2">}</span></code></pre>
|
</span><span class="p" data-group-id="0662263478-3">}</span><span class="p" data-group-id="0662263478-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="number_symbols_for/2">
|
<section class="detail" id="number_symbols_for/2">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -317,23 +317,23 @@ it is returned as is.</p><h2 id="number_system_for/2-examples" class="section-he
|
|||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_for</span><span class="w"> </span><span class="s">"th"</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_for</span><span class="w"> </span><span class="s">"th"</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8943806978-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8943806978-2">%{</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="s">"0123456789"</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="ss">:numeric</span><span class="p" data-group-id="8943806978-2">}</span><span class="p" data-group-id="8943806978-1">}</span><span class="w">
|
</span><span class="p" data-group-id="6105853392-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="6105853392-2">%{</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="s">"0123456789"</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="ss">:numeric</span><span class="p" data-group-id="6105853392-2">}</span><span class="p" data-group-id="6105853392-1">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_for</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="ss">:default</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_for</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="ss">:default</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8943806978-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8943806978-4">%{</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="s">"0123456789"</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="ss">:numeric</span><span class="p" data-group-id="8943806978-4">}</span><span class="p" data-group-id="8943806978-3">}</span><span class="w">
|
</span><span class="p" data-group-id="6105853392-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="6105853392-4">%{</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="s">"0123456789"</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="ss">:numeric</span><span class="p" data-group-id="6105853392-4">}</span><span class="p" data-group-id="6105853392-3">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_for</span><span class="w"> </span><span class="s">"he"</span><span class="p">,</span><span class="w"> </span><span class="ss">:traditional</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_for</span><span class="w"> </span><span class="s">"he"</span><span class="p">,</span><span class="w"> </span><span class="ss">:traditional</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8943806978-5">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8943806978-6">%{</span><span class="ss">rules</span><span class="p">:</span><span class="w"> </span><span class="s">"hebrew"</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="ss">:algorithmic</span><span class="p" data-group-id="8943806978-6">}</span><span class="p" data-group-id="8943806978-5">}</span><span class="w">
|
</span><span class="p" data-group-id="6105853392-5">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="6105853392-6">%{</span><span class="ss">rules</span><span class="p">:</span><span class="w"> </span><span class="s">"hebrew"</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="ss">:algorithmic</span><span class="p" data-group-id="6105853392-6">}</span><span class="p" data-group-id="6105853392-5">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_for</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="ss">:native</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_for</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="ss">:native</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8943806978-7">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8943806978-8">%{</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="s">"0123456789"</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="ss">:numeric</span><span class="p" data-group-id="8943806978-8">}</span><span class="p" data-group-id="8943806978-7">}</span><span class="w">
|
</span><span class="p" data-group-id="6105853392-7">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="6105853392-8">%{</span><span class="ss">digits</span><span class="p">:</span><span class="w"> </span><span class="s">"0123456789"</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="ss">:numeric</span><span class="p" data-group-id="6105853392-8">}</span><span class="p" data-group-id="6105853392-7">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_for</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="ss">:finance</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_for</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="ss">:finance</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8943806978-9">{</span><span class="w">
|
</span><span class="p" data-group-id="6105853392-9">{</span><span class="w">
|
||||||
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8943806978-10">{</span><span class="nc">Cldr.UnknownNumberSystemError</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="6105853392-10">{</span><span class="nc">Cldr.UnknownNumberSystemError</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"The number system :finance is unknown for the locale named :en. Valid number systems are %{default: :latn, native: :latn}"</span><span class="p" data-group-id="8943806978-10">}</span><span class="w">
|
</span><span class="s">"The number system :finance is unknown for the locale named :en. Valid number systems are %{default: :latn, native: :latn}"</span><span class="p" data-group-id="6105853392-10">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8943806978-9">}</span></code></pre>
|
</span><span class="p" data-group-id="6105853392-9">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="number_system_from_locale/1">
|
<section class="detail" id="number_system_from_locale/1">
|
||||||
@ -424,10 +424,10 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code cla
|
|||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_names_for</span><span class="w"> </span><span class="s">"en"</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_names_for</span><span class="w"> </span><span class="s">"en"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="7466031054-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7466031054-2">[</span><span class="ss">:latn</span><span class="p" data-group-id="7466031054-2">]</span><span class="p" data-group-id="7466031054-1">}</span><span class="w">
|
</span><span class="p" data-group-id="3049097437-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3049097437-2">[</span><span class="ss">:latn</span><span class="p" data-group-id="3049097437-2">]</span><span class="p" data-group-id="3049097437-1">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_names_for</span><span class="w"> </span><span class="s">"zz"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_system_names_for</span><span class="w"> </span><span class="s">"zz"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="7466031054-3">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7466031054-4">{</span><span class="nc">Cldr.InvalidLanguageError</span><span class="p">,</span><span class="w"> </span><span class="s">"The language </span><span class="se">\"</span><span class="s">zz</span><span class="se">\"</span><span class="s"> is invalid"</span><span class="p" data-group-id="7466031054-4">}</span><span class="p" data-group-id="7466031054-3">}</span></code></pre>
|
</span><span class="p" data-group-id="3049097437-3">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3049097437-4">{</span><span class="nc">Cldr.InvalidLanguageError</span><span class="p">,</span><span class="w"> </span><span class="s">"The language </span><span class="se">\"</span><span class="s">zz</span><span class="se">\"</span><span class="s"> is invalid"</span><span class="p" data-group-id="3049097437-4">}</span><span class="p" data-group-id="3049097437-3">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="number_system_names_for!/1">
|
<section class="detail" id="number_system_names_for!/1">
|
||||||
@ -509,13 +509,13 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.LanguageTag.html"><code cla
|
|||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_systems_for</span><span class="w"> </span><span class="s">"en"</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_systems_for</span><span class="w"> </span><span class="s">"en"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1701971761-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1701971761-2">%{</span><span class="ss">default</span><span class="p">:</span><span class="w"> </span><span class="ss">:latn</span><span class="p">,</span><span class="w"> </span><span class="ss">native</span><span class="p">:</span><span class="w"> </span><span class="ss">:latn</span><span class="p" data-group-id="1701971761-2">}</span><span class="p" data-group-id="1701971761-1">}</span><span class="w">
|
</span><span class="p" data-group-id="4534370529-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4534370529-2">%{</span><span class="ss">default</span><span class="p">:</span><span class="w"> </span><span class="ss">:latn</span><span class="p">,</span><span class="w"> </span><span class="ss">native</span><span class="p">:</span><span class="w"> </span><span class="ss">:latn</span><span class="p" data-group-id="4534370529-2">}</span><span class="p" data-group-id="4534370529-1">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_systems_for</span><span class="w"> </span><span class="s">"th"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_systems_for</span><span class="w"> </span><span class="s">"th"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1701971761-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1701971761-4">%{</span><span class="ss">default</span><span class="p">:</span><span class="w"> </span><span class="ss">:latn</span><span class="p">,</span><span class="w"> </span><span class="ss">native</span><span class="p">:</span><span class="w"> </span><span class="ss">:thai</span><span class="p" data-group-id="1701971761-4">}</span><span class="p" data-group-id="1701971761-3">}</span><span class="w">
|
</span><span class="p" data-group-id="4534370529-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4534370529-4">%{</span><span class="ss">default</span><span class="p">:</span><span class="w"> </span><span class="ss">:latn</span><span class="p">,</span><span class="w"> </span><span class="ss">native</span><span class="p">:</span><span class="w"> </span><span class="ss">:thai</span><span class="p" data-group-id="4534370529-4">}</span><span class="p" data-group-id="4534370529-3">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_systems_for</span><span class="w"> </span><span class="s">"zz"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">number_systems_for</span><span class="w"> </span><span class="s">"zz"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1701971761-5">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1701971761-6">{</span><span class="nc">Cldr.InvalidLanguageError</span><span class="p">,</span><span class="w"> </span><span class="s">"The language </span><span class="se">\"</span><span class="s">zz</span><span class="se">\"</span><span class="s"> is invalid"</span><span class="p" data-group-id="1701971761-6">}</span><span class="p" data-group-id="1701971761-5">}</span></code></pre>
|
</span><span class="p" data-group-id="4534370529-5">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4534370529-6">{</span><span class="nc">Cldr.InvalidLanguageError</span><span class="p">,</span><span class="w"> </span><span class="s">"The language </span><span class="se">\"</span><span class="s">zz</span><span class="se">\"</span><span class="s"> is invalid"</span><span class="p" data-group-id="4534370529-6">}</span><span class="p" data-group-id="4534370529-5">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="number_systems_for!/1">
|
<section class="detail" id="number_systems_for!/1">
|
||||||
@ -614,20 +614,20 @@ actual system name.</p><h2 id="system_name_from/2-examples" class="section-headi
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="n">ex</span><span class="o">></span><span class="w"> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">system_name_from</span><span class="p" data-group-id="1038638444-1">(</span><span class="ss">:default</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="1038638444-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="n">ex</span><span class="o">></span><span class="w"> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">system_name_from</span><span class="p" data-group-id="3945664713-1">(</span><span class="ss">:default</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="3945664713-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1038638444-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="p" data-group-id="1038638444-2">}</span><span class="w">
|
</span><span class="p" data-group-id="3945664713-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="p" data-group-id="3945664713-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">system_name_from</span><span class="p" data-group-id="1038638444-3">(</span><span class="s">"latn"</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="1038638444-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">system_name_from</span><span class="p" data-group-id="3945664713-3">(</span><span class="s">"latn"</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="3945664713-3">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1038638444-4">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="p" data-group-id="1038638444-4">}</span><span class="w">
|
</span><span class="p" data-group-id="3945664713-4">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="p" data-group-id="3945664713-4">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">system_name_from</span><span class="p" data-group-id="1038638444-5">(</span><span class="ss">:native</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="1038638444-5">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">system_name_from</span><span class="p" data-group-id="3945664713-5">(</span><span class="ss">:native</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="3945664713-5">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1038638444-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="p" data-group-id="1038638444-6">}</span><span class="w">
|
</span><span class="p" data-group-id="3945664713-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="p" data-group-id="3945664713-6">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">system_name_from</span><span class="p" data-group-id="1038638444-7">(</span><span class="ss">:nope</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="1038638444-7">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">system_name_from</span><span class="p" data-group-id="3945664713-7">(</span><span class="ss">:nope</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="3945664713-7">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1038638444-8">{</span><span class="w">
|
</span><span class="p" data-group-id="3945664713-8">{</span><span class="w">
|
||||||
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1038638444-9">{</span><span class="nc">Cldr.UnknownNumberSystemError</span><span class="p">,</span><span class="w"> </span><span class="s">"The number system :nope is unknown"</span><span class="p" data-group-id="1038638444-9">}</span><span class="w">
|
</span><span class="p" data-group-id="3945664713-9">{</span><span class="nc">Cldr.UnknownNumberSystemError</span><span class="p">,</span><span class="w"> </span><span class="s">"The number system :nope is unknown"</span><span class="p" data-group-id="3945664713-9">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1038638444-8">}</span></code></pre><p>Note that return value is not guaranteed to be a valid
|
</span><span class="p" data-group-id="3945664713-8">}</span></code></pre><p>Note that return value is not guaranteed to be a valid
|
||||||
number system for the given locale as demonstrated in the third example.</p>
|
number system for the given locale as demonstrated in the third example.</p>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -674,16 +674,16 @@ is recommended.</p></li></ul><h2 id="to_system/2-examples" class="section-headin
|
|||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">to_system</span><span class="w"> </span><span class="mi">123456</span><span class="p">,</span><span class="w"> </span><span class="ss">:hebr</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">to_system</span><span class="w"> </span><span class="mi">123456</span><span class="p">,</span><span class="w"> </span><span class="ss">:hebr</span><span class="w">
|
||||||
</span><span class="p" data-group-id="7920521943-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"קכ״ג׳תנ״ו"</span><span class="p" data-group-id="7920521943-1">}</span><span class="w">
|
</span><span class="p" data-group-id="2174510691-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"קכ״ג׳תנ״ו"</span><span class="p" data-group-id="2174510691-1">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">to_system</span><span class="w"> </span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">:hans</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">to_system</span><span class="w"> </span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">:hans</span><span class="w">
|
||||||
</span><span class="p" data-group-id="7920521943-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"一百二十三"</span><span class="p" data-group-id="7920521943-2">}</span><span class="w">
|
</span><span class="p" data-group-id="2174510691-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"一百二十三"</span><span class="p" data-group-id="2174510691-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">to_system</span><span class="w"> </span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">:hant</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">to_system</span><span class="w"> </span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">:hant</span><span class="w">
|
||||||
</span><span class="p" data-group-id="7920521943-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"一百二十三"</span><span class="p" data-group-id="7920521943-3">}</span><span class="w">
|
</span><span class="p" data-group-id="2174510691-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"一百二十三"</span><span class="p" data-group-id="2174510691-3">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">to_system</span><span class="w"> </span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">:hansfin</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.System</span><span class="o">.</span><span class="n">to_system</span><span class="w"> </span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">:hansfin</span><span class="w">
|
||||||
</span><span class="p" data-group-id="7920521943-4">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"壹佰贰拾叁"</span><span class="p" data-group-id="7920521943-4">}</span></code></pre>
|
</span><span class="p" data-group-id="2174510691-4">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"壹佰贰拾叁"</span><span class="p" data-group-id="2174510691-4">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="to_system!/2">
|
<section class="detail" id="to_system!/2">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -162,12 +162,12 @@ digits between number systems. For example from :arabic to :latn. Since genera
|
|||||||
transliteration map is slow, pairs of transliterations can be configured so that the
|
transliteration map is slow, pairs of transliterations can be configured so that the
|
||||||
transliteration map is created at compile time and therefore speeding up transliteration at
|
transliteration map is created at compile time and therefore speeding up transliteration at
|
||||||
run time.</p><p>To configure these transliteration pairs, add the to the <code class="inline">use Cldr</code> configuration
|
run time.</p><p>To configure these transliteration pairs, add the to the <code class="inline">use Cldr</code> configuration
|
||||||
in a backend module:</p><pre><code class="makeup elixir" translate="no"><span class="kd">defmodule</span><span class="w"> </span><span class="nc">MyApp.Cldr</span><span class="w"> </span><span class="k" data-group-id="7330259235-1">do</span><span class="w">
|
in a backend module:</p><pre><code class="makeup elixir" translate="no"><span class="kd">defmodule</span><span class="w"> </span><span class="nc">MyApp.Cldr</span><span class="w"> </span><span class="k" data-group-id="7888815848-1">do</span><span class="w">
|
||||||
</span><span class="kn">use</span><span class="w"> </span><span class="nc">Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="kn">use</span><span class="w"> </span><span class="nc">Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7330259235-2">[</span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="s">"fr"</span><span class="p">,</span><span class="w"> </span><span class="s">"th"</span><span class="p" data-group-id="7330259235-2">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7888815848-2">[</span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="s">"fr"</span><span class="p">,</span><span class="w"> </span><span class="s">"th"</span><span class="p" data-group-id="7888815848-2">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">default_locale</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">default_locale</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">precompile_transliterations</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7330259235-3">[</span><span class="p" data-group-id="7330259235-4">{</span><span class="ss">:latn</span><span class="p">,</span><span class="w"> </span><span class="ss">:thai</span><span class="p" data-group-id="7330259235-4">}</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7330259235-5">{</span><span class="ss">:arab</span><span class="p">,</span><span class="w"> </span><span class="ss">:thai</span><span class="p" data-group-id="7330259235-5">}</span><span class="p" data-group-id="7330259235-3">]</span><span class="w">
|
</span><span class="ss">precompile_transliterations</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7888815848-3">[</span><span class="p" data-group-id="7888815848-4">{</span><span class="ss">:latn</span><span class="p">,</span><span class="w"> </span><span class="ss">:thai</span><span class="p" data-group-id="7888815848-4">}</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7888815848-5">{</span><span class="ss">:arab</span><span class="p">,</span><span class="w"> </span><span class="ss">:thai</span><span class="p" data-group-id="7888815848-5">}</span><span class="p" data-group-id="7888815848-3">]</span><span class="w">
|
||||||
</span><span class="k" data-group-id="7330259235-1">end</span></code></pre><p>Where each tuple in the list configures one transliteration map. In this example, two maps are
|
</span><span class="k" data-group-id="7888815848-1">end</span></code></pre><p>Where each tuple in the list configures one transliteration map. In this example, two maps are
|
||||||
configured: from <code class="inline">:latn</code> to <code class="inline">:thai</code> and from <code class="inline">:arab</code> to <code class="inline">:thai</code>.</p><p>A list of configurable number systems is returned by <a href="https://hexdocs.pm/ex_cldr_numbers/2.33.1/Cldr.Number.System.html#numeric_systems/0"><code class="inline">Cldr.Number.System.numeric_systems/0</code></a>.</p><p>If a transliteration is requested between two number pairs that have not been configured for
|
configured: from <code class="inline">:latn</code> to <code class="inline">:thai</code> and from <code class="inline">:arab</code> to <code class="inline">:thai</code>.</p><p>A list of configurable number systems is returned by <a href="https://hexdocs.pm/ex_cldr_numbers/2.33.1/Cldr.Number.System.html#numeric_systems/0"><code class="inline">Cldr.Number.System.numeric_systems/0</code></a>.</p><p>If a transliteration is requested between two number pairs that have not been configured for
|
||||||
precompilation, a warning is logged.</p>
|
precompilation, a warning is logged.</p>
|
||||||
</section>
|
</section>
|
||||||
@ -281,22 +281,22 @@ and <a href="Plausible.Cldr.Number.System.html#number_systems_for/1"><code class
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Transliterate</span><span class="o">.</span><span class="n">transliterate</span><span class="p" data-group-id="6201009745-1">(</span><span class="s">"123556"</span><span class="p" data-group-id="6201009745-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Transliterate</span><span class="o">.</span><span class="n">transliterate</span><span class="p" data-group-id="7670029392-1">(</span><span class="s">"123556"</span><span class="p" data-group-id="7670029392-1">)</span><span class="w">
|
||||||
</span><span class="s">"123556"</span><span class="w">
|
</span><span class="s">"123556"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Transliterate</span><span class="o">.</span><span class="n">transliterate</span><span class="p" data-group-id="6201009745-2">(</span><span class="s">"123,556.000"</span><span class="p">,</span><span class="w"> </span><span class="s">"fr"</span><span class="p">,</span><span class="w"> </span><span class="ss">:default</span><span class="p" data-group-id="6201009745-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Transliterate</span><span class="o">.</span><span class="n">transliterate</span><span class="p" data-group-id="7670029392-2">(</span><span class="s">"123,556.000"</span><span class="p">,</span><span class="w"> </span><span class="s">"fr"</span><span class="p">,</span><span class="w"> </span><span class="ss">:default</span><span class="p" data-group-id="7670029392-2">)</span><span class="w">
|
||||||
</span><span class="s">"123 556,000"</span><span class="w">
|
</span><span class="s">"123 556,000"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Transliterate</span><span class="o">.</span><span class="n">transliterate</span><span class="p" data-group-id="6201009745-3">(</span><span class="s">"123556"</span><span class="p">,</span><span class="w"> </span><span class="s">"th"</span><span class="p">,</span><span class="w"> </span><span class="ss">:default</span><span class="p" data-group-id="6201009745-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Transliterate</span><span class="o">.</span><span class="n">transliterate</span><span class="p" data-group-id="7670029392-3">(</span><span class="s">"123556"</span><span class="p">,</span><span class="w"> </span><span class="s">"th"</span><span class="p">,</span><span class="w"> </span><span class="ss">:default</span><span class="p" data-group-id="7670029392-3">)</span><span class="w">
|
||||||
</span><span class="s">"123556"</span><span class="w">
|
</span><span class="s">"123556"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Transliterate</span><span class="o">.</span><span class="n">transliterate</span><span class="p" data-group-id="6201009745-4">(</span><span class="s">"123556"</span><span class="p">,</span><span class="w"> </span><span class="s">"th"</span><span class="p">,</span><span class="w"> </span><span class="s">"thai"</span><span class="p" data-group-id="6201009745-4">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Transliterate</span><span class="o">.</span><span class="n">transliterate</span><span class="p" data-group-id="7670029392-4">(</span><span class="s">"123556"</span><span class="p">,</span><span class="w"> </span><span class="s">"th"</span><span class="p">,</span><span class="w"> </span><span class="s">"thai"</span><span class="p" data-group-id="7670029392-4">)</span><span class="w">
|
||||||
</span><span class="s">"๑๒๓๕๕๖"</span><span class="w">
|
</span><span class="s">"๑๒๓๕๕๖"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Transliterate</span><span class="o">.</span><span class="n">transliterate</span><span class="p" data-group-id="6201009745-5">(</span><span class="s">"123556"</span><span class="p">,</span><span class="w"> </span><span class="s">"th"</span><span class="p">,</span><span class="w"> </span><span class="ss">:native</span><span class="p" data-group-id="6201009745-5">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Transliterate</span><span class="o">.</span><span class="n">transliterate</span><span class="p" data-group-id="7670029392-5">(</span><span class="s">"123556"</span><span class="p">,</span><span class="w"> </span><span class="s">"th"</span><span class="p">,</span><span class="w"> </span><span class="ss">:native</span><span class="p" data-group-id="7670029392-5">)</span><span class="w">
|
||||||
</span><span class="s">"๑๒๓๕๕๖"</span><span class="w">
|
</span><span class="s">"๑๒๓๕๕๖"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Transliterate</span><span class="o">.</span><span class="n">transliterate</span><span class="p" data-group-id="6201009745-6">(</span><span class="s">"Some number is: 123556"</span><span class="p">,</span><span class="w"> </span><span class="s">"th"</span><span class="p">,</span><span class="w"> </span><span class="s">"thai"</span><span class="p" data-group-id="6201009745-6">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number.Transliterate</span><span class="o">.</span><span class="n">transliterate</span><span class="p" data-group-id="7670029392-6">(</span><span class="s">"Some number is: 123556"</span><span class="p">,</span><span class="w"> </span><span class="s">"th"</span><span class="p">,</span><span class="w"> </span><span class="s">"thai"</span><span class="p" data-group-id="7670029392-6">)</span><span class="w">
|
||||||
</span><span class="s">"Some number is: ๑๒๓๕๕๖"</span></code></pre>
|
</span><span class="s">"Some number is: ๑๒๓๕๕๖"</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -441,19 +441,19 @@ using the Elixir standard library functions.</p><h2 id="parse/2-examples" class=
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="3993905677-1">(</span><span class="s">"+1.000,34"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"de"</span><span class="p" data-group-id="3993905677-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="0763339749-1">(</span><span class="s">"+1.000,34"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"de"</span><span class="p" data-group-id="0763339749-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3993905677-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="mf">1000.34</span><span class="p" data-group-id="3993905677-2">}</span><span class="w">
|
</span><span class="p" data-group-id="0763339749-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="mf">1000.34</span><span class="p" data-group-id="0763339749-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="3993905677-3">(</span><span class="s">"-1_000_000.34"</span><span class="p" data-group-id="3993905677-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="0763339749-3">(</span><span class="s">"-1_000_000.34"</span><span class="p" data-group-id="0763339749-3">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3993905677-4">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mf">1000000.34</span><span class="p" data-group-id="3993905677-4">}</span><span class="w">
|
</span><span class="p" data-group-id="0763339749-4">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mf">1000000.34</span><span class="p" data-group-id="0763339749-4">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="3993905677-5">(</span><span class="s">"1.000"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"de"</span><span class="p">,</span><span class="w"> </span><span class="ss">number</span><span class="p">:</span><span class="w"> </span><span class="ss">:integer</span><span class="p" data-group-id="3993905677-5">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="0763339749-5">(</span><span class="s">"1.000"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"de"</span><span class="p">,</span><span class="w"> </span><span class="ss">number</span><span class="p">:</span><span class="w"> </span><span class="ss">:integer</span><span class="p" data-group-id="0763339749-5">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3993905677-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="mi">1000</span><span class="p" data-group-id="3993905677-6">}</span><span class="w">
|
</span><span class="p" data-group-id="0763339749-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="mi">1000</span><span class="p" data-group-id="0763339749-6">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="3993905677-7">(</span><span class="s">"+1.000,34"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"de"</span><span class="p">,</span><span class="w"> </span><span class="ss">number</span><span class="p">:</span><span class="w"> </span><span class="ss">:integer</span><span class="p" data-group-id="3993905677-7">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">parse</span><span class="p" data-group-id="0763339749-7">(</span><span class="s">"+1.000,34"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"de"</span><span class="p">,</span><span class="w"> </span><span class="ss">number</span><span class="p">:</span><span class="w"> </span><span class="ss">:integer</span><span class="p" data-group-id="0763339749-7">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3993905677-8">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="0763339749-8">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3993905677-9">{</span><span class="nc">Cldr.Number.ParseError</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="0763339749-9">{</span><span class="nc">Cldr.Number.ParseError</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"The string </span><span class="se">\"</span><span class="s">+1.000,34</span><span class="se">\"</span><span class="s"> could not be parsed as a number"</span><span class="p" data-group-id="3993905677-9">}</span><span class="p" data-group-id="3993905677-8">}</span></code></pre>
|
</span><span class="s">"The string </span><span class="se">\"</span><span class="s">+1.000,34</span><span class="se">\"</span><span class="s"> could not be parsed as a number"</span><span class="p" data-group-id="0763339749-9">}</span><span class="p" data-group-id="0763339749-8">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="resolve_currencies/2">
|
<section class="detail" id="resolve_currencies/2">
|
||||||
@ -525,17 +525,17 @@ financial instruments.</p></li></ul><h2 id="resolve_currencies/2-examples" class
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="8262219832-1">(</span><span class="s">"100 US dollars"</span><span class="p" data-group-id="8262219832-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="0782237013-1">(</span><span class="s">"100 US dollars"</span><span class="p" data-group-id="0782237013-1">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currencies</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currencies</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8262219832-2">[</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p" data-group-id="8262219832-2">]</span><span class="w">
|
</span><span class="p" data-group-id="0782237013-2">[</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p" data-group-id="0782237013-2">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="8262219832-3">(</span><span class="s">"100 eurosports"</span><span class="p" data-group-id="8262219832-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="0782237013-3">(</span><span class="s">"100 eurosports"</span><span class="p" data-group-id="0782237013-3">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currencies</span><span class="p" data-group-id="8262219832-4">(</span><span class="ss">fuzzy</span><span class="p">:</span><span class="w"> </span><span class="mf">0.75</span><span class="p" data-group-id="8262219832-4">)</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currencies</span><span class="p" data-group-id="0782237013-4">(</span><span class="ss">fuzzy</span><span class="p">:</span><span class="w"> </span><span class="mf">0.75</span><span class="p" data-group-id="0782237013-4">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8262219832-5">[</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="ss">:EUR</span><span class="p" data-group-id="8262219832-5">]</span><span class="w">
|
</span><span class="p" data-group-id="0782237013-5">[</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="ss">:EUR</span><span class="p" data-group-id="0782237013-5">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="8262219832-6">(</span><span class="s">"100 dollars des États-Unis"</span><span class="p" data-group-id="8262219832-6">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="0782237013-6">(</span><span class="s">"100 dollars des États-Unis"</span><span class="p" data-group-id="0782237013-6">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currencies</span><span class="p" data-group-id="8262219832-7">(</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="p" data-group-id="8262219832-7">)</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currencies</span><span class="p" data-group-id="0782237013-7">(</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="p" data-group-id="0782237013-7">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8262219832-8">[</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p" data-group-id="8262219832-8">]</span></code></pre>
|
</span><span class="p" data-group-id="0782237013-8">[</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="ss">:USD</span><span class="p" data-group-id="0782237013-8">]</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="resolve_currency/2">
|
<section class="detail" id="resolve_currency/2">
|
||||||
@ -612,19 +612,19 @@ financial instruments.</p></li></ul><h2 id="resolve_currency/2-examples" class="
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currency</span><span class="p" data-group-id="7591951353-1">(</span><span class="s">"US dollars"</span><span class="p" data-group-id="7591951353-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currency</span><span class="p" data-group-id="6726978419-1">(</span><span class="s">"US dollars"</span><span class="p" data-group-id="6726978419-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="7591951353-2">[</span><span class="ss">:USD</span><span class="p" data-group-id="7591951353-2">]</span><span class="w">
|
</span><span class="p" data-group-id="6726978419-2">[</span><span class="ss">:USD</span><span class="p" data-group-id="6726978419-2">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currency</span><span class="p" data-group-id="7591951353-3">(</span><span class="s">"100 eurosports"</span><span class="p">,</span><span class="w"> </span><span class="ss">fuzzy</span><span class="p">:</span><span class="w"> </span><span class="mf">0.75</span><span class="p" data-group-id="7591951353-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currency</span><span class="p" data-group-id="6726978419-3">(</span><span class="s">"100 eurosports"</span><span class="p">,</span><span class="w"> </span><span class="ss">fuzzy</span><span class="p">:</span><span class="w"> </span><span class="mf">0.75</span><span class="p" data-group-id="6726978419-3">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="7591951353-4">[</span><span class="ss">:EUR</span><span class="p" data-group-id="7591951353-4">]</span><span class="w">
|
</span><span class="p" data-group-id="6726978419-4">[</span><span class="ss">:EUR</span><span class="p" data-group-id="6726978419-4">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currency</span><span class="p" data-group-id="7591951353-5">(</span><span class="s">"dollars des États-Unis"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="p" data-group-id="7591951353-5">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currency</span><span class="p" data-group-id="6726978419-5">(</span><span class="s">"dollars des États-Unis"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="p" data-group-id="6726978419-5">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="7591951353-6">[</span><span class="ss">:USD</span><span class="p" data-group-id="7591951353-6">]</span><span class="w">
|
</span><span class="p" data-group-id="6726978419-6">[</span><span class="ss">:USD</span><span class="p" data-group-id="6726978419-6">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currency</span><span class="p" data-group-id="7591951353-7">(</span><span class="s">"not a known currency"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="p" data-group-id="7591951353-7">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_currency</span><span class="p" data-group-id="6726978419-7">(</span><span class="s">"not a known currency"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="p" data-group-id="6726978419-7">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="7591951353-8">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="6726978419-8">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="7591951353-9">{</span><span class="nc">Cldr.UnknownCurrencyError</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="6726978419-9">{</span><span class="nc">Cldr.UnknownCurrencyError</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"The currency </span><span class="se">\"</span><span class="s">not a known currency</span><span class="se">\"</span><span class="s"> is unknown or not supported"</span><span class="p" data-group-id="7591951353-9">}</span><span class="p" data-group-id="7591951353-8">}</span></code></pre>
|
</span><span class="s">"The currency </span><span class="se">\"</span><span class="s">not a known currency</span><span class="se">\"</span><span class="s"> is unknown or not supported"</span><span class="p" data-group-id="6726978419-9">}</span><span class="p" data-group-id="6726978419-8">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="resolve_per/2">
|
<section class="detail" id="resolve_per/2">
|
||||||
@ -688,13 +688,13 @@ The default is <code class="inline">options[:backend].get_locale()</code></li></
|
|||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_per</span><span class="w"> </span><span class="s">"11%"</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_per</span><span class="w"> </span><span class="s">"11%"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="9810942012-1">[</span><span class="s">"11"</span><span class="p">,</span><span class="w"> </span><span class="ss">:percent</span><span class="p" data-group-id="9810942012-1">]</span><span class="w">
|
</span><span class="p" data-group-id="2040453685-1">[</span><span class="s">"11"</span><span class="p">,</span><span class="w"> </span><span class="ss">:percent</span><span class="p" data-group-id="2040453685-1">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_per</span><span class="w"> </span><span class="s">"% of linguists"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_per</span><span class="w"> </span><span class="s">"% of linguists"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="9810942012-2">[</span><span class="ss">:percent</span><span class="p">,</span><span class="w"> </span><span class="s">" of linguists"</span><span class="p" data-group-id="9810942012-2">]</span><span class="w">
|
</span><span class="p" data-group-id="2040453685-2">[</span><span class="ss">:percent</span><span class="p">,</span><span class="w"> </span><span class="s">" of linguists"</span><span class="p" data-group-id="2040453685-2">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_per</span><span class="w"> </span><span class="s">"% of linguists %"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_per</span><span class="w"> </span><span class="s">"% of linguists %"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="9810942012-3">[</span><span class="ss">:percent</span><span class="p">,</span><span class="w"> </span><span class="s">" of linguists "</span><span class="p">,</span><span class="w"> </span><span class="ss">:percent</span><span class="p" data-group-id="9810942012-3">]</span></code></pre>
|
</span><span class="p" data-group-id="2040453685-3">[</span><span class="ss">:percent</span><span class="p">,</span><span class="w"> </span><span class="s">" of linguists "</span><span class="p">,</span><span class="w"> </span><span class="ss">:percent</span><span class="p" data-group-id="2040453685-3">]</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="resolve_pers/2">
|
<section class="detail" id="resolve_pers/2">
|
||||||
@ -751,9 +751,9 @@ The default is <code class="inline">options[:backend].get_locale()</code></li></
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="6325305584-1">(</span><span class="s">"100%"</span><span class="p" data-group-id="6325305584-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="3222489430-1">(</span><span class="s">"100%"</span><span class="p" data-group-id="3222489430-1">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_pers</span><span class="p" data-group-id="6325305584-2">(</span><span class="p" data-group-id="6325305584-2">)</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">resolve_pers</span><span class="p" data-group-id="3222489430-2">(</span><span class="p" data-group-id="3222489430-2">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6325305584-3">[</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="ss">:percent</span><span class="p" data-group-id="6325305584-3">]</span></code></pre>
|
</span><span class="p" data-group-id="3222489430-3">[</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="ss">:percent</span><span class="p" data-group-id="3222489430-3">]</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="scan/2">
|
<section class="detail" id="scan/2">
|
||||||
@ -813,20 +813,20 @@ and any options provided are passed to that function.</p><h2 id="scan/2-examples
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="2366589343-1">(</span><span class="s">"£1_000_000.34"</span><span class="p" data-group-id="2366589343-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="2732770786-1">(</span><span class="s">"£1_000_000.34"</span><span class="p" data-group-id="2732770786-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="2366589343-2">[</span><span class="s">"£"</span><span class="p">,</span><span class="w"> </span><span class="mf">1000000.34</span><span class="p" data-group-id="2366589343-2">]</span><span class="w">
|
</span><span class="p" data-group-id="2732770786-2">[</span><span class="s">"£"</span><span class="p">,</span><span class="w"> </span><span class="mf">1000000.34</span><span class="p" data-group-id="2732770786-2">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="2366589343-3">(</span><span class="s">"I want £1_000_000 dollars"</span><span class="p" data-group-id="2366589343-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="2732770786-3">(</span><span class="s">"I want £1_000_000 dollars"</span><span class="p" data-group-id="2732770786-3">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="2366589343-4">[</span><span class="s">"I want £"</span><span class="p">,</span><span class="w"> </span><span class="mi">1000000</span><span class="p">,</span><span class="w"> </span><span class="s">" dollars"</span><span class="p" data-group-id="2366589343-4">]</span><span class="w">
|
</span><span class="p" data-group-id="2732770786-4">[</span><span class="s">"I want £"</span><span class="p">,</span><span class="w"> </span><span class="mi">1000000</span><span class="p">,</span><span class="w"> </span><span class="s">" dollars"</span><span class="p" data-group-id="2732770786-4">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="2366589343-5">(</span><span class="s">"The prize is 23"</span><span class="p" data-group-id="2366589343-5">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="2732770786-5">(</span><span class="s">"The prize is 23"</span><span class="p" data-group-id="2732770786-5">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="2366589343-6">[</span><span class="s">"The prize is "</span><span class="p">,</span><span class="w"> </span><span class="mi">23</span><span class="p" data-group-id="2366589343-6">]</span><span class="w">
|
</span><span class="p" data-group-id="2732770786-6">[</span><span class="s">"The prize is "</span><span class="p">,</span><span class="w"> </span><span class="mi">23</span><span class="p" data-group-id="2732770786-6">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="2366589343-7">(</span><span class="s">"The lottery number is 23 for the next draw"</span><span class="p" data-group-id="2366589343-7">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="2732770786-7">(</span><span class="s">"The lottery number is 23 for the next draw"</span><span class="p" data-group-id="2732770786-7">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="2366589343-8">[</span><span class="s">"The lottery number is "</span><span class="p">,</span><span class="w"> </span><span class="mi">23</span><span class="p">,</span><span class="w"> </span><span class="s">" for the next draw"</span><span class="p" data-group-id="2366589343-8">]</span><span class="w">
|
</span><span class="p" data-group-id="2732770786-8">[</span><span class="s">"The lottery number is "</span><span class="p">,</span><span class="w"> </span><span class="mi">23</span><span class="p">,</span><span class="w"> </span><span class="s">" for the next draw"</span><span class="p" data-group-id="2732770786-8">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="2366589343-9">(</span><span class="s">"The loss is -1.000 euros"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"de"</span><span class="p">,</span><span class="w"> </span><span class="ss">number</span><span class="p">:</span><span class="w"> </span><span class="ss">:integer</span><span class="p" data-group-id="2366589343-9">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">scan</span><span class="p" data-group-id="2732770786-9">(</span><span class="s">"The loss is -1.000 euros"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"de"</span><span class="p">,</span><span class="w"> </span><span class="ss">number</span><span class="p">:</span><span class="w"> </span><span class="ss">:integer</span><span class="p" data-group-id="2732770786-9">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="2366589343-10">[</span><span class="s">"The loss is "</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mi">1000</span><span class="p">,</span><span class="w"> </span><span class="s">" euros"</span><span class="p" data-group-id="2366589343-10">]</span></code></pre>
|
</span><span class="p" data-group-id="2732770786-10">[</span><span class="s">"The loss is "</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mi">1000</span><span class="p">,</span><span class="w"> </span><span class="s">" euros"</span><span class="p" data-group-id="2732770786-10">]</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="to_approx_string/2">
|
<section class="detail" id="to_approx_string/2">
|
||||||
@ -873,7 +873,7 @@ options.</p></li></ul><h2 id="to_approx_string/2-example" class="section-heading
|
|||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_approx_string</span><span class="w"> </span><span class="mi">1234</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_approx_string</span><span class="w"> </span><span class="mi">1234</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1565150086-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"~1,234"</span><span class="p" data-group-id="1565150086-1">}</span></code></pre>
|
</span><span class="p" data-group-id="5698623772-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"~1,234"</span><span class="p" data-group-id="5698623772-1">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="to_at_least_string/2">
|
<section class="detail" id="to_at_least_string/2">
|
||||||
@ -920,7 +920,7 @@ options.</p></li></ul><h2 id="to_at_least_string/2-example" class="section-headi
|
|||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_at_least_string</span><span class="w"> </span><span class="mi">1234</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_at_least_string</span><span class="w"> </span><span class="mi">1234</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1029401834-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1,234+"</span><span class="p" data-group-id="1029401834-1">}</span></code></pre>
|
</span><span class="p" data-group-id="0335043493-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1,234+"</span><span class="p" data-group-id="0335043493-1">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="to_at_most_string/2">
|
<section class="detail" id="to_at_most_string/2">
|
||||||
@ -967,7 +967,7 @@ options.</p></li></ul><h2 id="to_at_most_string/2-example" class="section-headin
|
|||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_at_most_string</span><span class="w"> </span><span class="mi">1234</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_at_most_string</span><span class="w"> </span><span class="mi">1234</span><span class="w">
|
||||||
</span><span class="p" data-group-id="2371976453-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"≤1,234"</span><span class="p" data-group-id="2371976453-1">}</span></code></pre>
|
</span><span class="p" data-group-id="1355136077-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"≤1,234"</span><span class="p" data-group-id="1355136077-1">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="to_range_string/2">
|
<section class="detail" id="to_range_string/2">
|
||||||
@ -1014,7 +1014,7 @@ options.</p></li></ul><h2 id="to_range_string/2-example" class="section-heading"
|
|||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_range_string</span><span class="w"> </span><span class="mi">1234</span><span class="o">..</span><span class="mi">5678</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_range_string</span><span class="w"> </span><span class="mi">1234</span><span class="o">..</span><span class="mi">5678</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4279107931-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1,234–5,678"</span><span class="p" data-group-id="4279107931-1">}</span></code></pre>
|
</span><span class="p" data-group-id="0299123579-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1,234–5,678"</span><span class="p" data-group-id="0299123579-1">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="to_string/2">
|
<section class="detail" id="to_string/2">
|
||||||
@ -1133,21 +1133,21 @@ extensions.</p><h2 id="to_string/2-wrapping-format-elements" class="section-head
|
|||||||
</h2>
|
</h2>
|
||||||
<p>Wrapping elements is particularly useful when formatting a number with a
|
<p>Wrapping elements is particularly useful when formatting a number with a
|
||||||
currency symbol and the requirement is to have different HTML formatting
|
currency symbol and the requirement is to have different HTML formatting
|
||||||
applied to the symbol than the number. For example:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="6175448120-1">(</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:currency</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="ss">:USD</span><span class="p">,</span><span class="w"> </span><span class="ss">wrapper</span><span class="p">:</span><span class="w"> </span><span class="k" data-group-id="6175448120-2">fn</span><span class="w">
|
applied to the symbol than the number. For example:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="8670307584-1">(</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:currency</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="ss">:USD</span><span class="p">,</span><span class="w"> </span><span class="ss">wrapper</span><span class="p">:</span><span class="w"> </span><span class="k" data-group-id="8670307584-2">fn</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">:currency_symbol</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="s">"<span class=</span><span class="se">\"</span><span class="s">symbol</span><span class="se">\"</span><span class="s">>"</span><span class="w"> </span><span class="o"><></span><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o"><></span><span class="w"> </span><span class="s">"</span>"</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">:currency_symbol</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="s">"<span class=</span><span class="se">\"</span><span class="s">symbol</span><span class="se">\"</span><span class="s">>"</span><span class="w"> </span><span class="o"><></span><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o"><></span><span class="w"> </span><span class="s">"</span>"</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">:number</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="s">"<span class=</span><span class="se">\"</span><span class="s">number</span><span class="se">\"</span><span class="s">>"</span><span class="w"> </span><span class="o"><></span><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o"><></span><span class="w"> </span><span class="s">"</span>"</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">:number</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="s">"<span class=</span><span class="se">\"</span><span class="s">number</span><span class="se">\"</span><span class="s">>"</span><span class="w"> </span><span class="o"><></span><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o"><></span><span class="w"> </span><span class="s">"</span>"</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">:currency_space</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="s">"<span>"</span><span class="w"> </span><span class="o"><></span><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o"><></span><span class="w"> </span><span class="s">"</span>"</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">:currency_space</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="s">"<span>"</span><span class="w"> </span><span class="o"><></span><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o"><></span><span class="w"> </span><span class="s">"</span>"</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="c">_other</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="n">string</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="c">_other</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="n">string</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="k" data-group-id="6175448120-2">end</span><span class="p" data-group-id="6175448120-1">)</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="k" data-group-id="8670307584-2">end</span><span class="p" data-group-id="8670307584-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6175448120-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"<span class=</span><span class="se">\"</span><span class="s">symbol</span><span class="se">\"</span><span class="s">>$</span><span class=</span><span class="se">\"</span><span class="s">number</span><span class="se">\"</span><span class="s">>100.00</span>"</span><span class="p" data-group-id="6175448120-3">}</span></code></pre><p>It is also possible and recommended to use the <a href="https://hexdocs.pm/phoenix_html/3.3.4/Phoenix.HTML.Tag.html#content_tag/3"><code class="inline">Phoenix.HTML.Tag.content_tag/3</code></a>
|
</span><span class="p" data-group-id="8670307584-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"<span class=</span><span class="se">\"</span><span class="s">symbol</span><span class="se">\"</span><span class="s">>$</span><span class=</span><span class="se">\"</span><span class="s">number</span><span class="se">\"</span><span class="s">>100.00</span>"</span><span class="p" data-group-id="8670307584-3">}</span></code></pre><p>It is also possible and recommended to use the <a href="https://hexdocs.pm/phoenix_html/3.3.4/Phoenix.HTML.Tag.html#content_tag/3"><code class="inline">Phoenix.HTML.Tag.content_tag/3</code></a>
|
||||||
function if wrapping HTML tags since these will ensure HTML entities are
|
function if wrapping HTML tags since these will ensure HTML entities are
|
||||||
correctly encoded. For example:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="6546465410-1">(</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:currency</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="ss">:USD</span><span class="p">,</span><span class="w"> </span><span class="ss">wrapper</span><span class="p">:</span><span class="w"> </span><span class="k" data-group-id="6546465410-2">fn</span><span class="w">
|
correctly encoded. For example:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="9092193590-1">(</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:currency</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="ss">:USD</span><span class="p">,</span><span class="w"> </span><span class="ss">wrapper</span><span class="p">:</span><span class="w"> </span><span class="k" data-group-id="9092193590-2">fn</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">:currency_symbol</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="nc">Phoenix.HTML.Tag</span><span class="o">.</span><span class="n">content_tag</span><span class="p" data-group-id="6546465410-3">(</span><span class="ss">:span</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">class</span><span class="p">:</span><span class="w"> </span><span class="s">"symbol"</span><span class="p" data-group-id="6546465410-3">)</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">:currency_symbol</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="nc">Phoenix.HTML.Tag</span><span class="o">.</span><span class="n">content_tag</span><span class="p" data-group-id="9092193590-3">(</span><span class="ss">:span</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">class</span><span class="p">:</span><span class="w"> </span><span class="s">"symbol"</span><span class="p" data-group-id="9092193590-3">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">:number</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="nc">Phoenix.HTML.Tag</span><span class="o">.</span><span class="n">content_tag</span><span class="p" data-group-id="6546465410-4">(</span><span class="ss">:span</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">class</span><span class="p">:</span><span class="w"> </span><span class="s">"number"</span><span class="p" data-group-id="6546465410-4">)</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">:number</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="nc">Phoenix.HTML.Tag</span><span class="o">.</span><span class="n">content_tag</span><span class="p" data-group-id="9092193590-4">(</span><span class="ss">:span</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">class</span><span class="p">:</span><span class="w"> </span><span class="s">"number"</span><span class="p" data-group-id="9092193590-4">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">:currency_space</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="nc">Phoenix.HTML.Tag</span><span class="o">.</span><span class="n">content_tag</span><span class="p" data-group-id="6546465410-5">(</span><span class="ss">:span</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p" data-group-id="6546465410-5">)</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="ss">:currency_space</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="nc">Phoenix.HTML.Tag</span><span class="o">.</span><span class="n">content_tag</span><span class="p" data-group-id="9092193590-5">(</span><span class="ss">:span</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p" data-group-id="9092193590-5">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="c">_other</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="n">string</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="c">_other</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="n">string</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="k" data-group-id="6546465410-2">end</span><span class="p" data-group-id="6546465410-1">)</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="k" data-group-id="9092193590-2">end</span><span class="p" data-group-id="9092193590-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6546465410-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"<span class=</span><span class="se">\"</span><span class="s">symbol</span><span class="se">\"</span><span class="s">>$</span><span class=</span><span class="se">\"</span><span class="s">number</span><span class="se">\"</span><span class="s">>100.00</span>"</span><span class="p" data-group-id="6546465410-6">}</span></code></pre><p>When formatting a number the format is parsed into format elements that might include
|
</span><span class="p" data-group-id="9092193590-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"<span class=</span><span class="se">\"</span><span class="s">symbol</span><span class="se">\"</span><span class="s">>$</span><span class=</span><span class="se">\"</span><span class="s">number</span><span class="se">\"</span><span class="s">>100.00</span>"</span><span class="p" data-group-id="9092193590-6">}</span></code></pre><p>When formatting a number the format is parsed into format elements that might include
|
||||||
a currency symbol, a literal string, inserted text between a currency symbol and the
|
a currency symbol, a literal string, inserted text between a currency symbol and the
|
||||||
currency amount, a percent sign, the number itself and several other elements. In
|
currency amount, a percent sign, the number itself and several other elements. In
|
||||||
some cases it is helpful to be apply specific formatting to each element.
|
some cases it is helpful to be apply specific formatting to each element.
|
||||||
@ -1168,80 +1168,80 @@ inserted in the final formatted number.</p><h2 id="to_string/2-returns" class="s
|
|||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"12,345"</span><span class="p" data-group-id="3430512917-1">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"12,345"</span><span class="p" data-group-id="4437155794-1">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"12 345"</span><span class="p" data-group-id="3430512917-2">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"12 345"</span><span class="p" data-group-id="4437155794-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mf">1345.32</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="ss">:EUR</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"es"</span><span class="p">,</span><span class="w"> </span><span class="ss">minimum_grouping_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mf">1345.32</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="ss">:EUR</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"es"</span><span class="p">,</span><span class="w"> </span><span class="ss">minimum_grouping_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1.345,32 €"</span><span class="p" data-group-id="3430512917-3">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1.345,32 €"</span><span class="p" data-group-id="4437155794-3">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mf">1345.32</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="ss">:EUR</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"es"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mf">1345.32</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="ss">:EUR</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"es"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-4">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1345,32 €"</span><span class="p" data-group-id="3430512917-4">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-4">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1345,32 €"</span><span class="p" data-group-id="4437155794-4">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"USD"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"fr"</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"USD"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-5">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"12 345,00 $US"</span><span class="p" data-group-id="3430512917-5">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-5">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"12 345,00 $US"</span><span class="p" data-group-id="4437155794-5">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="s">"#E0"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="s">"#E0"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1.2345E4"</span><span class="p" data-group-id="3430512917-6">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1.2345E4"</span><span class="p" data-group-id="4437155794-6">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:accounting</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:accounting</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-7">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"THB 12,345.00"</span><span class="p" data-group-id="3430512917-7">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-7">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"THB 12,345.00"</span><span class="p" data-group-id="4437155794-7">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="o">-</span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:accounting</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="o">-</span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:accounting</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-8">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"(THB 12,345.00)"</span><span class="p" data-group-id="3430512917-8">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-8">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"(THB 12,345.00)"</span><span class="p" data-group-id="4437155794-8">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:accounting</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="p">,</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:accounting</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"th"</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"th"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-9">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"฿12,345.00"</span><span class="p" data-group-id="3430512917-9">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-9">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"฿12,345.00"</span><span class="p" data-group-id="4437155794-9">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:accounting</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="p">,</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:accounting</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"THB"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"th"</span><span class="p">,</span><span class="w"> </span><span class="ss">number_system</span><span class="p">:</span><span class="w"> </span><span class="ss">:native</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"th"</span><span class="p">,</span><span class="w"> </span><span class="ss">number_system</span><span class="p">:</span><span class="w"> </span><span class="ss">:native</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-10">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"฿๑๒,๓๔๕.๐๐"</span><span class="p" data-group-id="3430512917-10">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-10">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"฿๑๒,๓๔๕.๐๐"</span><span class="p" data-group-id="4437155794-10">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mf">1244.30</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:long</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mf">1244.30</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:long</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-11">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1 thousand"</span><span class="p" data-group-id="3430512917-11">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-11">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1 thousand"</span><span class="p" data-group-id="4437155794-11">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mf">1244.30</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:long</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"USD"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mf">1244.30</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:long</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"USD"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-12">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1,244 US dollars"</span><span class="p" data-group-id="3430512917-12">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-12">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1,244 US dollars"</span><span class="p" data-group-id="4437155794-12">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mf">1244.30</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:short</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mf">1244.30</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:short</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-13">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1K"</span><span class="p" data-group-id="3430512917-13">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-13">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"1K"</span><span class="p" data-group-id="4437155794-13">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mf">1244.30</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:short</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"EUR"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mf">1244.30</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:short</span><span class="p">,</span><span class="w"> </span><span class="ss">currency</span><span class="p">:</span><span class="w"> </span><span class="s">"EUR"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-14">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"€1K"</span><span class="p" data-group-id="3430512917-14">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-14">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"€1K"</span><span class="p" data-group-id="4437155794-14">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">1234</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:spellout</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">1234</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:spellout</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-15">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"one thousand two hundred thirty-four"</span><span class="p" data-group-id="3430512917-15">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-15">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"one thousand two hundred thirty-four"</span><span class="p" data-group-id="4437155794-15">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">1234</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:spellout_verbose</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">1234</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:spellout_verbose</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-16">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"one thousand two hundred and thirty-four"</span><span class="p" data-group-id="3430512917-16">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-16">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"one thousand two hundred and thirty-four"</span><span class="p" data-group-id="4437155794-16">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">1989</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:spellout_year</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">1989</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:spellout_year</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-17">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"nineteen eighty-nine"</span><span class="p" data-group-id="3430512917-17">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-17">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"nineteen eighty-nine"</span><span class="p" data-group-id="4437155794-17">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:ordinal</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:ordinal</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-18">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"123rd"</span><span class="p" data-group-id="3430512917-18">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-18">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"123rd"</span><span class="p" data-group-id="4437155794-18">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:roman</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:roman</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-19">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"CXXIII"</span><span class="p" data-group-id="3430512917-19">}</span><span class="w">
|
</span><span class="p" data-group-id="4437155794-19">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"CXXIII"</span><span class="p" data-group-id="4437155794-19">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"th-u-nu-thai"</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="w"> </span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"th-u-nu-thai"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3430512917-20">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"๑๒๓"</span><span class="p" data-group-id="3430512917-20">}</span></code></pre><h2 id="to_string/2-errors" class="section-heading">
|
</span><span class="p" data-group-id="4437155794-20">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"๑๒๓"</span><span class="p" data-group-id="4437155794-20">}</span></code></pre><h2 id="to_string/2-errors" class="section-heading">
|
||||||
<a href="#to_string/2-errors" class="hover-link">
|
<a href="#to_string/2-errors" class="hover-link">
|
||||||
<i class="ri-link-m" aria-hidden="true"></i>
|
<i class="ri-link-m" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
<span class="text">Errors</span>
|
<span class="text">Errors</span>
|
||||||
</h2>
|
</h2>
|
||||||
<p>An error tuple <code class="inline">{:error, reason}</code> will be returned if an error is detected.
|
<p>An error tuple <code class="inline">{:error, reason}</code> will be returned if an error is detected.
|
||||||
The two most likely causes of an error return are:</p><ul><li>A format cannot be compiled. In this case the error tuple will look like:</li></ul><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="5158484924-1">(</span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="s">"0#"</span><span class="p" data-group-id="5158484924-1">)</span><span class="w">
|
The two most likely causes of an error return are:</p><ul><li>A format cannot be compiled. In this case the error tuple will look like:</li></ul><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="9059504337-1">(</span><span class="mi">12345</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="s">"0#"</span><span class="p" data-group-id="9059504337-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="5158484924-2">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5158484924-3">{</span><span class="nc">Cldr.FormatCompileError</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9059504337-2">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9059504337-3">{</span><span class="nc">Cldr.FormatCompileError</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"Decimal format compiler: syntax error before: </span><span class="se">\"</span><span class="s">#</span><span class="se">\"</span><span class="s">"</span><span class="p" data-group-id="5158484924-3">}</span><span class="p" data-group-id="5158484924-2">}</span></code></pre><ul><li>The format style requested is not defined for the <code class="inline">locale</code> and
|
</span><span class="s">"Decimal format compiler: syntax error before: </span><span class="se">\"</span><span class="s">#</span><span class="se">\"</span><span class="s">"</span><span class="p" data-group-id="9059504337-3">}</span><span class="p" data-group-id="9059504337-2">}</span></code></pre><ul><li>The format style requested is not defined for the <code class="inline">locale</code> and
|
||||||
<code class="inline">number_system</code>. This happens typically when the number system is
|
<code class="inline">number_system</code>. This happens typically when the number system is
|
||||||
<code class="inline">:algorithmic</code> rather than the more common <code class="inline">:numeric</code>. In this case the error
|
<code class="inline">:algorithmic</code> rather than the more common <code class="inline">:numeric</code>. In this case the error
|
||||||
return looks like:</li></ul><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="5346256180-1">(</span><span class="mi">1234</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"he"</span><span class="p">,</span><span class="w"> </span><span class="ss">number_system</span><span class="p">:</span><span class="w"> </span><span class="s">"hebr"</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:percent</span><span class="p" data-group-id="5346256180-1">)</span><span class="w">
|
return looks like:</li></ul><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="5633798090-1">(</span><span class="mi">1234</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="s">"he"</span><span class="p">,</span><span class="w"> </span><span class="ss">number_system</span><span class="p">:</span><span class="w"> </span><span class="s">"hebr"</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:percent</span><span class="p" data-group-id="5633798090-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="5346256180-2">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5346256180-3">{</span><span class="nc">Cldr.UnknownFormatError</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5633798090-2">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5633798090-3">{</span><span class="nc">Cldr.UnknownFormatError</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"The locale :he with number system :hebr does not define a format :percent"</span><span class="p" data-group-id="5346256180-3">}</span><span class="p" data-group-id="5346256180-2">}</span></code></pre>
|
</span><span class="s">"The locale :he with number system :hebr does not define a format :percent"</span><span class="p" data-group-id="5633798090-3">}</span><span class="p" data-group-id="5633798090-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="to_string!/2">
|
<section class="detail" id="to_string!/2">
|
||||||
@ -1346,17 +1346,17 @@ returned by <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.html#known_number_sy
|
|||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">validate_number_system</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">validate_number_system</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1685609099-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="p" data-group-id="1685609099-1">}</span><span class="w">
|
</span><span class="p" data-group-id="5662631016-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="p" data-group-id="5662631016-1">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">validate_number_system</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="ss">:default</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">validate_number_system</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="ss">:default</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1685609099-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="p" data-group-id="1685609099-2">}</span><span class="w">
|
</span><span class="p" data-group-id="5662631016-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:latn</span><span class="p" data-group-id="5662631016-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">validate_number_system</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="ss">:unknown</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">validate_number_system</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w"> </span><span class="ss">:unknown</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1685609099-3">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5662631016-3">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1685609099-4">{</span><span class="nc">Cldr.UnknownNumberSystemError</span><span class="p">,</span><span class="w"> </span><span class="s">"The number system :unknown is unknown"</span><span class="p" data-group-id="1685609099-4">}</span><span class="p" data-group-id="1685609099-3">}</span><span class="w">
|
</span><span class="p" data-group-id="5662631016-4">{</span><span class="nc">Cldr.UnknownNumberSystemError</span><span class="p">,</span><span class="w"> </span><span class="s">"The number system :unknown is unknown"</span><span class="p" data-group-id="5662631016-4">}</span><span class="p" data-group-id="5662631016-3">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">validate_number_system</span><span class="w"> </span><span class="s">"zz"</span><span class="p">,</span><span class="w"> </span><span class="ss">:default</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">validate_number_system</span><span class="w"> </span><span class="s">"zz"</span><span class="p">,</span><span class="w"> </span><span class="ss">:default</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1685609099-5">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1685609099-6">{</span><span class="nc">Cldr.InvalidLanguageError</span><span class="p">,</span><span class="w"> </span><span class="s">"The language </span><span class="se">\"</span><span class="s">zz</span><span class="se">\"</span><span class="s"> is invalid"</span><span class="p" data-group-id="1685609099-6">}</span><span class="p" data-group-id="1685609099-5">}</span></code></pre>
|
</span><span class="p" data-group-id="5662631016-5">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5662631016-6">{</span><span class="nc">Cldr.InvalidLanguageError</span><span class="p">,</span><span class="w"> </span><span class="s">"The language </span><span class="se">\"</span><span class="s">zz</span><span class="se">\"</span><span class="s"> is invalid"</span><span class="p" data-group-id="5662631016-6">}</span><span class="p" data-group-id="5662631016-5">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -145,9 +145,9 @@ Pages
|
|||||||
<section id="moduledoc">
|
<section id="moduledoc">
|
||||||
<p>Functions to implement the number system rule-based-number-format rules of CLDR.</p><p>These rules are defined only on the "und" locale and represent specialised
|
<p>Functions to implement the number system rule-based-number-format rules of CLDR.</p><p>These rules are defined only on the "und" locale and represent specialised
|
||||||
number formatting.</p><p>The standard public API for RBNF is via the <a href="https://hexdocs.pm/ex_cldr_numbers/2.33.1/Cldr.Number.html#to_string/2"><code class="inline">Cldr.Number.to_string/2</code></a> function.</p><p>The functions on this module are defined at compile time based upon the RBNF rules
|
number formatting.</p><p>The standard public API for RBNF is via the <a href="https://hexdocs.pm/ex_cldr_numbers/2.33.1/Cldr.Number.html#to_string/2"><code class="inline">Cldr.Number.to_string/2</code></a> function.</p><p>The functions on this module are defined at compile time based upon the RBNF rules
|
||||||
defined in the Unicode CLDR data repository. Available rules are identified by:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.NumberSystem</span><span class="o">.</span><span class="n">rule_sets</span><span class="p" data-group-id="8696882962-1">(</span><span class="ss">:und</span><span class="p" data-group-id="8696882962-1">)</span><span class="w">
|
defined in the Unicode CLDR data repository. Available rules are identified by:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.NumberSystem</span><span class="o">.</span><span class="n">rule_sets</span><span class="p" data-group-id="7435404316-1">(</span><span class="ss">:und</span><span class="p" data-group-id="7435404316-1">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Enum</span><span class="o">.</span><span class="n">sort</span><span class="p" data-group-id="8696882962-2">(</span><span class="p" data-group-id="8696882962-2">)</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Enum</span><span class="o">.</span><span class="n">sort</span><span class="p" data-group-id="7435404316-2">(</span><span class="p" data-group-id="7435404316-2">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8696882962-3">[</span><span class="w">
|
</span><span class="p" data-group-id="7435404316-3">[</span><span class="w">
|
||||||
</span><span class="ss">:armenian_lower</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:armenian_lower</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">:armenian_upper</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:armenian_upper</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">:cyrillic_lower</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:cyrillic_lower</span><span class="p">,</span><span class="w">
|
||||||
@ -161,9 +161,9 @@ defined in the Unicode CLDR data repository. Available rules are identified by:
|
|||||||
</span><span class="ss">:roman_upper</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:roman_upper</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">:tamil</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:tamil</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">:zz_default</span><span class="w">
|
</span><span class="ss">:zz_default</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8696882962-3">]</span></code></pre><p>A rule can then be invoked on an available rule_set. For example</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.NumberSystem</span><span class="o">.</span><span class="n">roman_upper</span><span class="p" data-group-id="5686423955-1">(</span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">:und</span><span class="p" data-group-id="5686423955-1">)</span><span class="w">
|
</span><span class="p" data-group-id="7435404316-3">]</span></code></pre><p>A rule can then be invoked on an available rule_set. For example</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.NumberSystem</span><span class="o">.</span><span class="n">roman_upper</span><span class="p" data-group-id="0725989759-1">(</span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">:und</span><span class="p" data-group-id="0725989759-1">)</span><span class="w">
|
||||||
</span><span class="s">"CXXIII"</span></code></pre><p>This particular call is equivalent to the call through the public API of:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="4328514364-1">(</span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:roman</span><span class="p" data-group-id="4328514364-1">)</span><span class="w">
|
</span><span class="s">"CXXIII"</span></code></pre><p>This particular call is equivalent to the call through the public API of:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="9718533604-1">(</span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:roman</span><span class="p" data-group-id="9718533604-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="4328514364-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"CXXIII"</span><span class="p" data-group-id="4328514364-2">}</span></code></pre>
|
</span><span class="p" data-group-id="9718533604-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"CXXIII"</span><span class="p" data-group-id="9718533604-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -145,20 +145,20 @@ Pages
|
|||||||
<section id="moduledoc">
|
<section id="moduledoc">
|
||||||
<p>Functions to implement the ordinal rule-based-number-format rules of CLDR.</p><p>As CLDR notes, the data is incomplete or non-existent for many languages. It
|
<p>Functions to implement the ordinal rule-based-number-format rules of CLDR.</p><p>As CLDR notes, the data is incomplete or non-existent for many languages. It
|
||||||
is considered complete for English however.</p><p>The standard public API for RBNF is via the <a href="https://hexdocs.pm/ex_cldr_numbers/2.33.1/Cldr.Number.html#to_string/2"><code class="inline">Cldr.Number.to_string/2</code></a> function.</p><p>The functions on this module are defined at compile time based upon the RBNF rules
|
is considered complete for English however.</p><p>The standard public API for RBNF is via the <a href="https://hexdocs.pm/ex_cldr_numbers/2.33.1/Cldr.Number.html#to_string/2"><code class="inline">Cldr.Number.to_string/2</code></a> function.</p><p>The functions on this module are defined at compile time based upon the RBNF rules
|
||||||
defined in the Unicode CLDR data repository. Available rules are identified by:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.Ordinal</span><span class="o">.</span><span class="n">rule_sets</span><span class="p" data-group-id="0050743256-1">(</span><span class="ss">:en</span><span class="p" data-group-id="0050743256-1">)</span><span class="w">
|
defined in the Unicode CLDR data repository. Available rules are identified by:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.Ordinal</span><span class="o">.</span><span class="n">rule_sets</span><span class="p" data-group-id="2656909582-1">(</span><span class="ss">:en</span><span class="p" data-group-id="2656909582-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0050743256-2">[</span><span class="ss">:digits_ordinal</span><span class="p" data-group-id="0050743256-2">]</span><span class="w">
|
</span><span class="p" data-group-id="2656909582-2">[</span><span class="ss">:digits_ordinal</span><span class="p" data-group-id="2656909582-2">]</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.Ordinal</span><span class="o">.</span><span class="n">rule_sets</span><span class="p" data-group-id="0050743256-3">(</span><span class="s">"fr"</span><span class="p" data-group-id="0050743256-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.Ordinal</span><span class="o">.</span><span class="n">rule_sets</span><span class="p" data-group-id="2656909582-3">(</span><span class="s">"fr"</span><span class="p" data-group-id="2656909582-3">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Enum</span><span class="o">.</span><span class="n">sort</span><span class="p" data-group-id="0050743256-4">(</span><span class="p" data-group-id="0050743256-4">)</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Enum</span><span class="o">.</span><span class="n">sort</span><span class="p" data-group-id="2656909582-4">(</span><span class="p" data-group-id="2656909582-4">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0050743256-5">[</span><span class="w">
|
</span><span class="p" data-group-id="2656909582-5">[</span><span class="w">
|
||||||
</span><span class="ss">:digits_ordinal</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:digits_ordinal</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">:digits_ordinal_feminine</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:digits_ordinal_feminine</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">:digits_ordinal_feminine_plural</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:digits_ordinal_feminine_plural</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">:digits_ordinal_masculine</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:digits_ordinal_masculine</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">:digits_ordinal_masculine_plural</span><span class="w">
|
</span><span class="ss">:digits_ordinal_masculine_plural</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0050743256-5">]</span></code></pre><p>A rule can then be invoked on an available rule_set. For example</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.Ordinal</span><span class="o">.</span><span class="n">digits_ordinal</span><span class="p" data-group-id="4903400344-1">(</span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p" data-group-id="4903400344-1">)</span><span class="w">
|
</span><span class="p" data-group-id="2656909582-5">]</span></code></pre><p>A rule can then be invoked on an available rule_set. For example</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.Ordinal</span><span class="o">.</span><span class="n">digits_ordinal</span><span class="p" data-group-id="9579189958-1">(</span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">:en</span><span class="p" data-group-id="9579189958-1">)</span><span class="w">
|
||||||
</span><span class="s">"123rd"</span></code></pre><p>This call is equivalent to the call through the public API of:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="6033673154-1">(</span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:ordinal</span><span class="p" data-group-id="6033673154-1">)</span><span class="w">
|
</span><span class="s">"123rd"</span></code></pre><p>This call is equivalent to the call through the public API of:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="8727217567-1">(</span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:ordinal</span><span class="p" data-group-id="8727217567-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6033673154-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"123rd"</span><span class="p" data-group-id="6033673154-2">}</span></code></pre>
|
</span><span class="p" data-group-id="8727217567-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"123rd"</span><span class="p" data-group-id="8727217567-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -145,9 +145,9 @@ Pages
|
|||||||
<section id="moduledoc">
|
<section id="moduledoc">
|
||||||
<p>Functions to implement the spellout rule-based-number-format rules of CLDR.</p><p>As CLDR notes, the data is incomplete or non-existent for many languages. It
|
<p>Functions to implement the spellout rule-based-number-format rules of CLDR.</p><p>As CLDR notes, the data is incomplete or non-existent for many languages. It
|
||||||
is considered complete for English however.</p><p>The standard public API for RBNF is via the <a href="https://hexdocs.pm/ex_cldr_numbers/2.33.1/Cldr.Number.html#to_string/2"><code class="inline">Cldr.Number.to_string/2</code></a> function.</p><p>The functions on this module are defined at compile time based upon the RBNF rules
|
is considered complete for English however.</p><p>The standard public API for RBNF is via the <a href="https://hexdocs.pm/ex_cldr_numbers/2.33.1/Cldr.Number.html#to_string/2"><code class="inline">Cldr.Number.to_string/2</code></a> function.</p><p>The functions on this module are defined at compile time based upon the RBNF rules
|
||||||
defined in the Unicode CLDR data repository. Available rules are identified by:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.Spellout</span><span class="o">.</span><span class="n">rule_sets</span><span class="p" data-group-id="3185664803-1">(</span><span class="s">"en"</span><span class="p" data-group-id="3185664803-1">)</span><span class="w">
|
defined in the Unicode CLDR data repository. Available rules are identified by:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.Spellout</span><span class="o">.</span><span class="n">rule_sets</span><span class="p" data-group-id="6069960564-1">(</span><span class="s">"en"</span><span class="p" data-group-id="6069960564-1">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Enum</span><span class="o">.</span><span class="n">sort</span><span class="p" data-group-id="3185664803-2">(</span><span class="p" data-group-id="3185664803-2">)</span><span class="w">
|
</span><span class="gp unselectable">...> </span><span class="o">|></span><span class="w"> </span><span class="nc">Enum</span><span class="o">.</span><span class="n">sort</span><span class="p" data-group-id="6069960564-2">(</span><span class="p" data-group-id="6069960564-2">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3185664803-3">[</span><span class="w">
|
</span><span class="p" data-group-id="6069960564-3">[</span><span class="w">
|
||||||
</span><span class="ss">:spellout_cardinal</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:spellout_cardinal</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">:spellout_cardinal_verbose</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:spellout_cardinal_verbose</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">:spellout_numbering</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:spellout_numbering</span><span class="p">,</span><span class="w">
|
||||||
@ -155,9 +155,9 @@ defined in the Unicode CLDR data repository. Available rules are identified by:
|
|||||||
</span><span class="ss">:spellout_numbering_year</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:spellout_numbering_year</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">:spellout_ordinal</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:spellout_ordinal</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">:spellout_ordinal_verbose</span><span class="w">
|
</span><span class="ss">:spellout_ordinal_verbose</span><span class="w">
|
||||||
</span><span class="p" data-group-id="3185664803-3">]</span></code></pre><p>A rule can then be invoked on an available rule_set. For example:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.Spellout</span><span class="o">.</span><span class="n">spellout_ordinal</span><span class="p" data-group-id="2064559692-1">(</span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="2064559692-1">)</span><span class="w">
|
</span><span class="p" data-group-id="6069960564-3">]</span></code></pre><p>A rule can then be invoked on an available rule_set. For example:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Rbnf.Spellout</span><span class="o">.</span><span class="n">spellout_ordinal</span><span class="p" data-group-id="3723361158-1">(</span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="3723361158-1">)</span><span class="w">
|
||||||
</span><span class="s">"one hundred twenty-third"</span></code></pre><p>This call is equivalent to the call through the public API of:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="0499367524-1">(</span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:spellout</span><span class="p" data-group-id="0499367524-1">)</span><span class="w">
|
</span><span class="s">"one hundred twenty-third"</span></code></pre><p>This call is equivalent to the call through the public API of:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr.Number</span><span class="o">.</span><span class="n">to_string</span><span class="p" data-group-id="2401426774-1">(</span><span class="mi">123</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:spellout</span><span class="p" data-group-id="2401426774-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0499367524-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"one hundred twenty-three"</span><span class="p" data-group-id="0499367524-2">}</span></code></pre>
|
</span><span class="p" data-group-id="2401426774-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"one hundred twenty-three"</span><span class="p" data-group-id="2401426774-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -558,24 +558,24 @@ current locale is restored after the function.</p></div>
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">default_locale</span><span class="p" data-group-id="6331915808-1">(</span><span class="p" data-group-id="6331915808-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">default_locale</span><span class="p" data-group-id="7025925556-1">(</span><span class="p" data-group-id="7025925556-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6331915808-2">%</span><span class="nc" data-group-id="6331915808-2">Cldr.LanguageTag</span><span class="p" data-group-id="6331915808-2">{</span><span class="w">
|
</span><span class="p" data-group-id="7025925556-2">%</span><span class="nc" data-group-id="7025925556-2">Cldr.LanguageTag</span><span class="p" data-group-id="7025925556-2">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en-001"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en-001"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"en-001"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"en-001"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6331915808-3">[</span><span class="p" data-group-id="6331915808-3">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7025925556-3">[</span><span class="p" data-group-id="7025925556-3">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6331915808-4">%{</span><span class="p" data-group-id="6331915808-4">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7025925556-4">%{</span><span class="p" data-group-id="7025925556-4">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6331915808-5">%{</span><span class="p" data-group-id="6331915808-5">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7025925556-5">%{</span><span class="p" data-group-id="7025925556-5">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6331915808-6">[</span><span class="p" data-group-id="6331915808-6">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7025925556-6">[</span><span class="p" data-group-id="7025925556-6">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en-001"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en-001"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:"001"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:"001"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6331915808-7">%{</span><span class="p" data-group-id="6331915808-7">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7025925556-7">%{</span><span class="p" data-group-id="7025925556-7">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6331915808-8">[</span><span class="p" data-group-id="6331915808-8">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7025925556-8">[</span><span class="p" data-group-id="7025925556-8">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6331915808-2">}</span></code></pre>
|
</span><span class="p" data-group-id="7025925556-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="default_territory/0">
|
<section class="detail" id="default_territory/0">
|
||||||
@ -610,7 +610,7 @@ does not specify one and none can be inferred.</p><h2 id="default_territory/0-ex
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">default_territory</span><span class="p" data-group-id="8056810548-1">(</span><span class="p" data-group-id="8056810548-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">default_territory</span><span class="p" data-group-id="0705166871-1">(</span><span class="p" data-group-id="0705166871-1">)</span><span class="w">
|
||||||
</span><span class="ss">:"001"</span></code></pre>
|
</span><span class="ss">:"001"</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -670,16 +670,16 @@ is inserted between words or sentences. The valid options are
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">ellipsis</span><span class="p" data-group-id="4022592484-1">(</span><span class="s">"And furthermore"</span><span class="p" data-group-id="4022592484-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">ellipsis</span><span class="p" data-group-id="2421845840-1">(</span><span class="s">"And furthermore"</span><span class="p" data-group-id="2421845840-1">)</span><span class="w">
|
||||||
</span><span class="s">"And furthermore…"</span><span class="w">
|
</span><span class="s">"And furthermore…"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">ellipsis</span><span class="p" data-group-id="4022592484-2">(</span><span class="p" data-group-id="4022592484-3">[</span><span class="s">"And furthermore"</span><span class="p">,</span><span class="w"> </span><span class="s">"there is much to be done"</span><span class="p" data-group-id="4022592484-3">]</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="ss">:ja</span><span class="p" data-group-id="4022592484-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">ellipsis</span><span class="p" data-group-id="2421845840-2">(</span><span class="p" data-group-id="2421845840-3">[</span><span class="s">"And furthermore"</span><span class="p">,</span><span class="w"> </span><span class="s">"there is much to be done"</span><span class="p" data-group-id="2421845840-3">]</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="ss">:ja</span><span class="p" data-group-id="2421845840-2">)</span><span class="w">
|
||||||
</span><span class="s">"And furthermore…there is much to be done"</span><span class="w">
|
</span><span class="s">"And furthermore…there is much to be done"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">ellipsis</span><span class="p" data-group-id="4022592484-4">(</span><span class="s">"And furthermore"</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:word</span><span class="p" data-group-id="4022592484-4">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">ellipsis</span><span class="p" data-group-id="2421845840-4">(</span><span class="s">"And furthermore"</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:word</span><span class="p" data-group-id="2421845840-4">)</span><span class="w">
|
||||||
</span><span class="s">"And furthermore …"</span><span class="w">
|
</span><span class="s">"And furthermore …"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">ellipsis</span><span class="p" data-group-id="4022592484-5">(</span><span class="p" data-group-id="4022592484-6">[</span><span class="s">"And furthermore"</span><span class="p">,</span><span class="w"> </span><span class="s">"there is much to be done"</span><span class="p" data-group-id="4022592484-6">]</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="ss">:ja</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:word</span><span class="p" data-group-id="4022592484-5">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">ellipsis</span><span class="p" data-group-id="2421845840-5">(</span><span class="p" data-group-id="2421845840-6">[</span><span class="s">"And furthermore"</span><span class="p">,</span><span class="w"> </span><span class="s">"there is much to be done"</span><span class="p" data-group-id="2421845840-6">]</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="ss">:ja</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="ss">:word</span><span class="p" data-group-id="2421845840-5">)</span><span class="w">
|
||||||
</span><span class="s">"And furthermore … there is much to be done"</span></code></pre>
|
</span><span class="s">"And furthermore … there is much to be done"</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -715,23 +715,23 @@ take an optional locale parameter for which a locale is not supplied.</p><h2 id=
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">put_locale</span><span class="p" data-group-id="6438901652-1">(</span><span class="s">"pl"</span><span class="p" data-group-id="6438901652-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">put_locale</span><span class="p" data-group-id="8876858150-1">(</span><span class="s">"pl"</span><span class="p" data-group-id="8876858150-1">)</span><span class="w">
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">get_locale</span><span class="p" data-group-id="6438901652-2">(</span><span class="p" data-group-id="6438901652-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">get_locale</span><span class="p" data-group-id="8876858150-2">(</span><span class="p" data-group-id="8876858150-2">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6438901652-3">%</span><span class="nc" data-group-id="6438901652-3">Cldr.LanguageTag</span><span class="p" data-group-id="6438901652-3">{</span><span class="w">
|
</span><span class="p" data-group-id="8876858150-3">%</span><span class="nc" data-group-id="8876858150-3">Cldr.LanguageTag</span><span class="p" data-group-id="8876858150-3">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">Elixir.Plausible.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">Elixir.Plausible.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"pl"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"pl"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:pl</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:pl</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6438901652-4">%{</span><span class="p" data-group-id="6438901652-4">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8876858150-4">%{</span><span class="p" data-group-id="8876858150-4">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"pl"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"pl"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6438901652-5">%{</span><span class="p" data-group-id="6438901652-5">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8876858150-5">%{</span><span class="p" data-group-id="8876858150-5">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6438901652-6">[</span><span class="p" data-group-id="6438901652-6">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8876858150-6">[</span><span class="p" data-group-id="8876858150-6">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:pl</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:pl</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:PL</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:PL</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"pl"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"pl"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6438901652-7">%{</span><span class="p" data-group-id="6438901652-7">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8876858150-7">%{</span><span class="p" data-group-id="8876858150-7">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6438901652-8">[</span><span class="p" data-group-id="6438901652-8">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8876858150-8">[</span><span class="p" data-group-id="8876858150-8">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6438901652-3">}</span></code></pre>
|
</span><span class="p" data-group-id="8876858150-3">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="known_calendars/0">
|
<section class="detail" id="known_calendars/0">
|
||||||
@ -818,10 +818,10 @@ take an optional locale parameter for which a locale is not supplied.</p><h2 id=
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_gettext_locale_name</span><span class="p" data-group-id="8976583273-1">(</span><span class="s">"en"</span><span class="p" data-group-id="8976583273-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_gettext_locale_name</span><span class="p" data-group-id="3841927232-1">(</span><span class="s">"en"</span><span class="p" data-group-id="3841927232-1">)</span><span class="w">
|
||||||
</span><span class="s">"en"</span><span class="w">
|
</span><span class="s">"en"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_gettext_locale_name</span><span class="p" data-group-id="8976583273-2">(</span><span class="s">"en-SA"</span><span class="p" data-group-id="8976583273-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_gettext_locale_name</span><span class="p" data-group-id="3841927232-2">(</span><span class="s">"en-SA"</span><span class="p" data-group-id="3841927232-2">)</span><span class="w">
|
||||||
</span><span class="no">false</span></code></pre>
|
</span><span class="no">false</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -864,10 +864,10 @@ name is configured and available in Gettext.</p><h2 id="known_gettext_locale_nam
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_gettext_locale_name?</span><span class="p" data-group-id="4531144959-1">(</span><span class="s">"en"</span><span class="p" data-group-id="4531144959-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_gettext_locale_name?</span><span class="p" data-group-id="4009921514-1">(</span><span class="s">"en"</span><span class="p" data-group-id="4009921514-1">)</span><span class="w">
|
||||||
</span><span class="no">true</span><span class="w">
|
</span><span class="no">true</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_gettext_locale_name?</span><span class="p" data-group-id="4531144959-2">(</span><span class="s">"!!"</span><span class="p" data-group-id="4531144959-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_gettext_locale_name?</span><span class="p" data-group-id="4009921514-2">(</span><span class="s">"!!"</span><span class="p" data-group-id="4009921514-2">)</span><span class="w">
|
||||||
</span><span class="no">false</span></code></pre>
|
</span><span class="no">false</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -941,10 +941,10 @@ to return the first known locale name from a list.</p><h2 id="known_locale_name/
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_locale_name</span><span class="p" data-group-id="9028758315-1">(</span><span class="ss">:"en-AU"</span><span class="p" data-group-id="9028758315-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_locale_name</span><span class="p" data-group-id="4440901196-1">(</span><span class="ss">:"en-AU"</span><span class="p" data-group-id="4440901196-1">)</span><span class="w">
|
||||||
</span><span class="ss">:"en-AU"</span><span class="w">
|
</span><span class="ss">:"en-AU"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_locale_name</span><span class="p" data-group-id="9028758315-2">(</span><span class="ss">:"en-SA"</span><span class="p" data-group-id="9028758315-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_locale_name</span><span class="p" data-group-id="4440901196-2">(</span><span class="ss">:"en-SA"</span><span class="p" data-group-id="4440901196-2">)</span><span class="w">
|
||||||
</span><span class="no">false</span></code></pre>
|
</span><span class="no">false</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -986,10 +986,10 @@ name is configured and available in Cldr.</p><h2 id="known_locale_name?/1-argume
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_locale_name?</span><span class="p" data-group-id="5578458329-1">(</span><span class="ss">:en</span><span class="p" data-group-id="5578458329-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_locale_name?</span><span class="p" data-group-id="9469013835-1">(</span><span class="ss">:en</span><span class="p" data-group-id="9469013835-1">)</span><span class="w">
|
||||||
</span><span class="no">true</span><span class="w">
|
</span><span class="no">true</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_locale_name?</span><span class="p" data-group-id="5578458329-2">(</span><span class="ss">:"!!"</span><span class="p" data-group-id="5578458329-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_locale_name?</span><span class="p" data-group-id="9469013835-2">(</span><span class="ss">:"!!"</span><span class="p" data-group-id="9469013835-2">)</span><span class="w">
|
||||||
</span><span class="no">false</span></code></pre>
|
</span><span class="no">false</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -1043,8 +1043,8 @@ in this module or in <a href="https://hexdocs.pm/gettext/0.24.0/Gettext.html"><c
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Example</span>
|
<span class="text">Example</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_number_system_types</span><span class="p" data-group-id="1573541845-1">(</span><span class="p" data-group-id="1573541845-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_number_system_types</span><span class="p" data-group-id="5042859527-1">(</span><span class="p" data-group-id="5042859527-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="1573541845-2">[</span><span class="ss">:default</span><span class="p">,</span><span class="w"> </span><span class="ss">:finance</span><span class="p">,</span><span class="w"> </span><span class="ss">:native</span><span class="p">,</span><span class="w"> </span><span class="ss">:traditional</span><span class="p" data-group-id="1573541845-2">]</span></code></pre>
|
</span><span class="p" data-group-id="5042859527-2">[</span><span class="ss">:default</span><span class="p">,</span><span class="w"> </span><span class="ss">:finance</span><span class="p">,</span><span class="w"> </span><span class="ss">:native</span><span class="p">,</span><span class="w"> </span><span class="ss">:traditional</span><span class="p" data-group-id="5042859527-2">]</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="known_number_systems/0">
|
<section class="detail" id="known_number_systems/0">
|
||||||
@ -1109,10 +1109,10 @@ and has RBNF rules defined.</p><h2 id="known_rbnf_locale_name/1-arguments" class
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_rbnf_locale_name</span><span class="p" data-group-id="2657669003-1">(</span><span class="ss">:en</span><span class="p" data-group-id="2657669003-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_rbnf_locale_name</span><span class="p" data-group-id="0609485869-1">(</span><span class="ss">:en</span><span class="p" data-group-id="0609485869-1">)</span><span class="w">
|
||||||
</span><span class="ss">:en</span><span class="w">
|
</span><span class="ss">:en</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_rbnf_locale_name</span><span class="p" data-group-id="2657669003-2">(</span><span class="ss">:"en-SA"</span><span class="p" data-group-id="2657669003-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_rbnf_locale_name</span><span class="p" data-group-id="0609485869-2">(</span><span class="ss">:"en-SA"</span><span class="p" data-group-id="0609485869-2">)</span><span class="w">
|
||||||
</span><span class="no">false</span></code></pre>
|
</span><span class="no">false</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -1155,10 +1155,10 @@ rules based number formats (RBNF).</p><h2 id="known_rbnf_locale_name?/1-argument
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_rbnf_locale_name?</span><span class="p" data-group-id="1089752450-1">(</span><span class="ss">:en</span><span class="p" data-group-id="1089752450-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_rbnf_locale_name?</span><span class="p" data-group-id="8156737481-1">(</span><span class="ss">:en</span><span class="p" data-group-id="8156737481-1">)</span><span class="w">
|
||||||
</span><span class="no">true</span><span class="w">
|
</span><span class="no">true</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_rbnf_locale_name?</span><span class="p" data-group-id="1089752450-2">(</span><span class="ss">:"!!"</span><span class="p" data-group-id="1089752450-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">known_rbnf_locale_name?</span><span class="p" data-group-id="8156737481-2">(</span><span class="ss">:"!!"</span><span class="p" data-group-id="8156737481-2">)</span><span class="w">
|
||||||
</span><span class="no">false</span></code></pre>
|
</span><span class="no">false</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -1294,18 +1294,18 @@ CLDR backend defined by the <code class="inline">t:Cldr.LanguageTag</code> is se
|
|||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="kn">import</span><span class="w"> </span><span class="nc">Cldr.LanguageTag.Sigil</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="kn">import</span><span class="w"> </span><span class="nc">Cldr.LanguageTag.Sigil</span><span class="w">
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">put_gettext_locale</span><span class="p" data-group-id="6184139953-1">(</span><span class="sx">~l"en"</span><span class="p" data-group-id="6184139953-1">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">put_gettext_locale</span><span class="p" data-group-id="4145952541-1">(</span><span class="sx">~l"en"</span><span class="p" data-group-id="4145952541-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6184139953-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="6184139953-2">}</span><span class="w">
|
</span><span class="p" data-group-id="4145952541-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="4145952541-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="kn">import</span><span class="w"> </span><span class="nc">Cldr.LanguageTag.Sigil</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="kn">import</span><span class="w"> </span><span class="nc">Cldr.LanguageTag.Sigil</span><span class="w">
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">put_gettext_locale</span><span class="p" data-group-id="6184139953-3">(</span><span class="sx">~l"de"</span><span class="p" data-group-id="6184139953-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">put_gettext_locale</span><span class="p" data-group-id="4145952541-3">(</span><span class="sx">~l"de"</span><span class="p" data-group-id="4145952541-3">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6184139953-4">{</span><span class="w">
|
</span><span class="p" data-group-id="4145952541-4">{</span><span class="w">
|
||||||
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6184139953-5">{</span><span class="w">
|
</span><span class="p" data-group-id="4145952541-5">{</span><span class="w">
|
||||||
</span><span class="nc">Cldr.UnknownLocaleError</span><span class="p">,</span><span class="w">
|
</span><span class="nc">Cldr.UnknownLocaleError</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"Locale TestBackend.Cldr.Locale.new!(</span><span class="se">\"</span><span class="s">de-DE</span><span class="se">\"</span><span class="s">) does not map to a known gettext locale name"</span><span class="w">
|
</span><span class="s">"Locale TestBackend.Cldr.Locale.new!(</span><span class="se">\"</span><span class="s">de-DE</span><span class="se">\"</span><span class="s">) does not map to a known gettext locale name"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6184139953-5">}</span><span class="w">
|
</span><span class="p" data-group-id="4145952541-5">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6184139953-4">}</span></code></pre>
|
</span><span class="p" data-group-id="4145952541-4">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="put_locale/1">
|
<section class="detail" id="put_locale/1">
|
||||||
@ -1349,29 +1349,29 @@ of a language tag.</p><h2 id="put_locale/1-examples" class="section-heading">
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">put_locale</span><span class="p" data-group-id="2582999917-1">(</span><span class="s">"en"</span><span class="p" data-group-id="2582999917-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">put_locale</span><span class="p" data-group-id="5988816898-1">(</span><span class="s">"en"</span><span class="p" data-group-id="5988816898-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="2582999917-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5988816898-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="2582999917-3">%</span><span class="nc" data-group-id="2582999917-3">Cldr.LanguageTag</span><span class="p" data-group-id="2582999917-3">{</span><span class="w">
|
</span><span class="p" data-group-id="5988816898-3">%</span><span class="nc" data-group-id="5988816898-3">Cldr.LanguageTag</span><span class="p" data-group-id="5988816898-3">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="2582999917-4">[</span><span class="p" data-group-id="2582999917-4">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5988816898-4">[</span><span class="p" data-group-id="5988816898-4">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="2582999917-5">%{</span><span class="p" data-group-id="2582999917-5">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5988816898-5">%{</span><span class="p" data-group-id="5988816898-5">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="2582999917-6">%{</span><span class="p" data-group-id="2582999917-6">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5988816898-6">%{</span><span class="p" data-group-id="5988816898-6">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="2582999917-7">[</span><span class="p" data-group-id="2582999917-7">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5988816898-7">[</span><span class="p" data-group-id="5988816898-7">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:US</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:US</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="2582999917-8">%{</span><span class="p" data-group-id="2582999917-8">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5988816898-8">%{</span><span class="p" data-group-id="5988816898-8">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="2582999917-9">[</span><span class="p" data-group-id="2582999917-9">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5988816898-9">[</span><span class="p" data-group-id="5988816898-9">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="2582999917-3">}</span><span class="p" data-group-id="2582999917-2">}</span><span class="w">
|
</span><span class="p" data-group-id="5988816898-3">}</span><span class="p" data-group-id="5988816898-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">put_locale</span><span class="p" data-group-id="2582999917-10">(</span><span class="s">"invalid-locale!"</span><span class="p" data-group-id="2582999917-10">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">put_locale</span><span class="p" data-group-id="5988816898-10">(</span><span class="s">"invalid-locale!"</span><span class="p" data-group-id="5988816898-10">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="2582999917-11">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="2582999917-12">{</span><span class="nc">Cldr.LanguageTag.ParseError</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="5988816898-11">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="5988816898-12">{</span><span class="nc">Cldr.LanguageTag.ParseError</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"Expected a BCP47 language tag. Could not parse the remaining </span><span class="se">\"</span><span class="s">!</span><span class="se">\"</span><span class="s"> starting at position 15"</span><span class="p" data-group-id="2582999917-12">}</span><span class="p" data-group-id="2582999917-11">}</span></code></pre>
|
</span><span class="s">"Expected a BCP47 language tag. Could not parse the remaining </span><span class="se">\"</span><span class="s">!</span><span class="se">\"</span><span class="s"> starting at position 15"</span><span class="p" data-group-id="5988816898-12">}</span><span class="p" data-group-id="5988816898-11">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="quote/2">
|
<section class="detail" id="quote/2">
|
||||||
@ -1420,10 +1420,10 @@ The default is <a href="https://hexdocs.pm/ex_cldr/2.39.2/Cldr.html#get_locale/0
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="k">quote</span><span class="p" data-group-id="4255247416-1">(</span><span class="s">"Quoted String"</span><span class="p" data-group-id="4255247416-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="k">quote</span><span class="p" data-group-id="2232731510-1">(</span><span class="s">"Quoted String"</span><span class="p" data-group-id="2232731510-1">)</span><span class="w">
|
||||||
</span><span class="s">"“Quoted String”"</span><span class="w">
|
</span><span class="s">"“Quoted String”"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="k">quote</span><span class="p" data-group-id="4255247416-2">(</span><span class="s">"Quoted String"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="ss">:ja</span><span class="p" data-group-id="4255247416-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="k">quote</span><span class="p" data-group-id="2232731510-2">(</span><span class="s">"Quoted String"</span><span class="p">,</span><span class="w"> </span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="ss">:ja</span><span class="p" data-group-id="2232731510-2">)</span><span class="w">
|
||||||
</span><span class="s">"「Quoted String」"</span></code></pre>
|
</span><span class="s">"「Quoted String」"</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -1554,47 +1554,47 @@ of a language tag.</p><h2 id="validate_locale/1-examples" class="section-heading
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="p" data-group-id="0866686593-1">(</span><span class="ss">:en</span><span class="p" data-group-id="0866686593-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="p" data-group-id="9705124880-1">(</span><span class="ss">:en</span><span class="p" data-group-id="9705124880-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0866686593-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9705124880-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0866686593-3">%</span><span class="nc" data-group-id="0866686593-3">Cldr.LanguageTag</span><span class="p" data-group-id="0866686593-3">{</span><span class="w">
|
</span><span class="p" data-group-id="9705124880-3">%</span><span class="nc" data-group-id="9705124880-3">Cldr.LanguageTag</span><span class="p" data-group-id="9705124880-3">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0866686593-4">%{</span><span class="p" data-group-id="0866686593-4">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9705124880-4">%{</span><span class="p" data-group-id="9705124880-4">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0866686593-5">%{</span><span class="p" data-group-id="0866686593-5">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9705124880-5">%{</span><span class="p" data-group-id="9705124880-5">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0866686593-6">[</span><span class="p" data-group-id="0866686593-6">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9705124880-6">[</span><span class="p" data-group-id="9705124880-6">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:US</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:US</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0866686593-7">%{</span><span class="p" data-group-id="0866686593-7">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9705124880-7">%{</span><span class="p" data-group-id="9705124880-7">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0866686593-8">[</span><span class="p" data-group-id="0866686593-8">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9705124880-8">[</span><span class="p" data-group-id="9705124880-8">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0866686593-3">}</span><span class="p" data-group-id="0866686593-2">}</span><span class="w">
|
</span><span class="p" data-group-id="9705124880-3">}</span><span class="p" data-group-id="9705124880-2">}</span><span class="w">
|
||||||
|
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">default_locale</span><span class="p" data-group-id="0866686593-9">(</span><span class="p" data-group-id="0866686593-9">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">default_locale</span><span class="p" data-group-id="9705124880-9">(</span><span class="p" data-group-id="9705124880-9">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0866686593-10">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="9705124880-10">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0866686593-11">%</span><span class="nc" data-group-id="0866686593-11">Cldr.LanguageTag</span><span class="p" data-group-id="0866686593-11">{</span><span class="w">
|
</span><span class="p" data-group-id="9705124880-11">%</span><span class="nc" data-group-id="9705124880-11">Cldr.LanguageTag</span><span class="p" data-group-id="9705124880-11">{</span><span class="w">
|
||||||
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="p">,</span><span class="w">
|
</span><span class="ss">backend</span><span class="p">:</span><span class="w"> </span><span class="nc">Plausible.Cldr</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en-001"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">canonical_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en-001"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"en-001"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">cldr_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:"en-001"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0866686593-12">%{</span><span class="p" data-group-id="0866686593-12">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9705124880-12">%{</span><span class="p" data-group-id="9705124880-12">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">gettext_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">language</span><span class="p">:</span><span class="w"> </span><span class="s">"en"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0866686593-13">%{</span><span class="p" data-group-id="0866686593-13">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9705124880-13">%{</span><span class="p" data-group-id="9705124880-13">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0866686593-14">[</span><span class="p" data-group-id="0866686593-14">]</span><span class="p">,</span><span class="w">
|
</span><span class="ss">private_use</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9705124880-14">[</span><span class="p" data-group-id="9705124880-14">]</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w">
|
</span><span class="ss">rbnf_locale_name</span><span class="p">:</span><span class="w"> </span><span class="ss">:en</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en-001"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">requested_locale_name</span><span class="p">:</span><span class="w"> </span><span class="s">"en-001"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
</span><span class="ss">script</span><span class="p">:</span><span class="w"> </span><span class="ss">:Latn</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:"001"</span><span class="p">,</span><span class="w">
|
</span><span class="ss">territory</span><span class="p">:</span><span class="w"> </span><span class="ss">:"001"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0866686593-15">%{</span><span class="p" data-group-id="0866686593-15">}</span><span class="p">,</span><span class="w">
|
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9705124880-15">%{</span><span class="p" data-group-id="9705124880-15">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0866686593-16">[</span><span class="p" data-group-id="0866686593-16">]</span><span class="w">
|
</span><span class="ss">language_variants</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9705124880-16">[</span><span class="p" data-group-id="9705124880-16">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0866686593-11">}</span><span class="p" data-group-id="0866686593-10">}</span><span class="w">
|
</span><span class="p" data-group-id="9705124880-11">}</span><span class="p" data-group-id="9705124880-10">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="p" data-group-id="0866686593-17">(</span><span class="s">"zzz"</span><span class="p" data-group-id="0866686593-17">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="p" data-group-id="9705124880-17">(</span><span class="s">"zzz"</span><span class="p" data-group-id="9705124880-17">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="0866686593-18">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0866686593-19">{</span><span class="nc">Cldr.InvalidLanguageError</span><span class="p">,</span><span class="w"> </span><span class="s">"The language </span><span class="se">\"</span><span class="s">zzz</span><span class="se">\"</span><span class="s"> is invalid"</span><span class="p" data-group-id="0866686593-19">}</span><span class="p" data-group-id="0866686593-18">}</span></code></pre>
|
</span><span class="p" data-group-id="9705124880-18">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9705124880-19">{</span><span class="nc">Cldr.InvalidLanguageError</span><span class="p">,</span><span class="w"> </span><span class="s">"The language </span><span class="se">\"</span><span class="s">zzz</span><span class="se">\"</span><span class="s"> is invalid"</span><span class="p" data-group-id="9705124880-19">}</span><span class="p" data-group-id="9705124880-18">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="validate_number_system/1">
|
<section class="detail" id="validate_number_system/1">
|
||||||
@ -1664,23 +1664,23 @@ of a language tag.</p><h2 id="validate_locale/1-examples" class="section-heading
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_number_system_type</span><span class="p" data-group-id="8868430891-1">(</span><span class="ss">:default</span><span class="p" data-group-id="8868430891-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_number_system_type</span><span class="p" data-group-id="8582945682-1">(</span><span class="ss">:default</span><span class="p" data-group-id="8582945682-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8868430891-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:default</span><span class="p" data-group-id="8868430891-2">}</span><span class="w">
|
</span><span class="p" data-group-id="8582945682-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:default</span><span class="p" data-group-id="8582945682-2">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_number_system_type</span><span class="p" data-group-id="8868430891-3">(</span><span class="ss">:traditional</span><span class="p" data-group-id="8868430891-3">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_number_system_type</span><span class="p" data-group-id="8582945682-3">(</span><span class="ss">:traditional</span><span class="p" data-group-id="8582945682-3">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8868430891-4">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:traditional</span><span class="p" data-group-id="8868430891-4">}</span><span class="w">
|
</span><span class="p" data-group-id="8582945682-4">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="ss">:traditional</span><span class="p" data-group-id="8582945682-4">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_number_system_type</span><span class="p" data-group-id="8868430891-5">(</span><span class="ss">:latn</span><span class="p" data-group-id="8868430891-5">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_number_system_type</span><span class="p" data-group-id="8582945682-5">(</span><span class="ss">:latn</span><span class="p" data-group-id="8582945682-5">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8868430891-6">{</span><span class="w">
|
</span><span class="p" data-group-id="8582945682-6">{</span><span class="w">
|
||||||
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8868430891-7">{</span><span class="nc">Cldr.UnknownNumberSystemTypeError</span><span class="p">,</span><span class="w"> </span><span class="s">"The number system type :latn is unknown"</span><span class="p" data-group-id="8868430891-7">}</span><span class="w">
|
</span><span class="p" data-group-id="8582945682-7">{</span><span class="nc">Cldr.UnknownNumberSystemTypeError</span><span class="p">,</span><span class="w"> </span><span class="s">"The number system type :latn is unknown"</span><span class="p" data-group-id="8582945682-7">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8868430891-6">}</span><span class="w">
|
</span><span class="p" data-group-id="8582945682-6">}</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_number_system_type</span><span class="p" data-group-id="8868430891-8">(</span><span class="s">"bork"</span><span class="p" data-group-id="8868430891-8">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">validate_number_system_type</span><span class="p" data-group-id="8582945682-8">(</span><span class="s">"bork"</span><span class="p" data-group-id="8582945682-8">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8868430891-9">{</span><span class="w">
|
</span><span class="p" data-group-id="8582945682-9">{</span><span class="w">
|
||||||
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8868430891-10">{</span><span class="nc">Cldr.UnknownNumberSystemTypeError</span><span class="p">,</span><span class="w"> </span><span class="s">"The number system type </span><span class="se">\"</span><span class="s">bork</span><span class="se">\"</span><span class="s"> is invalid"</span><span class="p" data-group-id="8868430891-10">}</span><span class="w">
|
</span><span class="p" data-group-id="8582945682-10">{</span><span class="nc">Cldr.UnknownNumberSystemTypeError</span><span class="p">,</span><span class="w"> </span><span class="s">"The number system type </span><span class="se">\"</span><span class="s">bork</span><span class="se">\"</span><span class="s"> is invalid"</span><span class="p" data-group-id="8582945682-10">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8868430891-9">}</span></code></pre>
|
</span><span class="p" data-group-id="8582945682-9">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="validate_territory/1">
|
<section class="detail" id="validate_territory/1">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -879,23 +879,23 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
|||||||
|
|
||||||
<section class="docstring">
|
<section class="docstring">
|
||||||
|
|
||||||
<p>Similar to <code class="inline">insert_all/2</code> but with the following differences:</p><ul><li>accepts rows as streams or lists</li><li>sends rows as a chunked request</li><li>doesn't autogenerate ids or does any other preprocessing</li></ul><p>Example:</p><pre><code class="makeup elixir" translate="no"><span class="nc">Repo</span><span class="o">.</span><span class="n">query!</span><span class="p" data-group-id="6239960923-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="6239960923-1">)</span><span class="w">
|
<p>Similar to <code class="inline">insert_all/2</code> but with the following differences:</p><ul><li>accepts rows as streams or lists</li><li>sends rows as a chunked request</li><li>doesn't autogenerate ids or does any other preprocessing</li></ul><p>Example:</p><pre><code class="makeup elixir" translate="no"><span class="nc">Repo</span><span class="o">.</span><span class="n">query!</span><span class="p" data-group-id="5058263986-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="5058263986-1">)</span><span class="w">
|
||||||
|
|
||||||
</span><span class="kd">defmodule</span><span class="w"> </span><span class="nc">Demo</span><span class="w"> </span><span class="k" data-group-id="6239960923-2">do</span><span class="w">
|
</span><span class="kd">defmodule</span><span class="w"> </span><span class="nc">Demo</span><span class="w"> </span><span class="k" data-group-id="5058263986-2">do</span><span class="w">
|
||||||
</span><span class="kn">use</span><span class="w"> </span><span class="nc">Ecto.Schema</span><span class="w">
|
</span><span class="kn">use</span><span class="w"> </span><span class="nc">Ecto.Schema</span><span class="w">
|
||||||
|
|
||||||
</span><span class="na">@primary_key</span><span class="w"> </span><span class="no">false</span><span class="w">
|
</span><span class="na">@primary_key</span><span class="w"> </span><span class="no">false</span><span class="w">
|
||||||
</span><span class="n">schema</span><span class="w"> </span><span class="s">"ecto_ch_demo"</span><span class="w"> </span><span class="k" data-group-id="6239960923-3">do</span><span class="w">
|
</span><span class="n">schema</span><span class="w"> </span><span class="s">"ecto_ch_demo"</span><span class="w"> </span><span class="k" data-group-id="5058263986-3">do</span><span class="w">
|
||||||
</span><span class="n">field</span><span class="w"> </span><span class="ss">:a</span><span class="p">,</span><span class="w"> </span><span class="nc">Ch</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="s">"UInt64"</span><span class="w">
|
</span><span class="n">field</span><span class="w"> </span><span class="ss">:a</span><span class="p">,</span><span class="w"> </span><span class="nc">Ch</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="s">"UInt64"</span><span class="w">
|
||||||
</span><span class="n">field</span><span class="w"> </span><span class="ss">:b</span><span class="p">,</span><span class="w"> </span><span class="ss">:string</span><span class="w">
|
</span><span class="n">field</span><span class="w"> </span><span class="ss">:b</span><span class="p">,</span><span class="w"> </span><span class="ss">:string</span><span class="w">
|
||||||
</span><span class="k" data-group-id="6239960923-3">end</span><span class="w">
|
</span><span class="k" data-group-id="5058263986-3">end</span><span class="w">
|
||||||
</span><span class="k" data-group-id="6239960923-2">end</span><span class="w">
|
</span><span class="k" data-group-id="5058263986-2">end</span><span class="w">
|
||||||
|
|
||||||
</span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Stream</span><span class="o">.</span><span class="n">map</span><span class="p" data-group-id="6239960923-4">(</span><span class="mi">1</span><span class="o">..</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="k" data-group-id="6239960923-5">fn</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="p" data-group-id="6239960923-6">%{</span><span class="ss">a</span><span class="p">:</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="ss">b</span><span class="p">:</span><span class="w"> </span><span class="n">to_string</span><span class="p" data-group-id="6239960923-7">(</span><span class="n">i</span><span class="p" data-group-id="6239960923-7">)</span><span class="p" data-group-id="6239960923-6">}</span><span class="w"> </span><span class="k" data-group-id="6239960923-5">end</span><span class="p" data-group-id="6239960923-4">)</span><span class="w">
|
</span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Stream</span><span class="o">.</span><span class="n">map</span><span class="p" data-group-id="5058263986-4">(</span><span class="mi">1</span><span class="o">..</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="k" data-group-id="5058263986-5">fn</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="p" data-group-id="5058263986-6">%{</span><span class="ss">a</span><span class="p">:</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="ss">b</span><span class="p">:</span><span class="w"> </span><span class="n">to_string</span><span class="p" data-group-id="5058263986-7">(</span><span class="n">i</span><span class="p" data-group-id="5058263986-7">)</span><span class="p" data-group-id="5058263986-6">}</span><span class="w"> </span><span class="k" data-group-id="5058263986-5">end</span><span class="p" data-group-id="5058263986-4">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6239960923-8">{</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="6239960923-8">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Repo</span><span class="o">.</span><span class="n">insert_stream</span><span class="p" data-group-id="6239960923-9">(</span><span class="nc">Demo</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p" data-group-id="6239960923-9">)</span><span class="w">
|
</span><span class="p" data-group-id="5058263986-8">{</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="5058263986-8">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Repo</span><span class="o">.</span><span class="n">insert_stream</span><span class="p" data-group-id="5058263986-9">(</span><span class="nc">Demo</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p" data-group-id="5058263986-9">)</span><span class="w">
|
||||||
|
|
||||||
</span><span class="c1"># schemaless</span><span class="w">
|
</span><span class="c1"># schemaless</span><span class="w">
|
||||||
</span><span class="p" data-group-id="6239960923-10">{</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="6239960923-10">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Repo</span><span class="o">.</span><span class="n">insert_stream</span><span class="p" data-group-id="6239960923-11">(</span><span class="s">"ecto_ch_demo"</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p">,</span><span class="w"> </span><span class="ss">types</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6239960923-12">[</span><span class="ss">a</span><span class="p">:</span><span class="w"> </span><span class="nc">Ch.Types</span><span class="o">.</span><span class="n">u64</span><span class="p" data-group-id="6239960923-13">(</span><span class="p" data-group-id="6239960923-13">)</span><span class="p">,</span><span class="w"> </span><span class="ss">b</span><span class="p">:</span><span class="w"> </span><span class="ss">:string</span><span class="p" data-group-id="6239960923-12">]</span><span class="p" data-group-id="6239960923-11">)</span></code></pre>
|
</span><span class="p" data-group-id="5058263986-10">{</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="5058263986-10">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Repo</span><span class="o">.</span><span class="n">insert_stream</span><span class="p" data-group-id="5058263986-11">(</span><span class="s">"ecto_ch_demo"</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p">,</span><span class="w"> </span><span class="ss">types</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5058263986-12">[</span><span class="ss">a</span><span class="p">:</span><span class="w"> </span><span class="nc">Ch.Types</span><span class="o">.</span><span class="n">u64</span><span class="p" data-group-id="5058263986-13">(</span><span class="p" data-group-id="5058263986-13">)</span><span class="p">,</span><span class="w"> </span><span class="ss">b</span><span class="p">:</span><span class="w"> </span><span class="ss">:string</span><span class="p" data-group-id="5058263986-12">]</span><span class="p" data-group-id="5058263986-11">)</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="load/2">
|
<section class="detail" id="load/2">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -1196,23 +1196,23 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
|||||||
|
|
||||||
<section class="docstring">
|
<section class="docstring">
|
||||||
|
|
||||||
<p>Similar to <a href="#insert_all/2"><code class="inline">insert_all/2</code></a> but with the following differences:</p><ul><li>accepts rows as streams or lists</li><li>sends rows as a chunked request</li><li>doesn't autogenerate ids or does any other preprocessing</li></ul><p>Example:</p><pre><code class="makeup elixir" translate="no"><span class="nc">Repo</span><span class="o">.</span><span class="n">query!</span><span class="p" data-group-id="5922186242-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="5922186242-1">)</span><span class="w">
|
<p>Similar to <a href="#insert_all/2"><code class="inline">insert_all/2</code></a> but with the following differences:</p><ul><li>accepts rows as streams or lists</li><li>sends rows as a chunked request</li><li>doesn't autogenerate ids or does any other preprocessing</li></ul><p>Example:</p><pre><code class="makeup elixir" translate="no"><span class="nc">Repo</span><span class="o">.</span><span class="n">query!</span><span class="p" data-group-id="8225608951-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="8225608951-1">)</span><span class="w">
|
||||||
|
|
||||||
</span><span class="kd">defmodule</span><span class="w"> </span><span class="nc">Demo</span><span class="w"> </span><span class="k" data-group-id="5922186242-2">do</span><span class="w">
|
</span><span class="kd">defmodule</span><span class="w"> </span><span class="nc">Demo</span><span class="w"> </span><span class="k" data-group-id="8225608951-2">do</span><span class="w">
|
||||||
</span><span class="kn">use</span><span class="w"> </span><span class="nc">Ecto.Schema</span><span class="w">
|
</span><span class="kn">use</span><span class="w"> </span><span class="nc">Ecto.Schema</span><span class="w">
|
||||||
|
|
||||||
</span><span class="na">@primary_key</span><span class="w"> </span><span class="no">false</span><span class="w">
|
</span><span class="na">@primary_key</span><span class="w"> </span><span class="no">false</span><span class="w">
|
||||||
</span><span class="n">schema</span><span class="w"> </span><span class="s">"ecto_ch_demo"</span><span class="w"> </span><span class="k" data-group-id="5922186242-3">do</span><span class="w">
|
</span><span class="n">schema</span><span class="w"> </span><span class="s">"ecto_ch_demo"</span><span class="w"> </span><span class="k" data-group-id="8225608951-3">do</span><span class="w">
|
||||||
</span><span class="n">field</span><span class="w"> </span><span class="ss">:a</span><span class="p">,</span><span class="w"> </span><span class="nc">Ch</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="s">"UInt64"</span><span class="w">
|
</span><span class="n">field</span><span class="w"> </span><span class="ss">:a</span><span class="p">,</span><span class="w"> </span><span class="nc">Ch</span><span class="p">,</span><span class="w"> </span><span class="ss">type</span><span class="p">:</span><span class="w"> </span><span class="s">"UInt64"</span><span class="w">
|
||||||
</span><span class="n">field</span><span class="w"> </span><span class="ss">:b</span><span class="p">,</span><span class="w"> </span><span class="ss">:string</span><span class="w">
|
</span><span class="n">field</span><span class="w"> </span><span class="ss">:b</span><span class="p">,</span><span class="w"> </span><span class="ss">:string</span><span class="w">
|
||||||
</span><span class="k" data-group-id="5922186242-3">end</span><span class="w">
|
</span><span class="k" data-group-id="8225608951-3">end</span><span class="w">
|
||||||
</span><span class="k" data-group-id="5922186242-2">end</span><span class="w">
|
</span><span class="k" data-group-id="8225608951-2">end</span><span class="w">
|
||||||
|
|
||||||
</span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Stream</span><span class="o">.</span><span class="n">map</span><span class="p" data-group-id="5922186242-4">(</span><span class="mi">1</span><span class="o">..</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="k" data-group-id="5922186242-5">fn</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="p" data-group-id="5922186242-6">%{</span><span class="ss">a</span><span class="p">:</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="ss">b</span><span class="p">:</span><span class="w"> </span><span class="n">to_string</span><span class="p" data-group-id="5922186242-7">(</span><span class="n">i</span><span class="p" data-group-id="5922186242-7">)</span><span class="p" data-group-id="5922186242-6">}</span><span class="w"> </span><span class="k" data-group-id="5922186242-5">end</span><span class="p" data-group-id="5922186242-4">)</span><span class="w">
|
</span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Stream</span><span class="o">.</span><span class="n">map</span><span class="p" data-group-id="8225608951-4">(</span><span class="mi">1</span><span class="o">..</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="k" data-group-id="8225608951-5">fn</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">-></span><span class="w"> </span><span class="p" data-group-id="8225608951-6">%{</span><span class="ss">a</span><span class="p">:</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="ss">b</span><span class="p">:</span><span class="w"> </span><span class="n">to_string</span><span class="p" data-group-id="8225608951-7">(</span><span class="n">i</span><span class="p" data-group-id="8225608951-7">)</span><span class="p" data-group-id="8225608951-6">}</span><span class="w"> </span><span class="k" data-group-id="8225608951-5">end</span><span class="p" data-group-id="8225608951-4">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="5922186242-8">{</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="5922186242-8">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Repo</span><span class="o">.</span><span class="n">insert_stream</span><span class="p" data-group-id="5922186242-9">(</span><span class="nc">Demo</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p" data-group-id="5922186242-9">)</span><span class="w">
|
</span><span class="p" data-group-id="8225608951-8">{</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="8225608951-8">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Repo</span><span class="o">.</span><span class="n">insert_stream</span><span class="p" data-group-id="8225608951-9">(</span><span class="nc">Demo</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p" data-group-id="8225608951-9">)</span><span class="w">
|
||||||
|
|
||||||
</span><span class="c1"># schemaless</span><span class="w">
|
</span><span class="c1"># schemaless</span><span class="w">
|
||||||
</span><span class="p" data-group-id="5922186242-10">{</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="5922186242-10">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Repo</span><span class="o">.</span><span class="n">insert_stream</span><span class="p" data-group-id="5922186242-11">(</span><span class="s">"ecto_ch_demo"</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p">,</span><span class="w"> </span><span class="ss">types</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5922186242-12">[</span><span class="ss">a</span><span class="p">:</span><span class="w"> </span><span class="nc">Ch.Types</span><span class="o">.</span><span class="n">u64</span><span class="p" data-group-id="5922186242-13">(</span><span class="p" data-group-id="5922186242-13">)</span><span class="p">,</span><span class="w"> </span><span class="ss">b</span><span class="p">:</span><span class="w"> </span><span class="ss">:string</span><span class="p" data-group-id="5922186242-12">]</span><span class="p" data-group-id="5922186242-11">)</span></code></pre>
|
</span><span class="p" data-group-id="8225608951-10">{</span><span class="mi">100_000</span><span class="p">,</span><span class="w"> </span><span class="no">nil</span><span class="p" data-group-id="8225608951-10">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Repo</span><span class="o">.</span><span class="n">insert_stream</span><span class="p" data-group-id="8225608951-11">(</span><span class="s">"ecto_ch_demo"</span><span class="p">,</span><span class="w"> </span><span class="n">rows</span><span class="p">,</span><span class="w"> </span><span class="ss">types</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8225608951-12">[</span><span class="ss">a</span><span class="p">:</span><span class="w"> </span><span class="nc">Ch.Types</span><span class="o">.</span><span class="n">u64</span><span class="p" data-group-id="8225608951-13">(</span><span class="p" data-group-id="8225608951-13">)</span><span class="p">,</span><span class="w"> </span><span class="ss">b</span><span class="p">:</span><span class="w"> </span><span class="ss">:string</span><span class="p" data-group-id="8225608951-12">]</span><span class="p" data-group-id="8225608951-11">)</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section class="detail" id="load/2">
|
<section class="detail" id="load/2">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -381,7 +381,7 @@ tables into the format of <code class="inline">imported_*</code> tables for a we
|
|||||||
|
|
||||||
<section class="docstring">
|
<section class="docstring">
|
||||||
|
|
||||||
<p>Renders export archive filename.</p><p>Examples:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">archive_filename</span><span class="p" data-group-id="2904728586-1">(</span><span class="s">"plausible.io"</span><span class="p">,</span><span class="w"> </span><span class="c">_created_on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="ld">~D[2024-12-31]</span><span class="p" data-group-id="2904728586-1">)</span><span class="w">
|
<p>Renders export archive filename.</p><p>Examples:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">archive_filename</span><span class="p" data-group-id="4968339997-1">(</span><span class="s">"plausible.io"</span><span class="p">,</span><span class="w"> </span><span class="c">_created_on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="ld">~D[2024-12-31]</span><span class="p" data-group-id="4968339997-1">)</span><span class="w">
|
||||||
</span><span class="s">"plausible_io_20241231.zip"</span></code></pre>
|
</span><span class="s">"plausible_io_20241231.zip"</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -404,10 +404,10 @@ tables into the format of <code class="inline">imported_*</code> tables for a we
|
|||||||
|
|
||||||
<section class="docstring">
|
<section class="docstring">
|
||||||
|
|
||||||
<p>Safely renders content disposition for an arbitrary export filename.</p><p>Examples:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">content_disposition</span><span class="p" data-group-id="7059147192-1">(</span><span class="s">"plausible_io_20241231.zip"</span><span class="p" data-group-id="7059147192-1">)</span><span class="w">
|
<p>Safely renders content disposition for an arbitrary export filename.</p><p>Examples:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">content_disposition</span><span class="p" data-group-id="7727336948-1">(</span><span class="s">"plausible_io_20241231.zip"</span><span class="p" data-group-id="7727336948-1">)</span><span class="w">
|
||||||
</span><span class="s">"attachment; filename=</span><span class="se">\"</span><span class="s">plausible_io_20241231.zip</span><span class="se">\"</span><span class="s">"</span><span class="w">
|
</span><span class="s">"attachment; filename=</span><span class="se">\"</span><span class="s">plausible_io_20241231.zip</span><span class="se">\"</span><span class="s">"</span><span class="w">
|
||||||
|
|
||||||
</span><span class="gp unselectable">iex> </span><span class="n">content_disposition</span><span class="p" data-group-id="7059147192-2">(</span><span class="s">"📊.zip"</span><span class="p" data-group-id="7059147192-2">)</span><span class="w">
|
</span><span class="gp unselectable">iex> </span><span class="n">content_disposition</span><span class="p" data-group-id="7727336948-2">(</span><span class="s">"📊.zip"</span><span class="p" data-group-id="7727336948-2">)</span><span class="w">
|
||||||
</span><span class="s">"attachment; filename=</span><span class="se">\"</span><span class="s">plausible-export.zip</span><span class="se">\"</span><span class="s">; filename*=utf-8''%F0%9F%93%8A.zip"</span></code></pre>
|
</span><span class="s">"attachment; filename=</span><span class="se">\"</span><span class="s">plausible-export.zip</span><span class="se">\"</span><span class="s">; filename*=utf-8''%F0%9F%93%8A.zip"</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -726,14 +726,14 @@ tables into the format of <code class="inline">imported_*</code> tables for a we
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>Creates a streamable Zip archive from the provided (named) Ecto queries.</p><p>Example usage:</p><pre><code class="makeup elixir" translate="no"><span class="p" data-group-id="0081675157-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="n">pool</span><span class="p" data-group-id="0081675157-1">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Ch</span><span class="o">.</span><span class="n">start_link</span><span class="p" data-group-id="0081675157-2">(</span><span class="ss">pool_size</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p" data-group-id="0081675157-2">)</span><span class="w">
|
<p>Creates a streamable Zip archive from the provided (named) Ecto queries.</p><p>Example usage:</p><pre><code class="makeup elixir" translate="no"><span class="p" data-group-id="1672881419-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="n">pool</span><span class="p" data-group-id="1672881419-1">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Ch</span><span class="o">.</span><span class="n">start_link</span><span class="p" data-group-id="1672881419-2">(</span><span class="ss">pool_size</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p" data-group-id="1672881419-2">)</span><span class="w">
|
||||||
|
|
||||||
</span><span class="nc">DBConnection</span><span class="o">.</span><span class="n">run</span><span class="p" data-group-id="0081675157-3">(</span><span class="n">pool</span><span class="p">,</span><span class="w"> </span><span class="k" data-group-id="0081675157-4">fn</span><span class="w"> </span><span class="n">conn</span><span class="w"> </span><span class="o">-></span><span class="w">
|
</span><span class="nc">DBConnection</span><span class="o">.</span><span class="n">run</span><span class="p" data-group-id="1672881419-3">(</span><span class="n">pool</span><span class="p">,</span><span class="w"> </span><span class="k" data-group-id="1672881419-4">fn</span><span class="w"> </span><span class="n">conn</span><span class="w"> </span><span class="o">-></span><span class="w">
|
||||||
</span><span class="n">conn</span><span class="w">
|
</span><span class="n">conn</span><span class="w">
|
||||||
</span><span class="o">|></span><span class="w"> </span><span class="n">stream_archive</span><span class="p" data-group-id="0081675157-5">(</span><span class="n">export_queries</span><span class="p" data-group-id="0081675157-6">(</span><span class="c">_site_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p" data-group-id="0081675157-6">)</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="s">"CSVWithNames"</span><span class="p" data-group-id="0081675157-5">)</span><span class="w">
|
</span><span class="o">|></span><span class="w"> </span><span class="n">stream_archive</span><span class="p" data-group-id="1672881419-5">(</span><span class="n">export_queries</span><span class="p" data-group-id="1672881419-6">(</span><span class="c">_site_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p" data-group-id="1672881419-6">)</span><span class="p">,</span><span class="w"> </span><span class="ss">format</span><span class="p">:</span><span class="w"> </span><span class="s">"CSVWithNames"</span><span class="p" data-group-id="1672881419-5">)</span><span class="w">
|
||||||
</span><span class="o">|></span><span class="w"> </span><span class="nc">Stream</span><span class="o">.</span><span class="n">into</span><span class="p" data-group-id="0081675157-7">(</span><span class="nc">File</span><span class="o">.</span><span class="n">stream!</span><span class="p" data-group-id="0081675157-8">(</span><span class="s">"export.zip"</span><span class="p" data-group-id="0081675157-8">)</span><span class="p" data-group-id="0081675157-7">)</span><span class="w">
|
</span><span class="o">|></span><span class="w"> </span><span class="nc">Stream</span><span class="o">.</span><span class="n">into</span><span class="p" data-group-id="1672881419-7">(</span><span class="nc">File</span><span class="o">.</span><span class="n">stream!</span><span class="p" data-group-id="1672881419-8">(</span><span class="s">"export.zip"</span><span class="p" data-group-id="1672881419-8">)</span><span class="p" data-group-id="1672881419-7">)</span><span class="w">
|
||||||
</span><span class="o">|></span><span class="w"> </span><span class="nc">Stream</span><span class="o">.</span><span class="n">run</span><span class="p" data-group-id="0081675157-9">(</span><span class="p" data-group-id="0081675157-9">)</span><span class="w">
|
</span><span class="o">|></span><span class="w"> </span><span class="nc">Stream</span><span class="o">.</span><span class="n">run</span><span class="p" data-group-id="1672881419-9">(</span><span class="p" data-group-id="1672881419-9">)</span><span class="w">
|
||||||
</span><span class="k" data-group-id="0081675157-4">end</span><span class="p" data-group-id="0081675157-3">)</span></code></pre>
|
</span><span class="k" data-group-id="1672881419-4">end</span><span class="p" data-group-id="1672881419-3">)</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
@ -260,8 +260,8 @@ and MaxMind license key.</p></div>
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<p> In the case of a DB-IP database:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">database_type</span><span class="p" data-group-id="0984017740-1">(</span><span class="p" data-group-id="0984017740-1">)</span><span class="w">
|
<p> In the case of a DB-IP database:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">database_type</span><span class="p" data-group-id="1986028695-1">(</span><span class="p" data-group-id="1986028695-1">)</span><span class="w">
|
||||||
</span><span class="s">"DBIP-City-Lite"</span></code></pre><p> In the case of a MaxMind database:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">database_type</span><span class="p" data-group-id="6559184503-1">(</span><span class="p" data-group-id="6559184503-1">)</span><span class="w">
|
</span><span class="s">"DBIP-City-Lite"</span></code></pre><p> In the case of a MaxMind database:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">database_type</span><span class="p" data-group-id="0209994922-1">(</span><span class="p" data-group-id="0209994922-1">)</span><span class="w">
|
||||||
</span><span class="s">"GeoLite2-City"</span></code></pre>
|
</span><span class="s">"GeoLite2-City"</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -302,8 +302,8 @@ asynchronously.</p></li></ul><h2 id="load_db/1-examples" class="section-heading"
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<p> Loading from a local file:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">load_db</span><span class="p" data-group-id="2771002681-1">(</span><span class="ss">path</span><span class="p">:</span><span class="w"> </span><span class="s">"/etc/plausible/dbip-city.mmdb"</span><span class="p" data-group-id="2771002681-1">)</span><span class="w">
|
<p> Loading from a local file:</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">load_db</span><span class="p" data-group-id="9335791867-1">(</span><span class="ss">path</span><span class="p">:</span><span class="w"> </span><span class="s">"/etc/plausible/dbip-city.mmdb"</span><span class="p" data-group-id="9335791867-1">)</span><span class="w">
|
||||||
</span><span class="ss">:ok</span></code></pre><p> Downloading a MaxMind DB (this license key is no longer active):</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">load_db</span><span class="p" data-group-id="4385624665-1">(</span><span class="ss">license_key</span><span class="p">:</span><span class="w"> </span><span class="s">"LNpsJCCKPis6XvBP"</span><span class="p">,</span><span class="w"> </span><span class="ss">edition</span><span class="p">:</span><span class="w"> </span><span class="s">"GeoLite2-City"</span><span class="p">,</span><span class="w"> </span><span class="ss">async</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="p" data-group-id="4385624665-1">)</span><span class="w">
|
</span><span class="ss">:ok</span></code></pre><p> Downloading a MaxMind DB (this license key is no longer active):</p><pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">load_db</span><span class="p" data-group-id="3301078128-1">(</span><span class="ss">license_key</span><span class="p">:</span><span class="w"> </span><span class="s">"LNpsJCCKPis6XvBP"</span><span class="p">,</span><span class="w"> </span><span class="ss">edition</span><span class="p">:</span><span class="w"> </span><span class="s">"GeoLite2-City"</span><span class="p">,</span><span class="w"> </span><span class="ss">async</span><span class="p">:</span><span class="w"> </span><span class="no">true</span><span class="p" data-group-id="3301078128-1">)</span><span class="w">
|
||||||
</span><span class="ss">:ok</span></code></pre>
|
</span><span class="ss">:ok</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@ -332,21 +332,21 @@ asynchronously.</p></li></ul><h2 id="load_db/1-examples" class="section-heading"
|
|||||||
</a>
|
</a>
|
||||||
<span class="text">Examples</span>
|
<span class="text">Examples</span>
|
||||||
</h2>
|
</h2>
|
||||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">lookup</span><span class="p" data-group-id="8018656238-1">(</span><span class="s">"8.7.6.5"</span><span class="p" data-group-id="8018656238-1">)</span><span class="w">
|
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="n">lookup</span><span class="p" data-group-id="4355642216-1">(</span><span class="s">"8.7.6.5"</span><span class="p" data-group-id="4355642216-1">)</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-2">%{</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-2">%{</span><span class="w">
|
||||||
</span><span class="s">"city"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8018656238-3">%{</span><span class="w">
|
</span><span class="s">"city"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4355642216-3">%{</span><span class="w">
|
||||||
</span><span class="s">"geoname_id"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">5349755</span><span class="p">,</span><span class="w">
|
</span><span class="s">"geoname_id"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">5349755</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"names"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8018656238-4">%{</span><span class="w">
|
</span><span class="s">"names"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4355642216-4">%{</span><span class="w">
|
||||||
</span><span class="s">"de"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Fontana"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"de"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Fontana"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"en"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Fontana"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"en"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Fontana"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"ja"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"フォンタナ"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"ja"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"フォンタナ"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"ru"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Фонтана"</span><span class="w">
|
</span><span class="s">"ru"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Фонтана"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-4">}</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-4">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-3">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-3">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"continent"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8018656238-5">%{</span><span class="w">
|
</span><span class="s">"continent"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4355642216-5">%{</span><span class="w">
|
||||||
</span><span class="s">"code"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"NA"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"code"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"NA"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"geoname_id"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">6255149</span><span class="p">,</span><span class="w">
|
</span><span class="s">"geoname_id"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">6255149</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"names"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8018656238-6">%{</span><span class="w">
|
</span><span class="s">"names"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4355642216-6">%{</span><span class="w">
|
||||||
</span><span class="s">"de"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Nordamerika"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"de"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Nordamerika"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"en"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"North America"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"en"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"North America"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"es"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Norteamérica"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"es"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Norteamérica"</span><span class="p">,</span><span class="w">
|
||||||
@ -355,12 +355,12 @@ asynchronously.</p></li></ul><h2 id="load_db/1-examples" class="section-heading"
|
|||||||
</span><span class="s">"pt-BR"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"América do Norte"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"pt-BR"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"América do Norte"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"ru"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Северная Америка"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"ru"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Северная Америка"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"zh-CN"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"北美洲"</span><span class="w">
|
</span><span class="s">"zh-CN"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"北美洲"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-6">}</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-6">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-5">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-5">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"country"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8018656238-7">%{</span><span class="w">
|
</span><span class="s">"country"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4355642216-7">%{</span><span class="w">
|
||||||
</span><span class="s">"geoname_id"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">6252001</span><span class="p">,</span><span class="w">
|
</span><span class="s">"geoname_id"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">6252001</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"iso_code"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"US"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"iso_code"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"US"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"names"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8018656238-8">%{</span><span class="w">
|
</span><span class="s">"names"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4355642216-8">%{</span><span class="w">
|
||||||
</span><span class="s">"de"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Vereinigte Staaten"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"de"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Vereinigte Staaten"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"en"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"United States"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"en"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"United States"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"es"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Estados Unidos"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"es"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Estados Unidos"</span><span class="p">,</span><span class="w">
|
||||||
@ -369,20 +369,20 @@ asynchronously.</p></li></ul><h2 id="load_db/1-examples" class="section-heading"
|
|||||||
</span><span class="s">"pt-BR"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"EUA"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"pt-BR"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"EUA"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"ru"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"США"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"ru"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"США"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"zh-CN"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"美国"</span><span class="w">
|
</span><span class="s">"zh-CN"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"美国"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-8">}</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-8">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-7">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-7">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"location"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8018656238-9">%{</span><span class="w">
|
</span><span class="s">"location"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4355642216-9">%{</span><span class="w">
|
||||||
</span><span class="s">"accuracy_radius"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">50</span><span class="p">,</span><span class="w">
|
</span><span class="s">"accuracy_radius"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">50</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"latitude"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mf">34.1211</span><span class="p">,</span><span class="w">
|
</span><span class="s">"latitude"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mf">34.1211</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"longitude"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="o">-</span><span class="mf">117.4362</span><span class="p">,</span><span class="w">
|
</span><span class="s">"longitude"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="o">-</span><span class="mf">117.4362</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"metro_code"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">803</span><span class="p">,</span><span class="w">
|
</span><span class="s">"metro_code"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">803</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"time_zone"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"America/Los_Angeles"</span><span class="w">
|
</span><span class="s">"time_zone"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"America/Los_Angeles"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-9">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-9">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"postal"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8018656238-10">%{</span><span class="s">"code"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"92336"</span><span class="p" data-group-id="8018656238-10">}</span><span class="p">,</span><span class="w">
|
</span><span class="s">"postal"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4355642216-10">%{</span><span class="s">"code"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"92336"</span><span class="p" data-group-id="4355642216-10">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"registered_country"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8018656238-11">%{</span><span class="w">
|
</span><span class="s">"registered_country"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4355642216-11">%{</span><span class="w">
|
||||||
</span><span class="s">"geoname_id"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">6252001</span><span class="p">,</span><span class="w">
|
</span><span class="s">"geoname_id"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">6252001</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"iso_code"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"US"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"iso_code"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"US"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"names"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8018656238-12">%{</span><span class="w">
|
</span><span class="s">"names"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4355642216-12">%{</span><span class="w">
|
||||||
</span><span class="s">"de"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Vereinigte Staaten"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"de"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Vereinigte Staaten"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"en"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"United States"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"en"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"United States"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"es"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Estados Unidos"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"es"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Estados Unidos"</span><span class="p">,</span><span class="w">
|
||||||
@ -391,13 +391,13 @@ asynchronously.</p></li></ul><h2 id="load_db/1-examples" class="section-heading"
|
|||||||
</span><span class="s">"pt-BR"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"EUA"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"pt-BR"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"EUA"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"ru"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"США"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"ru"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"США"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"zh-CN"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"美国"</span><span class="w">
|
</span><span class="s">"zh-CN"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"美国"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-12">}</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-12">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-11">}</span><span class="p">,</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-11">}</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"subdivisions"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8018656238-13">[</span><span class="w">
|
</span><span class="s">"subdivisions"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4355642216-13">[</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-14">%{</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-14">%{</span><span class="w">
|
||||||
</span><span class="s">"geoname_id"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">5332921</span><span class="p">,</span><span class="w">
|
</span><span class="s">"geoname_id"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="mi">5332921</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"iso_code"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"CA"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"iso_code"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"CA"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"names"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8018656238-15">%{</span><span class="w">
|
</span><span class="s">"names"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4355642216-15">%{</span><span class="w">
|
||||||
</span><span class="s">"de"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Kalifornien"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"de"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Kalifornien"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"en"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"California"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"en"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"California"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"es"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"California"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"es"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"California"</span><span class="p">,</span><span class="w">
|
||||||
@ -406,10 +406,10 @@ asynchronously.</p></li></ul><h2 id="load_db/1-examples" class="section-heading"
|
|||||||
</span><span class="s">"pt-BR"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Califórnia"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"pt-BR"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Califórnia"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"ru"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Калифорния"</span><span class="p">,</span><span class="w">
|
</span><span class="s">"ru"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"Калифорния"</span><span class="p">,</span><span class="w">
|
||||||
</span><span class="s">"zh-CN"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"加州"</span><span class="w">
|
</span><span class="s">"zh-CN"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="s">"加州"</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-15">}</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-15">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-14">}</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-14">}</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-13">]</span><span class="w">
|
</span><span class="p" data-group-id="4355642216-13">]</span><span class="w">
|
||||||
</span><span class="p" data-group-id="8018656238-2">}</span></code></pre>
|
</span><span class="p" data-group-id="4355642216-2">}</span></code></pre>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||||
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
<script src="dist/handlebars.templates-43PMFBC7.js"></script>
|
||||||
<script src="dist/sidebar_items-800E1FDC.js"></script>
|
<script src="dist/sidebar_items-DEB0EA1A.js"></script>
|
||||||
|
|
||||||
<script src="docs_config.js"></script>
|
<script src="docs_config.js"></script>
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user