mirror of
https://github.com/plausible/analytics.git
synced 2024-12-22 17:11:36 +03:00
deploy: cba5f55ba1
This commit is contained in:
parent
ef10cbcabf
commit
99cf83f6dd
4
.build
4
.build
@ -312,8 +312,8 @@ assets/logo.png
|
||||
contributing.html
|
||||
dist/handlebars.runtime-NWIB6V2M.js
|
||||
dist/handlebars.templates-43PMFBC7.js
|
||||
dist/html-CILPWI2Q.js
|
||||
dist/html-elixir-3ZLIM5JF.css
|
||||
dist/html-L4O5OK2K.js
|
||||
dist/html-elixir-FM2CSD74.css
|
||||
dist/inconsolata-latin-400-normal-RGKDDNDD.woff2
|
||||
dist/inconsolata-latin-700-normal-DTS2D7TO.woff2
|
||||
dist/inconsolata-latin-ext-400-normal-K7HVGTP7.woff2
|
||||
|
17
404.html
17
404.html
@ -4,14 +4,14 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<meta name="robots" content="noindex">
|
||||
|
||||
<title>404 — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -41,10 +41,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -119,13 +121,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -155,7 +158,7 @@ to find what you were looking for.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>mix cancel_subscription — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -225,7 +228,7 @@ is changed with that action.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>mix clean_clickhouse — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -218,7 +221,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>mix create_free_subscription — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -248,7 +251,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>mix download_country_database — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -223,7 +226,7 @@ Plausible Cloud runs a paid version of DB-IP with more detailed geolocation data
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>mix generate_referrer_favicons — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -218,7 +221,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>mix pull_sandbox_subscription — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -218,7 +221,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>mix send_pageview — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -223,7 +226,7 @@ way to generate a pageview or custom event, either in your development environme
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>ObanErrorReporter — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -216,7 +219,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.AsyncInsertRepo — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -1140,23 +1143,23 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
||||
|
||||
<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="8262333131-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="8262333131-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="1768163246-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="1768163246-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="8262333131-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="1768163246-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="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="8262333131-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="1768163246-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">: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="8262333131-3">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="8262333131-2">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="1768163246-3">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="1768163246-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="8262333131-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="8262333131-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="8262333131-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="8262333131-7">(</span><span class="n">i</span><span class="p" data-group-id="8262333131-7">)</span><span class="p" data-group-id="8262333131-6">}</span><span class="w"> </span><span class="k" data-group-id="8262333131-5">end</span><span class="p" data-group-id="8262333131-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="8262333131-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="8262333131-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="8262333131-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="8262333131-9">)</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="1768163246-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="1768163246-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="1768163246-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="1768163246-7">(</span><span class="n">i</span><span class="p" data-group-id="1768163246-7">)</span><span class="p" data-group-id="1768163246-6">}</span><span class="w"> </span><span class="k" data-group-id="1768163246-5">end</span><span class="p" data-group-id="1768163246-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1768163246-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="1768163246-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="1768163246-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="1768163246-9">)</span><span class="w">
|
||||
|
||||
</span><span class="c1"># schemaless</span><span class="w">
|
||||
</span><span class="p" data-group-id="8262333131-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="8262333131-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="8262333131-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="8262333131-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="8262333131-13">(</span><span class="p" data-group-id="8262333131-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="8262333131-12">]</span><span class="p" data-group-id="8262333131-11">)</span></code></pre>
|
||||
</span><span class="p" data-group-id="1768163246-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="1768163246-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="1768163246-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="1768163246-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="1768163246-13">(</span><span class="p" data-group-id="1768163246-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="1768163246-12">]</span><span class="p" data-group-id="1768163246-11">)</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="load/2">
|
||||
@ -1584,7 +1587,7 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.ApiKey — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -377,7 +380,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.ApiKeyAdmin — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -366,7 +369,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.EmailActivationCode — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -323,7 +326,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.EmailVerification — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -339,7 +342,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.GracePeriod — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -492,7 +495,7 @@ CRM.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.Invitation — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -284,7 +287,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.Password — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -276,7 +279,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.TOTP.EncryptedBinary — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -162,7 +165,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.TOTP.RecoveryCode — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -399,7 +402,7 @@ and 10 characters long.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.TOTP.Vault — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -254,7 +257,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.TOTP — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -621,7 +624,7 @@ effectively invalidate all trusted devices for a given user.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.Token — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -306,7 +309,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.User — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -696,7 +699,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth.UserAdmin — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -336,7 +339,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Auth — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -508,7 +511,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Billing.Ecto.Feature — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -384,7 +387,7 @@ as <code class="inline">Plausible.Billing.Feature.Props</code>.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Billing.Ecto.FeatureList — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -414,7 +417,7 @@ render the HTML input correctly.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Billing.Ecto.Limit — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -414,7 +417,7 @@ keep compatibility with the rest of the codebase.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Billing.EnterprisePlan — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -218,7 +221,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Billing.EnterprisePlanAdmin — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -336,7 +339,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Billing.Feature — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -620,7 +623,7 @@ have access to.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Billing.PaddleApi — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -403,7 +406,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Billing.Plans — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -709,7 +712,7 @@ given plan and returns the new list of plans with completed information.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Billing.Quota — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -724,12 +727,12 @@ this user owns + StatsAPI if the user has a configured Stats API key.</p><p>Give
|
||||
|
||||
<p>Queries the ClickHouse database for the monthly pageview usage. If the given user's
|
||||
subscription is <code class="inline">active</code>, <code class="inline">past_due</code>, or a <code class="inline">deleted</code> (but not yet expired), a map
|
||||
with the following structure is returned:</p><pre><code class="makeup elixir" translate="no"><span class="p" data-group-id="7687876234-1">%{</span><span class="w">
|
||||
</span><span class="ss">current_cycle</span><span class="p">:</span><span class="w"> </span><span class="n">usage_cycle</span><span class="p" data-group-id="7687876234-2">(</span><span class="p" data-group-id="7687876234-2">)</span><span class="p">,</span><span class="w">
|
||||
</span><span class="ss">last_cycle</span><span class="p">:</span><span class="w"> </span><span class="n">usage_cycle</span><span class="p" data-group-id="7687876234-3">(</span><span class="p" data-group-id="7687876234-3">)</span><span class="p">,</span><span class="w">
|
||||
</span><span class="ss">penultimate_cycle</span><span class="p">:</span><span class="w"> </span><span class="n">usage_cycle</span><span class="p" data-group-id="7687876234-4">(</span><span class="p" data-group-id="7687876234-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7687876234-1">}</span></code></pre><p>In all other cases of the subscription status (or a <code class="inline">free_10k</code> subscription which
|
||||
does not have a <code class="inline">last_bill_date</code> defined) - the following structure is returned:</p><pre><code class="makeup elixir" translate="no"><span class="p" data-group-id="6678015945-1">%{</span><span class="ss">last_30_days</span><span class="p">:</span><span class="w"> </span><span class="n">usage_cycle</span><span class="p" data-group-id="6678015945-2">(</span><span class="p" data-group-id="6678015945-2">)</span><span class="p" data-group-id="6678015945-1">}</span></code></pre><p>Given only a user as input, the usage is queried from across all the sites that the
|
||||
with the following structure is returned:</p><pre><code class="makeup elixir" translate="no"><span class="p" data-group-id="6958087046-1">%{</span><span class="w">
|
||||
</span><span class="ss">current_cycle</span><span class="p">:</span><span class="w"> </span><span class="n">usage_cycle</span><span class="p" data-group-id="6958087046-2">(</span><span class="p" data-group-id="6958087046-2">)</span><span class="p">,</span><span class="w">
|
||||
</span><span class="ss">last_cycle</span><span class="p">:</span><span class="w"> </span><span class="n">usage_cycle</span><span class="p" data-group-id="6958087046-3">(</span><span class="p" data-group-id="6958087046-3">)</span><span class="p">,</span><span class="w">
|
||||
</span><span class="ss">penultimate_cycle</span><span class="p">:</span><span class="w"> </span><span class="n">usage_cycle</span><span class="p" data-group-id="6958087046-4">(</span><span class="p" data-group-id="6958087046-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6958087046-1">}</span></code></pre><p>In all other cases of the subscription status (or a <code class="inline">free_10k</code> subscription which
|
||||
does not have a <code class="inline">last_bill_date</code> defined) - the following structure is returned:</p><pre><code class="makeup elixir" translate="no"><span class="p" data-group-id="5621600928-1">%{</span><span class="ss">last_30_days</span><span class="p">:</span><span class="w"> </span><span class="n">usage_cycle</span><span class="p" data-group-id="5621600928-2">(</span><span class="p" data-group-id="5621600928-2">)</span><span class="p" data-group-id="5621600928-1">}</span></code></pre><p>Given only a user as input, the usage is queried from across all the sites that the
|
||||
user owns. Alternatively, given an optional argument of <code class="inline">site_ids</code>, the usage from
|
||||
across all those sites is queried instead.</p>
|
||||
</section>
|
||||
@ -976,7 +979,7 @@ Returns true if usage is equal to the limit.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Billing.SiteLocker — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -393,7 +396,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Billing.Subscription.Status — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -568,7 +571,7 @@ they want to upgrade again, new billing details have to be provided.</p></li></u
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Billing — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -662,7 +665,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.ChangesetHelpers — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -220,7 +223,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.AcceptLanguage — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -145,7 +148,7 @@ Pages
|
||||
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.37.5/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="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="0317810986-1">(</span><span class="w"> </span><span class="p" data-group-id="0317810986-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="0317810986-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="0317810986-3">)</span><span class="w"> </span><span class="p" data-group-id="0317810986-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="0317810986-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="8825983669-1">(</span><span class="w"> </span><span class="p" data-group-id="8825983669-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="8825983669-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="8825983669-3">)</span><span class="w"> </span><span class="p" data-group-id="8825983669-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="8825983669-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
|
||||
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>
|
||||
@ -258,54 +261,54 @@ a configured <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.html"><code class="
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="3500462777-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="3500462777-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3500462777-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3500462777-3">%</span><span class="nc" data-group-id="3500462777-3">Cldr.LanguageTag</span><span class="p" data-group-id="3500462777-3">{</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="9463405499-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="9463405499-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9463405499-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="9463405499-3">%</span><span class="nc" data-group-id="9463405499-3">Cldr.LanguageTag</span><span class="p" data-group-id="9463405499-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">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">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3500462777-4">[</span><span class="p" data-group-id="3500462777-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="3500462777-5">%{</span><span class="p" data-group-id="3500462777-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="9463405499-4">[</span><span class="p" data-group-id="9463405499-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="9463405499-5">%{</span><span class="p" data-group-id="9463405499-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">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="3500462777-6">%{</span><span class="p" data-group-id="3500462777-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="3500462777-7">[</span><span class="p" data-group-id="3500462777-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="9463405499-6">%{</span><span class="p" data-group-id="9463405499-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="9463405499-7">[</span><span class="p" data-group-id="9463405499-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">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">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="3500462777-8">%{</span><span class="p" data-group-id="3500462777-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="3500462777-9">[</span><span class="p" data-group-id="3500462777-9">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="3500462777-3">}</span><span class="p" data-group-id="3500462777-2">}</span><span class="w">
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9463405499-8">%{</span><span class="p" data-group-id="9463405499-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="9463405499-9">[</span><span class="p" data-group-id="9463405499-9">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="9463405499-3">}</span><span class="p" data-group-id="9463405499-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="3500462777-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="3500462777-10">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3500462777-11">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3500462777-12">%</span><span class="nc" data-group-id="3500462777-12">Cldr.LanguageTag</span><span class="p" data-group-id="3500462777-12">{</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="9463405499-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="9463405499-10">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9463405499-11">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="9463405499-12">%</span><span class="nc" data-group-id="9463405499-12">Cldr.LanguageTag</span><span class="p" data-group-id="9463405499-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">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">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3500462777-13">[</span><span class="p" data-group-id="3500462777-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="3500462777-14">%{</span><span class="p" data-group-id="3500462777-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="9463405499-13">[</span><span class="p" data-group-id="9463405499-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="9463405499-14">%{</span><span class="p" data-group-id="9463405499-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">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="3500462777-15">%{</span><span class="p" data-group-id="3500462777-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="3500462777-16">[</span><span class="p" data-group-id="3500462777-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="9463405499-15">%{</span><span class="p" data-group-id="9463405499-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="9463405499-16">[</span><span class="p" data-group-id="9463405499-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">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">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="3500462777-17">%{</span><span class="p" data-group-id="3500462777-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="3500462777-18">[</span><span class="p" data-group-id="3500462777-18">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="3500462777-12">}</span><span class="p" data-group-id="3500462777-11">}</span><span class="w">
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9463405499-17">%{</span><span class="p" data-group-id="9463405499-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="9463405499-18">[</span><span class="p" data-group-id="9463405499-18">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="9463405499-12">}</span><span class="p" data-group-id="9463405499-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="3500462777-19">(</span><span class="s">"xx,yy;q=0.3"</span><span class="p" data-group-id="3500462777-19">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3500462777-20">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3500462777-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="3500462777-21">}</span><span class="p" data-group-id="3500462777-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="9463405499-19">(</span><span class="s">"xx,yy;q=0.3"</span><span class="p" data-group-id="9463405499-19">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9463405499-20">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="9463405499-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="9463405499-21">}</span><span class="p" data-group-id="9463405499-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="3500462777-22">(</span><span class="s">"invalid_tag"</span><span class="p" data-group-id="3500462777-22">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3500462777-23">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3500462777-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="3500462777-24">}</span><span class="p" data-group-id="3500462777-23">}</span></code></pre>
|
||||
</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="9463405499-22">(</span><span class="s">"invalid_tag"</span><span class="p" data-group-id="9463405499-22">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9463405499-23">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9463405499-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="9463405499-24">}</span><span class="p" data-group-id="9463405499-23">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="parse/1">
|
||||
@ -366,95 +369,95 @@ wuth an error tuple for each invalid tag added at the end of the list.</p><h2 id
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="1387994175-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="1387994175-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-3">[</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-4">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-5">%</span><span class="nc" data-group-id="1387994175-5">Cldr.LanguageTag</span><span class="p" data-group-id="1387994175-5">{</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="7664928276-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="7664928276-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-3">[</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-4">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-5">%</span><span class="nc" data-group-id="7664928276-5">Cldr.LanguageTag</span><span class="p" data-group-id="7664928276-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">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">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1387994175-6">[</span><span class="p" data-group-id="1387994175-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="1387994175-7">%{</span><span class="p" data-group-id="1387994175-7">}</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="7664928276-6">[</span><span class="p" data-group-id="7664928276-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="7664928276-7">%{</span><span class="p" data-group-id="7664928276-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">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="1387994175-8">%{</span><span class="p" data-group-id="1387994175-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="1387994175-9">[</span><span class="p" data-group-id="1387994175-9">]</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="7664928276-8">%{</span><span class="p" data-group-id="7664928276-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="7664928276-9">[</span><span class="p" data-group-id="7664928276-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">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">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="1387994175-10">%{</span><span class="p" data-group-id="1387994175-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="1387994175-11">[</span><span class="p" data-group-id="1387994175-11">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-5">}</span><span class="p" data-group-id="1387994175-4">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-12">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-13">%</span><span class="nc" data-group-id="1387994175-13">Cldr.LanguageTag</span><span class="p" data-group-id="1387994175-13">{</span><span class="w">
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7664928276-10">%{</span><span class="p" data-group-id="7664928276-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="7664928276-11">[</span><span class="p" data-group-id="7664928276-11">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-5">}</span><span class="p" data-group-id="7664928276-4">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-12">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-13">%</span><span class="nc" data-group-id="7664928276-13">Cldr.LanguageTag</span><span class="p" data-group-id="7664928276-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">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">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1387994175-14">[</span><span class="p" data-group-id="1387994175-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="1387994175-15">%{</span><span class="p" data-group-id="1387994175-15">}</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="7664928276-14">[</span><span class="p" data-group-id="7664928276-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="7664928276-15">%{</span><span class="p" data-group-id="7664928276-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">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="1387994175-16">%{</span><span class="p" data-group-id="1387994175-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="1387994175-17">[</span><span class="p" data-group-id="1387994175-17">]</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="7664928276-16">%{</span><span class="p" data-group-id="7664928276-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="7664928276-17">[</span><span class="p" data-group-id="7664928276-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">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">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="1387994175-18">%{</span><span class="p" data-group-id="1387994175-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="1387994175-19">[</span><span class="p" data-group-id="1387994175-19">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-13">}</span><span class="p" data-group-id="1387994175-12">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-3">]</span><span class="p" data-group-id="1387994175-2">}</span><span class="w">
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7664928276-18">%{</span><span class="p" data-group-id="7664928276-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="7664928276-19">[</span><span class="p" data-group-id="7664928276-19">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-13">}</span><span class="p" data-group-id="7664928276-12">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-3">]</span><span class="p" data-group-id="7664928276-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="1387994175-20">(</span><span class="s">"invalid_tag"</span><span class="p" data-group-id="1387994175-20">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-21">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-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="1387994175-22">}</span><span class="p" data-group-id="1387994175-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="7664928276-20">(</span><span class="s">"invalid_tag"</span><span class="p" data-group-id="7664928276-20">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-21">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-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="7664928276-22">}</span><span class="p" data-group-id="7664928276-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="1387994175-23">(</span><span class="s">"da,zh-TW;q=0.3,invalid_tag"</span><span class="p" data-group-id="1387994175-23">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-24">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-25">[</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-26">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-27">%</span><span class="nc" data-group-id="1387994175-27">Cldr.LanguageTag</span><span class="p" data-group-id="1387994175-27">{</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="7664928276-23">(</span><span class="s">"da,zh-TW;q=0.3,invalid_tag"</span><span class="p" data-group-id="7664928276-23">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-24">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-25">[</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-26">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-27">%</span><span class="nc" data-group-id="7664928276-27">Cldr.LanguageTag</span><span class="p" data-group-id="7664928276-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">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">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1387994175-28">[</span><span class="p" data-group-id="1387994175-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="1387994175-29">%{</span><span class="p" data-group-id="1387994175-29">}</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="7664928276-28">[</span><span class="p" data-group-id="7664928276-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="7664928276-29">%{</span><span class="p" data-group-id="7664928276-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">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="1387994175-30">%{</span><span class="p" data-group-id="1387994175-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="1387994175-31">[</span><span class="p" data-group-id="1387994175-31">]</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="7664928276-30">%{</span><span class="p" data-group-id="7664928276-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="7664928276-31">[</span><span class="p" data-group-id="7664928276-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">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">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="1387994175-32">%{</span><span class="p" data-group-id="1387994175-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="1387994175-33">[</span><span class="p" data-group-id="1387994175-33">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-27">}</span><span class="p" data-group-id="1387994175-26">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-34">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-35">%</span><span class="nc" data-group-id="1387994175-35">Cldr.LanguageTag</span><span class="p" data-group-id="1387994175-35">{</span><span class="w">
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7664928276-32">%{</span><span class="p" data-group-id="7664928276-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="7664928276-33">[</span><span class="p" data-group-id="7664928276-33">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-27">}</span><span class="p" data-group-id="7664928276-26">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-34">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-35">%</span><span class="nc" data-group-id="7664928276-35">Cldr.LanguageTag</span><span class="p" data-group-id="7664928276-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">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">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1387994175-36">[</span><span class="p" data-group-id="1387994175-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="1387994175-37">%{</span><span class="p" data-group-id="1387994175-37">}</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="7664928276-36">[</span><span class="p" data-group-id="7664928276-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="7664928276-37">%{</span><span class="p" data-group-id="7664928276-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">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="1387994175-38">%{</span><span class="p" data-group-id="1387994175-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="1387994175-39">[</span><span class="p" data-group-id="1387994175-39">]</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="7664928276-38">%{</span><span class="p" data-group-id="7664928276-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="7664928276-39">[</span><span class="p" data-group-id="7664928276-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">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">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="1387994175-40">%{</span><span class="p" data-group-id="1387994175-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="1387994175-41">[</span><span class="p" data-group-id="1387994175-41">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-35">}</span><span class="p" data-group-id="1387994175-34">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-42">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-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="1387994175-43">}</span><span class="p" data-group-id="1387994175-42">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="1387994175-25">]</span><span class="p" data-group-id="1387994175-24">}</span></code></pre>
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7664928276-40">%{</span><span class="p" data-group-id="7664928276-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="7664928276-41">[</span><span class="p" data-group-id="7664928276-41">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-35">}</span><span class="p" data-group-id="7664928276-34">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-42">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-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="7664928276-43">}</span><span class="p" data-group-id="7664928276-42">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7664928276-25">]</span><span class="p" data-group-id="7664928276-24">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="parse!/1">
|
||||
@ -499,92 +502,92 @@ wuth an error tuple for each invalid tag added at the end of the list.</p><h2 id
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="3641973297-1">(</span><span class="s">"da,zh-TW;q=0.3"</span><span class="p" data-group-id="3641973297-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-2">[</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-3">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-4">%</span><span class="nc" data-group-id="3641973297-4">Cldr.LanguageTag</span><span class="p" data-group-id="3641973297-4">{</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="7473505753-1">(</span><span class="s">"da,zh-TW;q=0.3"</span><span class="p" data-group-id="7473505753-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-2">[</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-3">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-4">%</span><span class="nc" data-group-id="7473505753-4">Cldr.LanguageTag</span><span class="p" data-group-id="7473505753-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">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">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3641973297-5">[</span><span class="p" data-group-id="3641973297-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="3641973297-6">%{</span><span class="p" data-group-id="3641973297-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="7473505753-5">[</span><span class="p" data-group-id="7473505753-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="7473505753-6">%{</span><span class="p" data-group-id="7473505753-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">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="3641973297-7">%{</span><span class="p" data-group-id="3641973297-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="3641973297-8">[</span><span class="p" data-group-id="3641973297-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="7473505753-7">%{</span><span class="p" data-group-id="7473505753-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="7473505753-8">[</span><span class="p" data-group-id="7473505753-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">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">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="3641973297-9">%{</span><span class="p" data-group-id="3641973297-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="3641973297-10">[</span><span class="p" data-group-id="3641973297-10">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-4">}</span><span class="p" data-group-id="3641973297-3">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-11">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-12">%</span><span class="nc" data-group-id="3641973297-12">Cldr.LanguageTag</span><span class="p" data-group-id="3641973297-12">{</span><span class="w">
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7473505753-9">%{</span><span class="p" data-group-id="7473505753-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="7473505753-10">[</span><span class="p" data-group-id="7473505753-10">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-4">}</span><span class="p" data-group-id="7473505753-3">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-11">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-12">%</span><span class="nc" data-group-id="7473505753-12">Cldr.LanguageTag</span><span class="p" data-group-id="7473505753-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">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">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3641973297-13">[</span><span class="p" data-group-id="3641973297-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="3641973297-14">%{</span><span class="p" data-group-id="3641973297-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="7473505753-13">[</span><span class="p" data-group-id="7473505753-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="7473505753-14">%{</span><span class="p" data-group-id="7473505753-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">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="3641973297-15">%{</span><span class="p" data-group-id="3641973297-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="3641973297-16">[</span><span class="p" data-group-id="3641973297-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="7473505753-15">%{</span><span class="p" data-group-id="7473505753-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="7473505753-16">[</span><span class="p" data-group-id="7473505753-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">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">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="3641973297-17">%{</span><span class="p" data-group-id="3641973297-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="3641973297-18">[</span><span class="p" data-group-id="3641973297-18">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-12">}</span><span class="p" data-group-id="3641973297-11">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-2">]</span><span class="w">
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7473505753-17">%{</span><span class="p" data-group-id="7473505753-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="7473505753-18">[</span><span class="p" data-group-id="7473505753-18">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-12">}</span><span class="p" data-group-id="7473505753-11">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-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="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">
|
||||
|
||||
</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="3641973297-19">(</span><span class="s">"da,zh-TW;q=0.3,invalid_tag"</span><span class="p" data-group-id="3641973297-19">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-20">[</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-21">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-22">%</span><span class="nc" data-group-id="3641973297-22">Cldr.LanguageTag</span><span class="p" data-group-id="3641973297-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">parse!</span><span class="p" data-group-id="7473505753-19">(</span><span class="s">"da,zh-TW;q=0.3,invalid_tag"</span><span class="p" data-group-id="7473505753-19">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-20">[</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-21">{</span><span class="mf">1.0</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-22">%</span><span class="nc" data-group-id="7473505753-22">Cldr.LanguageTag</span><span class="p" data-group-id="7473505753-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">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">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3641973297-23">[</span><span class="p" data-group-id="3641973297-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="3641973297-24">%{</span><span class="p" data-group-id="3641973297-24">}</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="7473505753-23">[</span><span class="p" data-group-id="7473505753-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="7473505753-24">%{</span><span class="p" data-group-id="7473505753-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">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="3641973297-25">%{</span><span class="p" data-group-id="3641973297-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="3641973297-26">[</span><span class="p" data-group-id="3641973297-26">]</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="7473505753-25">%{</span><span class="p" data-group-id="7473505753-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="7473505753-26">[</span><span class="p" data-group-id="7473505753-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">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">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="3641973297-27">%{</span><span class="p" data-group-id="3641973297-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="3641973297-28">[</span><span class="p" data-group-id="3641973297-28">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-22">}</span><span class="p" data-group-id="3641973297-21">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-29">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-30">%</span><span class="nc" data-group-id="3641973297-30">Cldr.LanguageTag</span><span class="p" data-group-id="3641973297-30">{</span><span class="w">
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7473505753-27">%{</span><span class="p" data-group-id="7473505753-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="7473505753-28">[</span><span class="p" data-group-id="7473505753-28">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-22">}</span><span class="p" data-group-id="7473505753-21">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-29">{</span><span class="mf">0.3</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-30">%</span><span class="nc" data-group-id="7473505753-30">Cldr.LanguageTag</span><span class="p" data-group-id="7473505753-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">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">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3641973297-31">[</span><span class="p" data-group-id="3641973297-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="3641973297-32">%{</span><span class="p" data-group-id="3641973297-32">}</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="7473505753-31">[</span><span class="p" data-group-id="7473505753-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="7473505753-32">%{</span><span class="p" data-group-id="7473505753-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">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="3641973297-33">%{</span><span class="p" data-group-id="3641973297-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="3641973297-34">[</span><span class="p" data-group-id="3641973297-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="p" data-group-id="7473505753-33">%{</span><span class="p" data-group-id="7473505753-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="7473505753-34">[</span><span class="p" data-group-id="7473505753-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">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">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="3641973297-35">%{</span><span class="p" data-group-id="3641973297-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="3641973297-36">[</span><span class="p" data-group-id="3641973297-36">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-30">}</span><span class="p" data-group-id="3641973297-29">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-37">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-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="3641973297-38">}</span><span class="p" data-group-id="3641973297-37">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="3641973297-20">]</span></code></pre>
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7473505753-35">%{</span><span class="p" data-group-id="7473505753-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="7473505753-36">[</span><span class="p" data-group-id="7473505753-36">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-30">}</span><span class="p" data-group-id="7473505753-29">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-37">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-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="7473505753-38">}</span><span class="p" data-group-id="7473505753-37">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7473505753-20">]</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@ -608,7 +611,7 @@ wuth an error tuple for each invalid tag added at the end of the list.</p><h2 id
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Currency — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -416,11 +419,11 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
||||
</h2>
|
||||
<p> MyApp.Cldr.Currency.currencies_for_locale("en")
|
||||
=> {: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="2245613689-1">%</span><span class="nc" data-group-id="2245613689-1">Cldr.Currency</span><span class="p" data-group-id="2245613689-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="0859726403-1">%</span><span class="nc" data-group-id="0859726403-1">Cldr.Currency</span><span class="p" data-group-id="0859726403-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_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">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="2245613689-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="2245613689-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="0859726403-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="0859726403-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">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||
@ -430,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">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="p" data-group-id="2245613689-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="2245613689-3">%</span><span class="nc" data-group-id="2245613689-3">Cldr.Currency</span><span class="p" data-group-id="2245613689-3">{</span><span class="w">
|
||||
</span><span class="p" data-group-id="0859726403-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="0859726403-3">%</span><span class="nc" data-group-id="0859726403-3">Cldr.Currency</span><span class="p" data-group-id="0859726403-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_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">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="2245613689-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="2245613689-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="0859726403-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="0859726403-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">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">
|
||||
@ -445,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">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="p" data-group-id="2245613689-3">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="0859726403-3">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="n">...</span><span class="w">
|
||||
</span><span class="err">}</span><span class="err">}</span></code></pre>
|
||||
</section>
|
||||
@ -496,11 +499,11 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
||||
<span class="text">Example</span>
|
||||
</h2>
|
||||
<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="6571143309-1">%</span><span class="nc" data-group-id="6571143309-1">Cldr.Currency</span><span class="p" data-group-id="6571143309-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="1271488657-1">%</span><span class="nc" data-group-id="1271488657-1">Cldr.Currency</span><span class="p" data-group-id="1271488657-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_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">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6571143309-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="6571143309-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="1271488657-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="1271488657-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">iso_digits</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w">
|
||||
@ -510,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">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="p" data-group-id="6571143309-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="6571143309-3">%</span><span class="nc" data-group-id="6571143309-3">Cldr.Currency</span><span class="p" data-group-id="6571143309-3">{</span><span class="w">
|
||||
</span><span class="p" data-group-id="1271488657-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="1271488657-3">%</span><span class="nc" data-group-id="1271488657-3">Cldr.Currency</span><span class="p" data-group-id="1271488657-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_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">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6571143309-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="6571143309-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="1271488657-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="1271488657-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">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">
|
||||
@ -525,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">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="p" data-group-id="6571143309-3">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1271488657-3">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="n">...</span></code></pre><p> }</p>
|
||||
</section>
|
||||
</section>
|
||||
@ -583,13 +586,13 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.LanguageTag.html"><code cla
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="8087428765-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="8087428765-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="8087428765-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="8087428765-3">%</span><span class="nc" data-group-id="8087428765-3">Cldr.Currency</span><span class="p" data-group-id="8087428765-3">{</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="3242476454-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="3242476454-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3242476454-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3242476454-3">%</span><span class="nc" data-group-id="3242476454-3">Cldr.Currency</span><span class="p" data-group-id="3242476454-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_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">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8087428765-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="8087428765-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="3242476454-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="3242476454-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">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">
|
||||
@ -597,15 +600,15 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/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">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="p" data-group-id="8087428765-3">}</span><span class="p" data-group-id="8087428765-2">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="3242476454-3">}</span><span class="p" data-group-id="3242476454-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="8087428765-5">(</span><span class="s">"THB"</span><span class="p" data-group-id="8087428765-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="8087428765-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="8087428765-7">%</span><span class="nc" data-group-id="8087428765-7">Cldr.Currency</span><span class="p" data-group-id="8087428765-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">currency_for_code</span><span class="p" data-group-id="3242476454-5">(</span><span class="s">"THB"</span><span class="p" data-group-id="3242476454-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3242476454-6">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3242476454-7">%</span><span class="nc" data-group-id="3242476454-7">Cldr.Currency</span><span class="p" data-group-id="3242476454-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_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">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8087428765-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="8087428765-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="3242476454-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="3242476454-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">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">
|
||||
@ -613,7 +616,7 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/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">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="p" data-group-id="8087428765-7">}</span><span class="p" data-group-id="8087428765-6">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="3242476454-7">}</span><span class="p" data-group-id="3242476454-6">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="currency_for_code!/2">
|
||||
@ -672,12 +675,12 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.LanguageTag.html"><code cla
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="9758647173-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="9758647173-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9758647173-2">%</span><span class="nc" data-group-id="9758647173-2">Cldr.Currency</span><span class="p" data-group-id="9758647173-2">{</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="2665041225-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="2665041225-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2665041225-2">%</span><span class="nc" data-group-id="2665041225-2">Cldr.Currency</span><span class="p" data-group-id="2665041225-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_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">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9758647173-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="9758647173-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="2665041225-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="2665041225-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">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">
|
||||
@ -685,14 +688,14 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/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">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="p" data-group-id="9758647173-2">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="2665041225-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="9758647173-4">(</span><span class="s">"THB"</span><span class="p" data-group-id="9758647173-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9758647173-5">%</span><span class="nc" data-group-id="9758647173-5">Cldr.Currency</span><span class="p" data-group-id="9758647173-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="2665041225-4">(</span><span class="s">"THB"</span><span class="p" data-group-id="2665041225-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2665041225-5">%</span><span class="nc" data-group-id="2665041225-5">Cldr.Currency</span><span class="p" data-group-id="2665041225-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_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">count</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9758647173-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="9758647173-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="2665041225-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="2665041225-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">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">
|
||||
@ -700,7 +703,7 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/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">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="p" data-group-id="9758647173-5">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="2665041225-5">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="currency_from_locale/1">
|
||||
@ -741,15 +744,15 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.LanguageTag.html"><code cla
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</h2>
|
||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="p" data-group-id="5033143521-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="5033143521-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="5033143521-2">(</span><span class="s">"en"</span><span class="p" data-group-id="5033143521-2">)</span><span class="w">
|
||||
<pre><code class="makeup elixir" translate="no"><span class="gp unselectable">iex> </span><span class="p" data-group-id="4681733407-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="4681733407-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="4681733407-2">(</span><span class="s">"en"</span><span class="p" data-group-id="4681733407-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="ss">:USD</span><span class="w">
|
||||
|
||||
</span><span class="gp unselectable">iex> </span><span class="p" data-group-id="5033143521-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="5033143521-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="5033143521-4">(</span><span class="s">"en-AU"</span><span class="p" data-group-id="5033143521-4">)</span><span class="w">
|
||||
</span><span class="gp unselectable">iex> </span><span class="p" data-group-id="4681733407-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="4681733407-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="4681733407-4">(</span><span class="s">"en-AU"</span><span class="p" data-group-id="4681733407-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="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="5033143521-5">(</span><span class="s">"en-GB"</span><span class="p" data-group-id="5033143521-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="4681733407-5">(</span><span class="s">"en-GB"</span><span class="p" data-group-id="4681733407-5">)</span><span class="w">
|
||||
</span><span class="ss">:GBP</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -793,14 +796,14 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.LanguageTag.html"><code cla
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="7001923411-1">(</span><span class="s">"en"</span><span class="p" data-group-id="7001923411-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7001923411-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7001923411-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="7001923411-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="7001923411-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="7001923411-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="7001923411-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="7001923411-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="7001923411-6">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7001923411-3">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7001923411-2">}</span></code></pre>
|
||||
<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="6421975592-1">(</span><span class="s">"en"</span><span class="p" data-group-id="6421975592-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6421975592-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="6421975592-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="6421975592-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="6421975592-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="6421975592-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="6421975592-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="6421975592-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="6421975592-6">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6421975592-3">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6421975592-2">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="currency_strings/3">
|
||||
@ -859,9 +862,9 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="3894496893-1">(</span><span class="s">"en"</span><span class="p" data-group-id="3894496893-1">)</span><span class="w">
|
||||
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="3894496893-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3894496893-3">%{</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="9777831903-1">(</span><span class="s">"en"</span><span class="p" data-group-id="9777831903-1">)</span><span class="w">
|
||||
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="9777831903-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="9777831903-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">"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">
|
||||
@ -871,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">"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="p" data-group-id="3894496893-3">}</span><span class="p" data-group-id="3894496893-2">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="9777831903-3">}</span><span class="p" data-group-id="9777831903-2">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="currency_strings!/3">
|
||||
@ -930,8 +933,8 @@ The default is <code class="inline">:all</code>. See <a href="https://hexdocs.pm
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="2926081243-1">(</span><span class="s">"en"</span><span class="p" data-group-id="2926081243-1">)</span><span class="w">
|
||||
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="2926081243-2">%{</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="4304583540-1">(</span><span class="s">"en"</span><span class="p" data-group-id="4304583540-1">)</span><span class="w">
|
||||
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="4304583540-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">"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">
|
||||
@ -941,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">"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="p" data-group-id="2926081243-2">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="4304583540-2">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="current_currency_from_locale/1">
|
||||
@ -979,10 +982,10 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.LanguageTag.html"><code cla
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="7955374701-1">(</span><span class="s">"en"</span><span class="p" data-group-id="7955374701-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="1099602562-1">(</span><span class="s">"en"</span><span class="p" data-group-id="1099602562-1">)</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="7955374701-2">(</span><span class="s">"en-AU"</span><span class="p" data-group-id="7955374701-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="1099602562-2">(</span><span class="s">"en-AU"</span><span class="p" data-group-id="1099602562-2">)</span><span class="w">
|
||||
</span><span class="ss">:AUD</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -1030,7 +1033,7 @@ mapping is returned for that territory.</p><h2 id="current_territory_currencies/
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="7939584994-1">(</span><span class="p" data-group-id="7939584994-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="2925256057-1">(</span><span class="p" data-group-id="2925256057-1">)</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="known_currencies/0">
|
||||
@ -1122,11 +1125,11 @@ currency code</li></ul><h2 id="known_currency_code/1-returns" class="section-hea
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="8089705647-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="8089705647-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="8089705647-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="8089705647-2">}</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="7801832453-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="7801832453-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7801832453-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="7801832453-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="8089705647-3">(</span><span class="s">"GGG"</span><span class="p" data-group-id="8089705647-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="8089705647-4">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8089705647-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="8089705647-5">}</span><span class="p" data-group-id="8089705647-4">}</span></code></pre>
|
||||
</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="7801832453-3">(</span><span class="s">"GGG"</span><span class="p" data-group-id="7801832453-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7801832453-4">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7801832453-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="7801832453-5">}</span><span class="p" data-group-id="7801832453-4">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="known_currency_code?/1">
|
||||
@ -1173,13 +1176,13 @@ currency code</li></ul><h2 id="known_currency_code?/1-returns" class="section-he
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="9174279234-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="9174279234-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="3337384879-1">(</span><span class="s">"AUD"</span><span class="p" data-group-id="3337384879-1">)</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="9174279234-2">(</span><span class="s">"GGG"</span><span class="p" data-group-id="9174279234-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="3337384879-2">(</span><span class="s">"GGG"</span><span class="p" data-group-id="3337384879-2">)</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="9174279234-3">(</span><span class="ss">:XCV</span><span class="p" data-group-id="9174279234-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="3337384879-3">(</span><span class="ss">:XCV</span><span class="p" data-group-id="3337384879-3">)</span><span class="w">
|
||||
</span><span class="no">false</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -1214,7 +1217,7 @@ currency code</li></ul><h2 id="known_currency_code?/1-returns" class="section-he
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="7784400091-1">(</span><span class="p" data-group-id="7784400091-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="0405213468-1">(</span><span class="p" data-group-id="0405213468-1">)</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="new/2">
|
||||
@ -1273,14 +1276,14 @@ such as <code class="inline">0.05</code>. Optional.</li></ul><h2 id="new/2-retur
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="2278845461-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="2278845461-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2278845461-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="2278845461-3">%</span><span class="nc" data-group-id="2278845461-3">Cldr.Currency</span><span class="p" data-group-id="2278845461-3">{</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="2529117332-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="2529117332-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2529117332-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="2529117332-3">%</span><span class="nc" data-group-id="2529117332-3">Cldr.Currency</span><span class="p" data-group-id="2529117332-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">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">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="2278845461-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="2278845461-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="2529117332-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="2529117332-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">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">
|
||||
@ -1290,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">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="p" data-group-id="2278845461-3">}</span><span class="p" data-group-id="2278845461-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="2278845461-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="2278845461-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2278845461-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="2278845461-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="2278845461-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="2278845461-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2278845461-8">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="2278845461-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="2278845461-9">}</span><span class="p" data-group-id="2278845461-8">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="2529117332-3">}</span><span class="p" data-group-id="2529117332-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="2529117332-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="2529117332-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2529117332-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="2529117332-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="2529117332-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="2529117332-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2529117332-8">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="2529117332-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="2529117332-9">}</span><span class="p" data-group-id="2529117332-8">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="pluralize/3">
|
||||
@ -1352,20 +1355,20 @@ default is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plaus
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="1175763699-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="1175763699-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1175763699-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="1175763699-2">}</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="5294781088-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="5294781088-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="5294781088-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="5294781088-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="1175763699-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="1175763699-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1175763699-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="1175763699-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="5294781088-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="5294781088-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="5294781088-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="5294781088-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="1175763699-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="1175763699-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1175763699-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="1175763699-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="5294781088-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="5294781088-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="5294781088-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="5294781088-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="1175763699-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="1175763699-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1175763699-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="1175763699-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="5294781088-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="5294781088-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="5294781088-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="5294781088-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="1175763699-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="1175763699-9">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1175763699-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="1175763699-10">}</span></code></pre>
|
||||
</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="5294781088-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="5294781088-9">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="5294781088-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="5294781088-10">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="strings_for_currency/2">
|
||||
@ -1407,8 +1410,8 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.LanguageTag.html"><code cla
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="p" data-group-id="5922752241-1">(</span><span class="ss">:AUD</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="5922752241-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="5922752241-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="5922752241-2">]</span></code></pre>
|
||||
<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="p" data-group-id="6425677990-1">(</span><span class="ss">:AUD</span><span class="p">,</span><span class="w"> </span><span class="s">"en"</span><span class="p" data-group-id="6425677990-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6425677990-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="6425677990-2">]</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@ -1432,7 +1435,7 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.LanguageTag.html"><code cla
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Locale — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -323,16 +326,16 @@ this specific locale..</p><h2 id="fallback_locale_names/1-arguments" class="sect
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="9313551404-1">(</span><span class="ss">:"fr-CA"</span><span class="p" data-group-id="9313551404-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9313551404-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9313551404-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="9313551404-3">]</span><span class="p" data-group-id="9313551404-2">}</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="9208409428-1">(</span><span class="ss">:"fr-CA"</span><span class="p" data-group-id="9208409428-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9208409428-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9208409428-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="9208409428-3">]</span><span class="p" data-group-id="9208409428-2">}</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"># 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="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="9313551404-4">(</span><span class="ss">:nb</span><span class="p" data-group-id="9313551404-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9313551404-5">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9313551404-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="9313551404-6">]</span><span class="p" data-group-id="9313551404-5">}</span></code></pre>
|
||||
</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="9208409428-4">(</span><span class="ss">:nb</span><span class="p" data-group-id="9208409428-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9208409428-5">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9208409428-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="9208409428-6">]</span><span class="p" data-group-id="9208409428-5">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="fallback_locales/1">
|
||||
@ -386,20 +389,20 @@ this specific locale.</p><h2 id="fallback_locales/1-arguments" class="section-he
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="8944173348-1">(</span><span class="ss">:"fr-CA"</span><span class="p" data-group-id="8944173348-1">)</span><span class="w">
|
||||
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8944173348-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="8944173348-3">[</span><span class="p" data-group-id="8944173348-4">#</span><span class="nc" data-group-id="8944173348-4">Cldr.LanguageTag</span><span class="p" data-group-id="8944173348-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="8944173348-5">[</span><span class="n">validated</span><span class="p" data-group-id="8944173348-5">]</span><span class="p" data-group-id="8944173348-4">></span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8944173348-6">#</span><span class="nc" data-group-id="8944173348-6">Cldr.LanguageTag</span><span class="p" data-group-id="8944173348-6"><</span><span class="n">fr</span><span class="w"> </span><span class="p" data-group-id="8944173348-7">[</span><span class="n">validated</span><span class="p" data-group-id="8944173348-7">]</span><span class="p" data-group-id="8944173348-6">></span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="8944173348-8">#</span><span class="nc" data-group-id="8944173348-8">Cldr.LanguageTag</span><span class="p" data-group-id="8944173348-8"><</span><span class="n">und</span><span class="w"> </span><span class="p" data-group-id="8944173348-9">[</span><span class="n">validated</span><span class="p" data-group-id="8944173348-9">]</span><span class="p" data-group-id="8944173348-8">></span><span class="p" data-group-id="8944173348-3">]</span><span class="p" data-group-id="8944173348-2">}</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="1160617606-1">(</span><span class="ss">:"fr-CA"</span><span class="p" data-group-id="1160617606-1">)</span><span class="w">
|
||||
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="1160617606-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1160617606-3">[</span><span class="p" data-group-id="1160617606-4">#</span><span class="nc" data-group-id="1160617606-4">Cldr.LanguageTag</span><span class="p" data-group-id="1160617606-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="1160617606-5">[</span><span class="n">validated</span><span class="p" data-group-id="1160617606-5">]</span><span class="p" data-group-id="1160617606-4">></span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1160617606-6">#</span><span class="nc" data-group-id="1160617606-6">Cldr.LanguageTag</span><span class="p" data-group-id="1160617606-6"><</span><span class="n">fr</span><span class="w"> </span><span class="p" data-group-id="1160617606-7">[</span><span class="n">validated</span><span class="p" data-group-id="1160617606-7">]</span><span class="p" data-group-id="1160617606-6">></span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1160617606-8">#</span><span class="nc" data-group-id="1160617606-8">Cldr.LanguageTag</span><span class="p" data-group-id="1160617606-8"><</span><span class="n">und</span><span class="w"> </span><span class="p" data-group-id="1160617606-9">[</span><span class="n">validated</span><span class="p" data-group-id="1160617606-9">]</span><span class="p" data-group-id="1160617606-8">></span><span class="p" data-group-id="1160617606-3">]</span><span class="p" data-group-id="1160617606-2">}</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"># 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="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">fallback_locales</span><span class="p" data-group-id="8944173348-10">(</span><span class="ss">:nb</span><span class="p" data-group-id="8944173348-10">)</span><span class="p">)</span><span class="w">
|
||||
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="8944173348-11">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="8944173348-12">[</span><span class="p" data-group-id="8944173348-13">#</span><span class="nc" data-group-id="8944173348-13">Cldr.LanguageTag</span><span class="p" data-group-id="8944173348-13"><</span><span class="n">nb</span><span class="w"> </span><span class="p" data-group-id="8944173348-14">[</span><span class="n">validated</span><span class="p" data-group-id="8944173348-14">]</span><span class="p" data-group-id="8944173348-13">></span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8944173348-15">#</span><span class="nc" data-group-id="8944173348-15">Cldr.LanguageTag</span><span class="p" data-group-id="8944173348-15"><</span><span class="n">no</span><span class="w"> </span><span class="p" data-group-id="8944173348-16">[</span><span class="n">validated</span><span class="p" data-group-id="8944173348-16">]</span><span class="p" data-group-id="8944173348-15">></span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="8944173348-17">#</span><span class="nc" data-group-id="8944173348-17">Cldr.LanguageTag</span><span class="p" data-group-id="8944173348-17"><</span><span class="n">und</span><span class="w"> </span><span class="p" data-group-id="8944173348-18">[</span><span class="n">validated</span><span class="p" data-group-id="8944173348-18">]</span><span class="p" data-group-id="8944173348-17">></span><span class="p" data-group-id="8944173348-12">]</span><span class="p" data-group-id="8944173348-11">}</span></code></pre>
|
||||
</span><span class="nc">Plausible.Cldr.Locale</span><span class="o">.</span><span class="n">fallback_locales</span><span class="p" data-group-id="1160617606-10">(</span><span class="ss">:nb</span><span class="p" data-group-id="1160617606-10">)</span><span class="p">)</span><span class="w">
|
||||
</span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="1160617606-11">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1160617606-12">[</span><span class="p" data-group-id="1160617606-13">#</span><span class="nc" data-group-id="1160617606-13">Cldr.LanguageTag</span><span class="p" data-group-id="1160617606-13"><</span><span class="n">nb</span><span class="w"> </span><span class="p" data-group-id="1160617606-14">[</span><span class="n">validated</span><span class="p" data-group-id="1160617606-14">]</span><span class="p" data-group-id="1160617606-13">></span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1160617606-15">#</span><span class="nc" data-group-id="1160617606-15">Cldr.LanguageTag</span><span class="p" data-group-id="1160617606-15"><</span><span class="n">no</span><span class="w"> </span><span class="p" data-group-id="1160617606-16">[</span><span class="n">validated</span><span class="p" data-group-id="1160617606-16">]</span><span class="p" data-group-id="1160617606-15">></span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1160617606-17">#</span><span class="nc" data-group-id="1160617606-17">Cldr.LanguageTag</span><span class="p" data-group-id="1160617606-17"><</span><span class="n">und</span><span class="w"> </span><span class="p" data-group-id="1160617606-18">[</span><span class="n">validated</span><span class="p" data-group-id="1160617606-18">]</span><span class="p" data-group-id="1160617606-17">></span><span class="p" data-group-id="1160617606-12">]</span><span class="p" data-group-id="1160617606-11">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="locale_for_territory/1">
|
||||
@ -530,15 +533,15 @@ generic top-level domain names.</p><h2 id="locale_from_host/2-examples" class="s
|
||||
<span class="text">Examples</span>
|
||||
</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">
|
||||
</span><span class="nc">Elixir.Plausible.Cldr</span><span class="o">.</span><span class="n">validate_locale</span><span class="p" data-group-id="3635429423-1">(</span><span class="ss">:"en-AU"</span><span class="p" data-group-id="3635429423-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="9108046276-1">(</span><span class="ss">:"en-AU"</span><span class="p" data-group-id="9108046276-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="3635429423-2">(</span><span class="s">"a.b.com.tv"</span><span class="p" data-group-id="3635429423-2">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3635429423-3">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3635429423-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="3635429423-4">}</span><span class="p" data-group-id="3635429423-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="9108046276-2">(</span><span class="s">"a.b.com.tv"</span><span class="p" data-group-id="9108046276-2">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9108046276-3">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="9108046276-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="9108046276-4">}</span><span class="p" data-group-id="9108046276-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="3635429423-5">(</span><span class="s">"a.b.com"</span><span class="p" data-group-id="3635429423-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3635429423-6">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3635429423-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="3635429423-7">}</span><span class="p" data-group-id="3635429423-6">}</span></code></pre>
|
||||
</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="9108046276-5">(</span><span class="s">"a.b.com"</span><span class="p" data-group-id="9108046276-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9108046276-6">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="9108046276-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="9108046276-7">}</span><span class="p" data-group-id="9108046276-6">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="new/1">
|
||||
@ -680,12 +683,12 @@ be a territory.</p><h2 id="territory_from_host/1-arguments" class="section-headi
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="7240960622-1">(</span><span class="s">"a.b.com.au"</span><span class="p" data-group-id="7240960622-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7240960622-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="7240960622-2">}</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="1682862590-1">(</span><span class="s">"a.b.com.au"</span><span class="p" data-group-id="1682862590-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1682862590-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="1682862590-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="7240960622-3">(</span><span class="s">"a.b.com"</span><span class="p" data-group-id="7240960622-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7240960622-4">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7240960622-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="7240960622-5">}</span><span class="p" data-group-id="7240960622-4">}</span></code></pre>
|
||||
</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="1682862590-3">(</span><span class="s">"a.b.com"</span><span class="p" data-group-id="1682862590-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1682862590-4">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="1682862590-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="1682862590-5">}</span><span class="p" data-group-id="1682862590-4">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="territory_from_locale/1">
|
||||
@ -820,7 +823,7 @@ or a locale name in the list returned by
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Number.Cardinal — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -452,31 +455,31 @@ The valid substitution keys are <code class="inline">:zero</code>, <code class="
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="3890696638-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="3890696638-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="9682303745-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="9682303745-1">}</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="3890696638-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="3890696638-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="9682303745-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="9682303745-2">}</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="3890696638-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="3890696638-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="9682303745-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="9682303745-3">}</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="3890696638-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="3890696638-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="9682303745-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="9682303745-4">}</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="3890696638-5">(</span><span class="mi">1</span><span class="p" data-group-id="3890696638-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="3890696638-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="3890696638-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="9682303745-5">(</span><span class="mi">1</span><span class="p" data-group-id="9682303745-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="9682303745-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="9682303745-6">}</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="3890696638-7">(</span><span class="mi">2</span><span class="p" data-group-id="3890696638-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="3890696638-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="3890696638-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="9682303745-7">(</span><span class="mi">2</span><span class="p" data-group-id="9682303745-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="9682303745-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="9682303745-8">}</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="3890696638-9">(</span><span class="mi">2</span><span class="p" data-group-id="3890696638-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="3890696638-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="3890696638-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="9682303745-9">(</span><span class="mi">2</span><span class="p" data-group-id="9682303745-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="9682303745-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="9682303745-10">}</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="3890696638-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="3890696638-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="9682303745-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="9682303745-11">}</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="3890696638-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="3890696638-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="9682303745-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="9682303745-12">}</span><span class="w">
|
||||
</span><span class="s">"other"</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -501,7 +504,7 @@ The valid substitution keys are <code class="inline">:zero</code>, <code class="
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Number.Format — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -465,7 +468,7 @@ to precompile all the known formats at compile time.</p><h2 id="decimal_format_l
|
||||
<span class="text">Example</span>
|
||||
</h2>
|
||||
<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="4380456167-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="4752729183-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%"</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">
|
||||
@ -475,7 +478,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 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 Tr ¤"</span><span class="p">,</span><span class="w"> </span><span class="n">...</span><span class="p" data-group-id="4380456167-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="4752729183-1">]</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="decimal_format_list_for/1">
|
||||
@ -523,8 +526,8 @@ the known formats at compile time. Its use is not otherwise recommended.</p><h2
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="8500941218-1">(</span><span class="ss">:en</span><span class="p" data-group-id="8500941218-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="8500941218-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8500941218-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">
|
||||
<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="9919271717-1">(</span><span class="ss">:en</span><span class="p" data-group-id="9919271717-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9919271717-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9919271717-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 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">
|
||||
@ -532,7 +535,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">"¤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">"¤ 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="8500941218-3">]</span><span class="p" data-group-id="8500941218-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="9919271717-3">]</span><span class="p" data-group-id="9919271717-2">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="default_grouping_for/1">
|
||||
@ -585,8 +588,8 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="1881587037-1">(</span><span class="ss">:en</span><span class="p" data-group-id="1881587037-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1881587037-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1881587037-3">%{</span><span class="ss">fraction</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1881587037-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="1881587037-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="1881587037-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="1881587037-5">}</span><span class="p" data-group-id="1881587037-3">}</span><span class="p" data-group-id="1881587037-2">}</span></code></pre>
|
||||
<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="9948715568-1">(</span><span class="ss">:en</span><span class="p" data-group-id="9948715568-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9948715568-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9948715568-3">%{</span><span class="ss">fraction</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9948715568-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="9948715568-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="9948715568-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="9948715568-5">}</span><span class="p" data-group-id="9948715568-3">}</span><span class="p" data-group-id="9948715568-2">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="default_grouping_for!/1">
|
||||
@ -638,8 +641,8 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="6401263698-1">(</span><span class="ss">:en</span><span class="p" data-group-id="6401263698-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6401263698-2">%{</span><span class="ss">fraction</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6401263698-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="6401263698-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="6401263698-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="6401263698-4">}</span><span class="p" data-group-id="6401263698-2">}</span></code></pre>
|
||||
<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="2549909679-1">(</span><span class="ss">:en</span><span class="p" data-group-id="2549909679-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2549909679-2">%{</span><span class="ss">fraction</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="2549909679-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="2549909679-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="2549909679-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="2549909679-4">}</span><span class="p" data-group-id="2549909679-2">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="formats_for/2">
|
||||
@ -696,18 +699,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">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">currency_short</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7764016139-1">[</span><span class="p" data-group-id="7764016139-2">{</span><span class="s">"1000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7764016139-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="7764016139-3">]</span><span class="p" data-group-id="7764016139-2">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7764016139-4">{</span><span class="s">"10000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7764016139-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="7764016139-5">]</span><span class="p" data-group-id="7764016139-4">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7764016139-6">{</span><span class="s">"100000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7764016139-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="7764016139-7">]</span><span class="p" data-group-id="7764016139-6">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7764016139-8">{</span><span class="s">"1000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7764016139-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="7764016139-9">]</span><span class="p" data-group-id="7764016139-8">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7764016139-10">{</span><span class="s">"10000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7764016139-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="7764016139-11">]</span><span class="p" data-group-id="7764016139-10">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7764016139-12">{</span><span class="s">"100000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7764016139-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="7764016139-13">]</span><span class="p" data-group-id="7764016139-12">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7764016139-14">{</span><span class="s">"1000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7764016139-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="7764016139-15">]</span><span class="p" data-group-id="7764016139-14">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7764016139-16">{</span><span class="s">"10000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7764016139-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="7764016139-17">]</span><span class="p" data-group-id="7764016139-16">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7764016139-18">{</span><span class="s">"100000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7764016139-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="7764016139-19">]</span><span class="p" data-group-id="7764016139-18">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7764016139-20">{</span><span class="s">"1000000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7764016139-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="7764016139-21">]</span><span class="p" data-group-id="7764016139-20">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7764016139-22">{</span><span class="s">"10000000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7764016139-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="7764016139-23">]</span><span class="p" data-group-id="7764016139-22">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7764016139-24">{</span><span class="s">"100000000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7764016139-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="7764016139-25">]</span><span class="p" data-group-id="7764016139-24">}</span><span class="p" data-group-id="7764016139-1">]</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="3440232864-1">[</span><span class="p" data-group-id="3440232864-2">{</span><span class="s">"1000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3440232864-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="3440232864-3">]</span><span class="p" data-group-id="3440232864-2">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3440232864-4">{</span><span class="s">"10000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3440232864-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="3440232864-5">]</span><span class="p" data-group-id="3440232864-4">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3440232864-6">{</span><span class="s">"100000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3440232864-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="3440232864-7">]</span><span class="p" data-group-id="3440232864-6">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3440232864-8">{</span><span class="s">"1000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3440232864-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="3440232864-9">]</span><span class="p" data-group-id="3440232864-8">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3440232864-10">{</span><span class="s">"10000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3440232864-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="3440232864-11">]</span><span class="p" data-group-id="3440232864-10">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3440232864-12">{</span><span class="s">"100000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3440232864-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="3440232864-13">]</span><span class="p" data-group-id="3440232864-12">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3440232864-14">{</span><span class="s">"1000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3440232864-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="3440232864-15">]</span><span class="p" data-group-id="3440232864-14">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3440232864-16">{</span><span class="s">"10000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3440232864-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="3440232864-17">]</span><span class="p" data-group-id="3440232864-16">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3440232864-18">{</span><span class="s">"100000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3440232864-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="3440232864-19">]</span><span class="p" data-group-id="3440232864-18">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3440232864-20">{</span><span class="s">"1000000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3440232864-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="3440232864-21">]</span><span class="p" data-group-id="3440232864-20">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3440232864-22">{</span><span class="s">"10000000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3440232864-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="3440232864-23">]</span><span class="p" data-group-id="3440232864-22">}</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3440232864-24">{</span><span class="s">"100000000000000"</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3440232864-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="3440232864-25">]</span><span class="p" data-group-id="3440232864-24">}</span><span class="p" data-group-id="3440232864-1">]</span><span class="p">,</span><span class="w">
|
||||
</span><span class="n">...</span><span class="w">
|
||||
</span><span class="err">}</span></code></pre>
|
||||
</section>
|
||||
@ -798,8 +801,8 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="1776871823-1">(</span><span class="s">"en"</span><span class="p" data-group-id="1776871823-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1776871823-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="1776871823-2">}</span></code></pre>
|
||||
<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="2083129710-1">(</span><span class="s">"en"</span><span class="p" data-group-id="2083129710-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2083129710-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="2083129710-2">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="minimum_grouping_digits_for!/1">
|
||||
@ -851,7 +854,7 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="5636364818-1">(</span><span class="s">"en"</span><span class="p" data-group-id="5636364818-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="5044067746-1">(</span><span class="s">"en"</span><span class="p" data-group-id="5044067746-1">)</span><span class="w">
|
||||
</span><span class="mi">1</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -876,7 +879,7 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Number.Formatter.Decimal — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -267,7 +270,7 @@ for further information.</p></li></ul>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Number.Ordinal — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -455,31 +458,31 @@ The valid substitution keys are <code class="inline">:zero</code>, <code class="
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="6878615971-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="6878615971-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="7817550108-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="7817550108-1">}</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="6878615971-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="6878615971-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="7817550108-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="7817550108-2">}</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="6878615971-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="6878615971-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="7817550108-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="7817550108-3">}</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="6878615971-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="6878615971-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="7817550108-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="7817550108-4">}</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="6878615971-5">(</span><span class="mi">1</span><span class="p" data-group-id="6878615971-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="6878615971-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="6878615971-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="7817550108-5">(</span><span class="mi">1</span><span class="p" data-group-id="7817550108-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="7817550108-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="7817550108-6">}</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="6878615971-7">(</span><span class="mi">2</span><span class="p" data-group-id="6878615971-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="6878615971-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="6878615971-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="7817550108-7">(</span><span class="mi">2</span><span class="p" data-group-id="7817550108-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="7817550108-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="7817550108-8">}</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="6878615971-9">(</span><span class="mi">2</span><span class="p" data-group-id="6878615971-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="6878615971-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="6878615971-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="7817550108-9">(</span><span class="mi">2</span><span class="p" data-group-id="7817550108-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="7817550108-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="7817550108-10">}</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="6878615971-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="6878615971-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="7817550108-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="7817550108-11">}</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="6878615971-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="6878615971-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="7817550108-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="7817550108-12">}</span><span class="w">
|
||||
</span><span class="s">"other"</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -504,7 +507,7 @@ The valid substitution keys are <code class="inline">:zero</code>, <code class="
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Number.PluralRule.Range — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -248,7 +251,7 @@ type, an end-of-range plural type and a locale.</p><h2 id="plural_rule/3-argumen
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Number.Symbol — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -375,9 +378,9 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
||||
</a>
|
||||
<span class="text">Example:</span>
|
||||
</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="3829423566-1">(</span><span class="ss">:th</span><span class="p" data-group-id="3829423566-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3829423566-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3829423566-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="3829423566-4">%</span><span class="nc" data-group-id="3829423566-4">Cldr.Number.Symbol</span><span class="p" data-group-id="3829423566-4">{</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="1234893114-1">(</span><span class="ss">:th</span><span class="p" data-group-id="1234893114-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1234893114-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1234893114-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="1234893114-4">%</span><span class="nc" data-group-id="1234893114-4">Cldr.Number.Symbol</span><span class="p" data-group-id="1234893114-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">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">
|
||||
@ -390,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">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="p" data-group-id="3829423566-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="3829423566-5">%</span><span class="nc" data-group-id="3829423566-5">Cldr.Number.Symbol</span><span class="p" data-group-id="3829423566-5">{</span><span class="w">
|
||||
</span><span class="p" data-group-id="1234893114-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="1234893114-5">%</span><span class="nc" data-group-id="1234893114-5">Cldr.Number.Symbol</span><span class="p" data-group-id="1234893114-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">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">
|
||||
@ -404,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">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="p" data-group-id="3829423566-5">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="3829423566-3">}</span><span class="p" data-group-id="3829423566-2">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="1234893114-5">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="1234893114-3">}</span><span class="p" data-group-id="1234893114-2">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="number_symbols_for/2">
|
||||
@ -451,7 +454,7 @@ is <a href="Plausible.Cldr.html#get_locale/0"><code class="inline">Plausible.Cld
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Number.System — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -314,23 +317,23 @@ it is returned as is.</p><h2 id="number_system_for/2-examples" class="section-he
|
||||
<span class="text">Examples</span>
|
||||
</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">
|
||||
</span><span class="p" data-group-id="3451972124-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3451972124-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="3451972124-2">}</span><span class="p" data-group-id="3451972124-1">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="0203764069-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0203764069-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="0203764069-2">}</span><span class="p" data-group-id="0203764069-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="p" data-group-id="3451972124-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3451972124-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="3451972124-4">}</span><span class="p" data-group-id="3451972124-3">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="0203764069-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0203764069-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="0203764069-4">}</span><span class="p" data-group-id="0203764069-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="p" data-group-id="3451972124-5">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3451972124-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="3451972124-6">}</span><span class="p" data-group-id="3451972124-5">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="0203764069-5">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0203764069-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="0203764069-6">}</span><span class="p" data-group-id="0203764069-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="p" data-group-id="3451972124-7">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3451972124-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="3451972124-8">}</span><span class="p" data-group-id="3451972124-7">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="0203764069-7">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0203764069-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="0203764069-8">}</span><span class="p" data-group-id="0203764069-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="p" data-group-id="3451972124-9">{</span><span class="w">
|
||||
</span><span class="p" data-group-id="0203764069-9">{</span><span class="w">
|
||||
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3451972124-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="3451972124-10">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="3451972124-9">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="0203764069-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="0203764069-10">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="0203764069-9">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="number_system_from_locale/1">
|
||||
@ -421,10 +424,10 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.LanguageTag.html"><code cla
|
||||
<span class="text">Examples</span>
|
||||
</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">
|
||||
</span><span class="p" data-group-id="4855287070-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4855287070-2">[</span><span class="ss">:latn</span><span class="p" data-group-id="4855287070-2">]</span><span class="p" data-group-id="4855287070-1">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6989447768-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="6989447768-2">[</span><span class="ss">:latn</span><span class="p" data-group-id="6989447768-2">]</span><span class="p" data-group-id="6989447768-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="p" data-group-id="4855287070-3">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4855287070-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="4855287070-4">}</span><span class="p" data-group-id="4855287070-3">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="6989447768-3">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="6989447768-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="6989447768-4">}</span><span class="p" data-group-id="6989447768-3">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="number_system_names_for!/1">
|
||||
@ -506,13 +509,13 @@ or a <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.LanguageTag.html"><code cla
|
||||
<span class="text">Examples</span>
|
||||
</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">
|
||||
</span><span class="p" data-group-id="4898871544-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4898871544-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="4898871544-2">}</span><span class="p" data-group-id="4898871544-1">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="2865098590-1">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="2865098590-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="2865098590-2">}</span><span class="p" data-group-id="2865098590-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="p" data-group-id="4898871544-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4898871544-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="4898871544-4">}</span><span class="p" data-group-id="4898871544-3">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="2865098590-3">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="2865098590-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="2865098590-4">}</span><span class="p" data-group-id="2865098590-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="p" data-group-id="4898871544-5">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4898871544-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="4898871544-6">}</span><span class="p" data-group-id="4898871544-5">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="2865098590-5">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="2865098590-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="2865098590-6">}</span><span class="p" data-group-id="2865098590-5">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="number_systems_for!/1">
|
||||
@ -610,20 +613,20 @@ actual system name.</p><h2 id="system_name_from/2-examples" class="section-headi
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="4391926706-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="4391926706-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4391926706-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="4391926706-2">}</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="0356509469-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="0356509469-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="0356509469-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="0356509469-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="4391926706-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="4391926706-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4391926706-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="4391926706-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="0356509469-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="0356509469-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="0356509469-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="0356509469-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="4391926706-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="4391926706-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4391926706-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="4391926706-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="0356509469-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="0356509469-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="0356509469-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="0356509469-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="4391926706-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="4391926706-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4391926706-8">{</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="0356509469-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="0356509469-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="0356509469-8">{</span><span class="w">
|
||||
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="4391926706-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="4391926706-9">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="4391926706-8">}</span></code></pre><p>Note that return value is not guaranteed to be a valid
|
||||
</span><span class="p" data-group-id="0356509469-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="0356509469-9">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="0356509469-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>
|
||||
</section>
|
||||
</section>
|
||||
@ -670,16 +673,16 @@ is recommended.</p></li></ul><h2 id="to_system/2-examples" class="section-headin
|
||||
<span class="text">Examples</span>
|
||||
</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">
|
||||
</span><span class="p" data-group-id="3318233899-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="3318233899-1">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="3652353428-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="3652353428-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="p" data-group-id="3318233899-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="3318233899-2">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="3652353428-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="3652353428-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="p" data-group-id="3318233899-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="3318233899-3">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="3652353428-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="3652353428-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="p" data-group-id="3318233899-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="3318233899-4">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="3652353428-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="3652353428-4">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="to_system!/2">
|
||||
@ -743,7 +746,7 @@ information.</p><h2 id="to_system!/2-examples" class="section-heading">
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Number.Transliterate — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -159,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 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
|
||||
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="0091430147-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="9840367270-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="ss">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0091430147-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="0091430147-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="9840367270-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="9840367270-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">precompile_transliterations</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="0091430147-3">[</span><span class="p" data-group-id="0091430147-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="0091430147-4">}</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="0091430147-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="0091430147-5">}</span><span class="p" data-group-id="0091430147-3">]</span><span class="w">
|
||||
</span><span class="k" data-group-id="0091430147-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="ss">precompile_transliterations</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9840367270-3">[</span><span class="p" data-group-id="9840367270-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="9840367270-4">}</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="9840367270-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="9840367270-5">}</span><span class="p" data-group-id="9840367270-3">]</span><span class="w">
|
||||
</span><span class="k" data-group-id="9840367270-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.32.3/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>
|
||||
</section>
|
||||
@ -278,22 +281,22 @@ and <a href="Plausible.Cldr.Number.System.html#number_systems_for/1"><code class
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="0542864449-1">(</span><span class="s">"123556"</span><span class="p" data-group-id="0542864449-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="5122935553-1">(</span><span class="s">"123556"</span><span class="p" data-group-id="5122935553-1">)</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="0542864449-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="0542864449-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="5122935553-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="5122935553-2">)</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="0542864449-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="0542864449-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="5122935553-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="5122935553-3">)</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="0542864449-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="0542864449-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="5122935553-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="5122935553-4">)</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="0542864449-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="0542864449-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="5122935553-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="5122935553-5">)</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="0542864449-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="0542864449-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="5122935553-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="5122935553-6">)</span><span class="w">
|
||||
</span><span class="s">"Some number is: ๑๒๓๕๕๖"</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -380,7 +383,7 @@ and <a href="Plausible.Cldr.Number.System.html#number_systems_for/1"><code class
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Number — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -438,19 +441,19 @@ using the Elixir standard library functions.</p><h2 id="parse/2-examples" class=
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="9258223530-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="9258223530-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9258223530-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="9258223530-2">}</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="7384016596-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="7384016596-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7384016596-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="7384016596-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="9258223530-3">(</span><span class="s">"-1_000_000.34"</span><span class="p" data-group-id="9258223530-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9258223530-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="9258223530-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="7384016596-3">(</span><span class="s">"-1_000_000.34"</span><span class="p" data-group-id="7384016596-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7384016596-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="7384016596-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="9258223530-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="9258223530-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9258223530-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="9258223530-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="7384016596-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="7384016596-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7384016596-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="7384016596-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="9258223530-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="9258223530-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9258223530-8">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="9258223530-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="9258223530-9">}</span><span class="p" data-group-id="9258223530-8">}</span></code></pre>
|
||||
</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="7384016596-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="7384016596-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7384016596-8">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7384016596-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="7384016596-9">}</span><span class="p" data-group-id="7384016596-8">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="resolve_currencies/2">
|
||||
@ -522,17 +525,17 @@ financial instruments.</p></li></ul><h2 id="resolve_currencies/2-examples" class
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="6015331271-1">(</span><span class="s">"100 US dollars"</span><span class="p" data-group-id="6015331271-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="7438802967-1">(</span><span class="s">"100 US dollars"</span><span class="p" data-group-id="7438802967-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="p" data-group-id="6015331271-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="6015331271-2">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="7438802967-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="7438802967-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="6015331271-3">(</span><span class="s">"100 eurosports"</span><span class="p" data-group-id="6015331271-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="6015331271-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="6015331271-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6015331271-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="6015331271-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="7438802967-3">(</span><span class="s">"100 eurosports"</span><span class="p" data-group-id="7438802967-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="7438802967-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="7438802967-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7438802967-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="7438802967-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="6015331271-6">(</span><span class="s">"100 dollars des États-Unis"</span><span class="p" data-group-id="6015331271-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="6015331271-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="6015331271-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6015331271-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="6015331271-8">]</span></code></pre>
|
||||
</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="7438802967-6">(</span><span class="s">"100 dollars des États-Unis"</span><span class="p" data-group-id="7438802967-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="7438802967-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="7438802967-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7438802967-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="7438802967-8">]</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="resolve_currency/2">
|
||||
@ -609,19 +612,19 @@ financial instruments.</p></li></ul><h2 id="resolve_currency/2-examples" class="
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="0374827574-1">(</span><span class="s">"US dollars"</span><span class="p" data-group-id="0374827574-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="0374827574-2">[</span><span class="ss">:USD</span><span class="p" data-group-id="0374827574-2">]</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="2437862160-1">(</span><span class="s">"US dollars"</span><span class="p" data-group-id="2437862160-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2437862160-2">[</span><span class="ss">:USD</span><span class="p" data-group-id="2437862160-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="0374827574-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="0374827574-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="0374827574-4">[</span><span class="ss">:EUR</span><span class="p" data-group-id="0374827574-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="2437862160-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="2437862160-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2437862160-4">[</span><span class="ss">:EUR</span><span class="p" data-group-id="2437862160-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="0374827574-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="0374827574-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="0374827574-6">[</span><span class="ss">:USD</span><span class="p" data-group-id="0374827574-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="2437862160-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="2437862160-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2437862160-6">[</span><span class="ss">:USD</span><span class="p" data-group-id="2437862160-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="0374827574-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="0374827574-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="0374827574-8">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="0374827574-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="0374827574-9">}</span><span class="p" data-group-id="0374827574-8">}</span></code></pre>
|
||||
</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="2437862160-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="2437862160-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2437862160-8">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="2437862160-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="2437862160-9">}</span><span class="p" data-group-id="2437862160-8">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="resolve_per/2">
|
||||
@ -685,13 +688,13 @@ The default is <code class="inline">options[:backend].get_locale()</code></li></
|
||||
<span class="text">Examples</span>
|
||||
</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">
|
||||
</span><span class="p" data-group-id="4256103468-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="4256103468-1">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="1635836807-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="1635836807-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="p" data-group-id="4256103468-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="4256103468-2">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="1635836807-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="1635836807-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="p" data-group-id="4256103468-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="4256103468-3">]</span></code></pre>
|
||||
</span><span class="p" data-group-id="1635836807-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="1635836807-3">]</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="resolve_pers/2">
|
||||
@ -748,9 +751,9 @@ The default is <code class="inline">options[:backend].get_locale()</code></li></
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="4808802749-1">(</span><span class="s">"100%"</span><span class="p" data-group-id="4808802749-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="4808802749-2">(</span><span class="p" data-group-id="4808802749-2">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4808802749-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="4808802749-3">]</span></code></pre>
|
||||
<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="0820479370-1">(</span><span class="s">"100%"</span><span class="p" data-group-id="0820479370-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="0820479370-2">(</span><span class="p" data-group-id="0820479370-2">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="0820479370-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="0820479370-3">]</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="scan/2">
|
||||
@ -810,20 +813,20 @@ and any options provided are passed to that function.</p><h2 id="scan/2-examples
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="7638963297-1">(</span><span class="s">"£1_000_000.34"</span><span class="p" data-group-id="7638963297-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7638963297-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="7638963297-2">]</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="7516794765-1">(</span><span class="s">"£1_000_000.34"</span><span class="p" data-group-id="7516794765-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7516794765-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="7516794765-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="7638963297-3">(</span><span class="s">"I want £1_000_000 dollars"</span><span class="p" data-group-id="7638963297-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7638963297-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="7638963297-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="7516794765-3">(</span><span class="s">"I want £1_000_000 dollars"</span><span class="p" data-group-id="7516794765-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7516794765-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="7516794765-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="7638963297-5">(</span><span class="s">"The prize is 23"</span><span class="p" data-group-id="7638963297-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7638963297-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="7638963297-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="7516794765-5">(</span><span class="s">"The prize is 23"</span><span class="p" data-group-id="7516794765-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7516794765-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="7516794765-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="7638963297-7">(</span><span class="s">"The lottery number is 23 for the next draw"</span><span class="p" data-group-id="7638963297-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7638963297-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="7638963297-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="7516794765-7">(</span><span class="s">"The lottery number is 23 for the next draw"</span><span class="p" data-group-id="7516794765-7">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7516794765-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="7516794765-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="7638963297-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="7638963297-9">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7638963297-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="7638963297-10">]</span></code></pre>
|
||||
</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="7516794765-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="7516794765-9">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7516794765-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="7516794765-10">]</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="to_approx_string/2">
|
||||
@ -870,7 +873,7 @@ options.</p></li></ul><h2 id="to_approx_string/2-example" class="section-heading
|
||||
<span class="text">Example</span>
|
||||
</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">
|
||||
</span><span class="p" data-group-id="9832297147-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="9832297147-1">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="2717398587-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="2717398587-1">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="to_at_least_string/2">
|
||||
@ -917,7 +920,7 @@ options.</p></li></ul><h2 id="to_at_least_string/2-example" class="section-headi
|
||||
<span class="text">Example</span>
|
||||
</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">
|
||||
</span><span class="p" data-group-id="1385879369-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="1385879369-1">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="8994401181-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="8994401181-1">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="to_at_most_string/2">
|
||||
@ -964,7 +967,7 @@ options.</p></li></ul><h2 id="to_at_most_string/2-example" class="section-headin
|
||||
<span class="text">Example</span>
|
||||
</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">
|
||||
</span><span class="p" data-group-id="5539638760-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="5539638760-1">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="4336749406-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="4336749406-1">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="to_range_string/2">
|
||||
@ -1011,7 +1014,7 @@ options.</p></li></ul><h2 id="to_range_string/2-example" class="section-heading"
|
||||
<span class="text">Example</span>
|
||||
</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">
|
||||
</span><span class="p" data-group-id="1564324481-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="1564324481-1">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="7482035549-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="7482035549-1">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="to_string/2">
|
||||
@ -1130,21 +1133,21 @@ extensions.</p><h2 id="to_string/2-wrapping-format-elements" class="section-head
|
||||
</h2>
|
||||
<p>Wrapping elements is particularly useful when formatting a number with a
|
||||
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="4844086606-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="4844086606-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="6368015956-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="6368015956-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">: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="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="4844086606-2">end</span><span class="p" data-group-id="4844086606-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4844086606-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="4844086606-3">}</span></code></pre><p>It is also possible and recommended to use the <a href="https://hexdocs.pm/phoenix_html/3.3.3/Phoenix.HTML.Tag.html#content_tag/3"><code class="inline">Phoenix.HTML.Tag.content_tag/3</code></a>
|
||||
</span><span class="gp unselectable">...> </span><span class="k" data-group-id="6368015956-2">end</span><span class="p" data-group-id="6368015956-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6368015956-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="6368015956-3">}</span></code></pre><p>It is also possible and recommended to use the <a href="https://hexdocs.pm/phoenix_html/3.3.3/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
|
||||
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="8193034557-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="8193034557-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="8193034557-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="8193034557-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="8193034557-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="8193034557-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="8193034557-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="8193034557-5">)</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="1441423566-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="1441423566-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="1441423566-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="1441423566-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="1441423566-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="1441423566-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="1441423566-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="1441423566-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="k" data-group-id="8193034557-2">end</span><span class="p" data-group-id="8193034557-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="8193034557-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="8193034557-6">}</span></code></pre><p>When formatting a number the format is parsed into format elements that might include
|
||||
</span><span class="gp unselectable">...> </span><span class="k" data-group-id="1441423566-2">end</span><span class="p" data-group-id="1441423566-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1441423566-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="1441423566-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
|
||||
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.
|
||||
@ -1165,80 +1168,80 @@ inserted in the final formatted number.</p><h2 id="to_string/2-returns" class="s
|
||||
<span class="text">Examples</span>
|
||||
</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">
|
||||
</span><span class="p" data-group-id="2454901056-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="2454901056-1">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-2">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-3">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-4">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-5">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-6">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-7">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-8">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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">...> </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="2454901056-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="2454901056-9">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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">...> </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="2454901056-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="2454901056-10">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-11">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-12">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-13">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-14">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-15">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-16">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-17">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-18">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-19">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-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="p" data-group-id="2454901056-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="2454901056-20">}</span></code></pre><h2 id="to_string/2-errors" class="section-heading">
|
||||
</span><span class="p" data-group-id="6861045385-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="6861045385-20">}</span></code></pre><h2 id="to_string/2-errors" class="section-heading">
|
||||
<a href="#to_string/2-errors" class="hover-link">
|
||||
<i class="ri-link-m" aria-hidden="true"></i>
|
||||
</a>
|
||||
<span class="text">Errors</span>
|
||||
</h2>
|
||||
<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="8323087855-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="8323087855-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="8323087855-2">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="8323087855-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="8323087855-3">}</span><span class="p" data-group-id="8323087855-2">}</span></code></pre><ul><li>The format style requested is not defined for the <code class="inline">locale</code> and
|
||||
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="1951371937-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="1951371937-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1951371937-2">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1951371937-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="1951371937-3">}</span><span class="p" data-group-id="1951371937-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">: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="2958556799-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="2958556799-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2958556799-2">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="2958556799-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="2958556799-3">}</span><span class="p" data-group-id="2958556799-2">}</span></code></pre>
|
||||
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="2340407345-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="2340407345-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2340407345-2">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="2340407345-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="2340407345-3">}</span><span class="p" data-group-id="2340407345-2">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="to_string!/2">
|
||||
@ -1343,17 +1346,17 @@ returned by <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.html#known_number_sy
|
||||
<span class="text">Examples</span>
|
||||
</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">
|
||||
</span><span class="p" data-group-id="3905194573-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="3905194573-1">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7697062933-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="7697062933-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="p" data-group-id="3905194573-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="3905194573-2">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7697062933-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="7697062933-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="p" data-group-id="3905194573-3">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3905194573-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="3905194573-4">}</span><span class="p" data-group-id="3905194573-3">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7697062933-3">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="7697062933-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="7697062933-4">}</span><span class="p" data-group-id="7697062933-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="p" data-group-id="3905194573-5">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3905194573-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="3905194573-6">}</span><span class="p" data-group-id="3905194573-5">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="7697062933-5">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7697062933-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="7697062933-6">}</span><span class="p" data-group-id="7697062933-5">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@ -1377,7 +1380,7 @@ returned by <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.html#known_number_sy
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Rbnf.NumberSystem — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -142,9 +145,9 @@ Pages
|
||||
<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
|
||||
number formatting.</p><p>The standard public API for RBNF is via the <a href="https://hexdocs.pm/ex_cldr_numbers/2.32.3/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="9649666461-1">(</span><span class="ss">:und</span><span class="p" data-group-id="9649666461-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="9649666461-2">(</span><span class="p" data-group-id="9649666461-2">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9649666461-3">[</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="7436732547-1">(</span><span class="ss">:und</span><span class="p" data-group-id="7436732547-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="7436732547-2">(</span><span class="p" data-group-id="7436732547-2">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7436732547-3">[</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">:cyrillic_lower</span><span class="p">,</span><span class="w">
|
||||
@ -158,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">:tamil</span><span class="p">,</span><span class="w">
|
||||
</span><span class="ss">:zz_default</span><span class="w">
|
||||
</span><span class="p" data-group-id="9649666461-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="3351491112-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="3351491112-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="1081898169-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="1081898169-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1081898169-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="1081898169-2">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="7436732547-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="9576528240-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="9576528240-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="4465135348-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="4465135348-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4465135348-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="4465135348-2">}</span></code></pre>
|
||||
</section>
|
||||
|
||||
|
||||
@ -1500,7 +1503,7 @@ defined in the Unicode CLDR data repository. Available rules are identified by:
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Rbnf.Ordinal — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -142,20 +145,20 @@ Pages
|
||||
<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
|
||||
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.32.3/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="6138355993-1">(</span><span class="ss">:en</span><span class="p" data-group-id="6138355993-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6138355993-2">[</span><span class="ss">:digits_ordinal</span><span class="p" data-group-id="6138355993-2">]</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="4805264218-1">(</span><span class="ss">:en</span><span class="p" data-group-id="4805264218-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4805264218-2">[</span><span class="ss">:digits_ordinal</span><span class="p" data-group-id="4805264218-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="6138355993-3">(</span><span class="s">"fr"</span><span class="p" data-group-id="6138355993-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="6138355993-4">(</span><span class="p" data-group-id="6138355993-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6138355993-5">[</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="4805264218-3">(</span><span class="s">"fr"</span><span class="p" data-group-id="4805264218-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="4805264218-4">(</span><span class="p" data-group-id="4805264218-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4805264218-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_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_masculine</span><span class="p">,</span><span class="w">
|
||||
</span><span class="ss">:digits_ordinal_masculine_plural</span><span class="w">
|
||||
</span><span class="p" data-group-id="6138355993-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="1641573368-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="1641573368-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="0121702742-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="0121702742-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="0121702742-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="0121702742-2">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="4805264218-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="6259201916-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="6259201916-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="2610240415-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="2610240415-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2610240415-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="2610240415-2">}</span></code></pre>
|
||||
</section>
|
||||
|
||||
|
||||
@ -325,7 +328,7 @@ defined in the Unicode CLDR data repository. Available rules are identified by:
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr.Rbnf.Spellout — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -142,9 +145,9 @@ Pages
|
||||
<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
|
||||
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.32.3/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="4695725060-1">(</span><span class="s">"en"</span><span class="p" data-group-id="4695725060-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="4695725060-2">(</span><span class="p" data-group-id="4695725060-2">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4695725060-3">[</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="6571723845-1">(</span><span class="s">"en"</span><span class="p" data-group-id="6571723845-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="6571723845-2">(</span><span class="p" data-group-id="6571723845-2">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6571723845-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_verbose</span><span class="p">,</span><span class="w">
|
||||
</span><span class="ss">:spellout_numbering</span><span class="p">,</span><span class="w">
|
||||
@ -152,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_ordinal</span><span class="p">,</span><span class="w">
|
||||
</span><span class="ss">:spellout_ordinal_verbose</span><span class="w">
|
||||
</span><span class="p" data-group-id="4695725060-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="7730760363-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="7730760363-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="8800186494-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="8800186494-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="8800186494-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="8800186494-2">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="6571723845-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="3677074829-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="3677074829-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="1900197933-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="1900197933-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1900197933-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="1900197933-2">}</span></code></pre>
|
||||
</section>
|
||||
|
||||
|
||||
@ -714,7 +717,7 @@ defined in the Unicode CLDR data repository. Available rules are identified by:
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Cldr — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -555,24 +558,24 @@ current locale is restored after the function.</p></div>
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="5414000141-1">(</span><span class="p" data-group-id="5414000141-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="5414000141-2">%</span><span class="nc" data-group-id="5414000141-2">Cldr.LanguageTag</span><span class="p" data-group-id="5414000141-2">{</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="8656554606-1">(</span><span class="p" data-group-id="8656554606-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="8656554606-2">%</span><span class="nc" data-group-id="8656554606-2">Cldr.LanguageTag</span><span class="p" data-group-id="8656554606-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">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">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5414000141-3">[</span><span class="p" data-group-id="5414000141-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="5414000141-4">%{</span><span class="p" data-group-id="5414000141-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="8656554606-3">[</span><span class="p" data-group-id="8656554606-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="8656554606-4">%{</span><span class="p" data-group-id="8656554606-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">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="5414000141-5">%{</span><span class="p" data-group-id="5414000141-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="5414000141-6">[</span><span class="p" data-group-id="5414000141-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="8656554606-5">%{</span><span class="p" data-group-id="8656554606-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="8656554606-6">[</span><span class="p" data-group-id="8656554606-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">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">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="5414000141-7">%{</span><span class="p" data-group-id="5414000141-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="5414000141-8">[</span><span class="p" data-group-id="5414000141-8">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="5414000141-2">}</span></code></pre>
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8656554606-7">%{</span><span class="p" data-group-id="8656554606-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="8656554606-8">[</span><span class="p" data-group-id="8656554606-8">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="8656554606-2">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="default_territory/0">
|
||||
@ -607,7 +610,7 @@ does not specify one and none can be inferred.</p><h2 id="default_territory/0-ex
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="9435439644-1">(</span><span class="p" data-group-id="9435439644-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="2201618761-1">(</span><span class="p" data-group-id="2201618761-1">)</span><span class="w">
|
||||
</span><span class="ss">:"001"</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -667,16 +670,16 @@ is inserted between words or sentences. The valid options are
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="4267944387-1">(</span><span class="s">"And furthermore"</span><span class="p" data-group-id="4267944387-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="6862781865-1">(</span><span class="s">"And furthermore"</span><span class="p" data-group-id="6862781865-1">)</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="4267944387-2">(</span><span class="p" data-group-id="4267944387-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="4267944387-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="4267944387-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="6862781865-2">(</span><span class="p" data-group-id="6862781865-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="6862781865-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="6862781865-2">)</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="4267944387-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="4267944387-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="6862781865-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="6862781865-4">)</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="4267944387-5">(</span><span class="p" data-group-id="4267944387-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="4267944387-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="4267944387-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="6862781865-5">(</span><span class="p" data-group-id="6862781865-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="6862781865-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="6862781865-5">)</span><span class="w">
|
||||
</span><span class="s">"And furthermore … there is much to be done"</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -712,23 +715,23 @@ take an optional locale parameter for which a locale is not supplied.</p><h2 id=
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="9575161858-1">(</span><span class="s">"pl"</span><span class="p" data-group-id="9575161858-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="9575161858-2">(</span><span class="p" data-group-id="9575161858-2">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9575161858-3">%</span><span class="nc" data-group-id="9575161858-3">Cldr.LanguageTag</span><span class="p" data-group-id="9575161858-3">{</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="1973957126-1">(</span><span class="s">"pl"</span><span class="p" data-group-id="1973957126-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="1973957126-2">(</span><span class="p" data-group-id="1973957126-2">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1973957126-3">%</span><span class="nc" data-group-id="1973957126-3">Cldr.LanguageTag</span><span class="p" data-group-id="1973957126-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">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">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9575161858-4">%{</span><span class="p" data-group-id="9575161858-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="1973957126-4">%{</span><span class="p" data-group-id="1973957126-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">locale</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="9575161858-5">%{</span><span class="p" data-group-id="9575161858-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="9575161858-6">[</span><span class="p" data-group-id="9575161858-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="1973957126-5">%{</span><span class="p" data-group-id="1973957126-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="1973957126-6">[</span><span class="p" data-group-id="1973957126-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">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">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="9575161858-7">%{</span><span class="p" data-group-id="9575161858-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="9575161858-8">[</span><span class="p" data-group-id="9575161858-8">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="9575161858-3">}</span></code></pre>
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1973957126-7">%{</span><span class="p" data-group-id="1973957126-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="1973957126-8">[</span><span class="p" data-group-id="1973957126-8">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="1973957126-3">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="known_calendars/0">
|
||||
@ -815,10 +818,10 @@ take an optional locale parameter for which a locale is not supplied.</p><h2 id=
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="3216641071-1">(</span><span class="s">"en"</span><span class="p" data-group-id="3216641071-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="5509892542-1">(</span><span class="s">"en"</span><span class="p" data-group-id="5509892542-1">)</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="3216641071-2">(</span><span class="s">"en-SA"</span><span class="p" data-group-id="3216641071-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="5509892542-2">(</span><span class="s">"en-SA"</span><span class="p" data-group-id="5509892542-2">)</span><span class="w">
|
||||
</span><span class="no">false</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -861,10 +864,10 @@ name is configured and available in Gettext.</p><h2 id="known_gettext_locale_nam
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="3184234232-1">(</span><span class="s">"en"</span><span class="p" data-group-id="3184234232-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="0548938495-1">(</span><span class="s">"en"</span><span class="p" data-group-id="0548938495-1">)</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="3184234232-2">(</span><span class="s">"!!"</span><span class="p" data-group-id="3184234232-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="0548938495-2">(</span><span class="s">"!!"</span><span class="p" data-group-id="0548938495-2">)</span><span class="w">
|
||||
</span><span class="no">false</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -938,10 +941,10 @@ to return the first known locale name from a list.</p><h2 id="known_locale_name/
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="9208538124-1">(</span><span class="ss">:"en-AU"</span><span class="p" data-group-id="9208538124-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="3098256180-1">(</span><span class="ss">:"en-AU"</span><span class="p" data-group-id="3098256180-1">)</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="9208538124-2">(</span><span class="ss">:"en-SA"</span><span class="p" data-group-id="9208538124-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="3098256180-2">(</span><span class="ss">:"en-SA"</span><span class="p" data-group-id="3098256180-2">)</span><span class="w">
|
||||
</span><span class="no">false</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -983,10 +986,10 @@ name is configured and available in Cldr.</p><h2 id="known_locale_name?/1-argume
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="0079237023-1">(</span><span class="ss">:en</span><span class="p" data-group-id="0079237023-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="7164062026-1">(</span><span class="ss">:en</span><span class="p" data-group-id="7164062026-1">)</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="0079237023-2">(</span><span class="ss">:"!!"</span><span class="p" data-group-id="0079237023-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="7164062026-2">(</span><span class="ss">:"!!"</span><span class="p" data-group-id="7164062026-2">)</span><span class="w">
|
||||
</span><span class="no">false</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -1040,8 +1043,8 @@ in this module or in <a href="https://hexdocs.pm/gettext/0.24.0/Gettext.html"><c
|
||||
</a>
|
||||
<span class="text">Example</span>
|
||||
</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="1947702148-1">(</span><span class="p" data-group-id="1947702148-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="1947702148-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="1947702148-2">]</span></code></pre>
|
||||
<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="5604236105-1">(</span><span class="p" data-group-id="5604236105-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="5604236105-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="5604236105-2">]</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="known_number_systems/0">
|
||||
@ -1106,10 +1109,10 @@ and has RBNF rules defined.</p><h2 id="known_rbnf_locale_name/1-arguments" class
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="4905799985-1">(</span><span class="ss">:en</span><span class="p" data-group-id="4905799985-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="6457394559-1">(</span><span class="ss">:en</span><span class="p" data-group-id="6457394559-1">)</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="4905799985-2">(</span><span class="ss">:"en-SA"</span><span class="p" data-group-id="4905799985-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="6457394559-2">(</span><span class="ss">:"en-SA"</span><span class="p" data-group-id="6457394559-2">)</span><span class="w">
|
||||
</span><span class="no">false</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -1152,10 +1155,10 @@ rules based number formats (RBNF).</p><h2 id="known_rbnf_locale_name?/1-argument
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="0984090979-1">(</span><span class="ss">:en</span><span class="p" data-group-id="0984090979-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="7596751178-1">(</span><span class="ss">:en</span><span class="p" data-group-id="7596751178-1">)</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="0984090979-2">(</span><span class="ss">:"!!"</span><span class="p" data-group-id="0984090979-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="7596751178-2">(</span><span class="ss">:"!!"</span><span class="p" data-group-id="7596751178-2">)</span><span class="w">
|
||||
</span><span class="no">false</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -1291,14 +1294,14 @@ CLDR backend defined by the <code class="inline">t:Cldr.LanguageTag</code> is se
|
||||
<span class="text">Examples</span>
|
||||
</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">
|
||||
</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="9645126974-1">(</span><span class="sx">~l"en"</span><span class="p" data-group-id="9645126974-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9645126974-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="9645126974-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_gettext_locale</span><span class="p" data-group-id="9760068413-1">(</span><span class="sx">~l"en"</span><span class="p" data-group-id="9760068413-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9760068413-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="9760068413-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="nc">Plausible.Cldr</span><span class="o">.</span><span class="n">put_gettext_locale</span><span class="p" data-group-id="9645126974-3">(</span><span class="sx">~l"de"</span><span class="p" data-group-id="9645126974-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9645126974-4">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="9645126974-5">{</span><span class="nc">Cldr.UnknownLocaleError</span><span class="p">,</span><span class="w">
|
||||
</span><span class="s">"Locale #Cldr.LanguageTag<de [validated]> does not map to a known gettext locale name"</span><span class="p" data-group-id="9645126974-5">}</span><span class="p" data-group-id="9645126974-4">}</span></code></pre>
|
||||
</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="9760068413-3">(</span><span class="sx">~l"de"</span><span class="p" data-group-id="9760068413-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9760068413-4">{</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="9760068413-5">{</span><span class="nc">Cldr.UnknownLocaleError</span><span class="p">,</span><span class="w">
|
||||
</span><span class="s">"Locale #Cldr.LanguageTag<de [validated]> does not map to a known gettext locale name"</span><span class="p" data-group-id="9760068413-5">}</span><span class="p" data-group-id="9760068413-4">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="put_locale/1">
|
||||
@ -1342,29 +1345,29 @@ of a language tag.</p><h2 id="put_locale/1-examples" class="section-heading">
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="4573128333-1">(</span><span class="s">"en"</span><span class="p" data-group-id="4573128333-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4573128333-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="4573128333-3">%</span><span class="nc" data-group-id="4573128333-3">Cldr.LanguageTag</span><span class="p" data-group-id="4573128333-3">{</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="3447258389-1">(</span><span class="s">"en"</span><span class="p" data-group-id="3447258389-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3447258389-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3447258389-3">%</span><span class="nc" data-group-id="3447258389-3">Cldr.LanguageTag</span><span class="p" data-group-id="3447258389-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">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">language_subtags</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="4573128333-4">[</span><span class="p" data-group-id="4573128333-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="4573128333-5">%{</span><span class="p" data-group-id="4573128333-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="3447258389-4">[</span><span class="p" data-group-id="3447258389-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="3447258389-5">%{</span><span class="p" data-group-id="3447258389-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">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="4573128333-6">%{</span><span class="p" data-group-id="4573128333-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="4573128333-7">[</span><span class="p" data-group-id="4573128333-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="3447258389-6">%{</span><span class="p" data-group-id="3447258389-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="3447258389-7">[</span><span class="p" data-group-id="3447258389-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">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">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="4573128333-8">%{</span><span class="p" data-group-id="4573128333-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="4573128333-9">[</span><span class="p" data-group-id="4573128333-9">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="4573128333-3">}</span><span class="p" data-group-id="4573128333-2">}</span><span class="w">
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="3447258389-8">%{</span><span class="p" data-group-id="3447258389-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="3447258389-9">[</span><span class="p" data-group-id="3447258389-9">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="3447258389-3">}</span><span class="p" data-group-id="3447258389-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="4573128333-10">(</span><span class="s">"invalid-locale!"</span><span class="p" data-group-id="4573128333-10">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4573128333-11">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4573128333-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="4573128333-12">}</span><span class="p" data-group-id="4573128333-11">}</span></code></pre>
|
||||
</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="3447258389-10">(</span><span class="s">"invalid-locale!"</span><span class="p" data-group-id="3447258389-10">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3447258389-11">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3447258389-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="3447258389-12">}</span><span class="p" data-group-id="3447258389-11">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="quote/2">
|
||||
@ -1413,10 +1416,10 @@ The default is <a href="https://hexdocs.pm/ex_cldr/2.37.5/Cldr.html#get_locale/0
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="0063481795-1">(</span><span class="s">"Quoted String"</span><span class="p" data-group-id="0063481795-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="1088107902-1">(</span><span class="s">"Quoted String"</span><span class="p" data-group-id="1088107902-1">)</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="0063481795-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="0063481795-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="1088107902-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="1088107902-2">)</span><span class="w">
|
||||
</span><span class="s">"「Quoted String」"</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -1547,47 +1550,47 @@ of a language tag.</p><h2 id="validate_locale/1-examples" class="section-heading
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="6348734326-1">(</span><span class="ss">:en</span><span class="p" data-group-id="6348734326-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6348734326-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="6348734326-3">%</span><span class="nc" data-group-id="6348734326-3">Cldr.LanguageTag</span><span class="p" data-group-id="6348734326-3">{</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="6721616144-1">(</span><span class="ss">:en</span><span class="p" data-group-id="6721616144-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6721616144-2">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="6721616144-3">%</span><span class="nc" data-group-id="6721616144-3">Cldr.LanguageTag</span><span class="p" data-group-id="6721616144-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">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">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6348734326-4">%{</span><span class="p" data-group-id="6348734326-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="6721616144-4">%{</span><span class="p" data-group-id="6721616144-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">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="6348734326-5">%{</span><span class="p" data-group-id="6348734326-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="6348734326-6">[</span><span class="p" data-group-id="6348734326-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="6721616144-5">%{</span><span class="p" data-group-id="6721616144-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="6721616144-6">[</span><span class="p" data-group-id="6721616144-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">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">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="6348734326-7">%{</span><span class="p" data-group-id="6348734326-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="6348734326-8">[</span><span class="p" data-group-id="6348734326-8">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="6348734326-3">}</span><span class="p" data-group-id="6348734326-2">}</span><span class="w">
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6721616144-7">%{</span><span class="p" data-group-id="6721616144-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="6721616144-8">[</span><span class="p" data-group-id="6721616144-8">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="6721616144-3">}</span><span class="p" data-group-id="6721616144-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="6348734326-9">(</span><span class="p" data-group-id="6348734326-9">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6348734326-10">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="6348734326-11">%</span><span class="nc" data-group-id="6348734326-11">Cldr.LanguageTag</span><span class="p" data-group-id="6348734326-11">{</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="6721616144-9">(</span><span class="p" data-group-id="6721616144-9">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6721616144-10">{</span><span class="ss">:ok</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="6721616144-11">%</span><span class="nc" data-group-id="6721616144-11">Cldr.LanguageTag</span><span class="p" data-group-id="6721616144-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">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">extensions</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6348734326-12">%{</span><span class="p" data-group-id="6348734326-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="6721616144-12">%{</span><span class="p" data-group-id="6721616144-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">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="6348734326-13">%{</span><span class="p" data-group-id="6348734326-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="6348734326-14">[</span><span class="p" data-group-id="6348734326-14">]</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="6721616144-13">%{</span><span class="p" data-group-id="6721616144-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="6721616144-14">[</span><span class="p" data-group-id="6721616144-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">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">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="6348734326-15">%{</span><span class="p" data-group-id="6348734326-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="6348734326-16">[</span><span class="p" data-group-id="6348734326-16">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="6348734326-11">}</span><span class="p" data-group-id="6348734326-10">}</span><span class="w">
|
||||
</span><span class="ss">transform</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6721616144-15">%{</span><span class="p" data-group-id="6721616144-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="6721616144-16">[</span><span class="p" data-group-id="6721616144-16">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="6721616144-11">}</span><span class="p" data-group-id="6721616144-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="6348734326-17">(</span><span class="s">"zzz"</span><span class="p" data-group-id="6348734326-17">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6348734326-18">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="6348734326-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="6348734326-19">}</span><span class="p" data-group-id="6348734326-18">}</span></code></pre>
|
||||
</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="6721616144-17">(</span><span class="s">"zzz"</span><span class="p" data-group-id="6721616144-17">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6721616144-18">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="6721616144-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="6721616144-19">}</span><span class="p" data-group-id="6721616144-18">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="validate_number_system/1">
|
||||
@ -1657,23 +1660,23 @@ of a language tag.</p><h2 id="validate_locale/1-examples" class="section-heading
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="3056807924-1">(</span><span class="ss">:default</span><span class="p" data-group-id="3056807924-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3056807924-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="3056807924-2">}</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="7662766682-1">(</span><span class="ss">:default</span><span class="p" data-group-id="7662766682-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7662766682-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="7662766682-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="3056807924-3">(</span><span class="ss">:traditional</span><span class="p" data-group-id="3056807924-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3056807924-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="3056807924-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="7662766682-3">(</span><span class="ss">:traditional</span><span class="p" data-group-id="7662766682-3">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7662766682-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="7662766682-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="3056807924-5">(</span><span class="ss">:latn</span><span class="p" data-group-id="3056807924-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3056807924-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="7662766682-5">(</span><span class="ss">:latn</span><span class="p" data-group-id="7662766682-5">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7662766682-6">{</span><span class="w">
|
||||
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3056807924-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="3056807924-7">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="3056807924-6">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7662766682-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="7662766682-7">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7662766682-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="3056807924-8">(</span><span class="s">"bork"</span><span class="p" data-group-id="3056807924-8">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3056807924-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_number_system_type</span><span class="p" data-group-id="7662766682-8">(</span><span class="s">"bork"</span><span class="p" data-group-id="7662766682-8">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7662766682-9">{</span><span class="w">
|
||||
</span><span class="ss">:error</span><span class="p">,</span><span class="w">
|
||||
</span><span class="p" data-group-id="3056807924-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="3056807924-10">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="3056807924-9">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="7662766682-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="7662766682-10">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7662766682-9">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="validate_territory/1">
|
||||
@ -1763,7 +1766,7 @@ identified.</p></li></ul>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.ClickhouseEventV2 — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -220,7 +223,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.ClickhouseRepo — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -842,23 +845,23 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
||||
|
||||
<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="6823148250-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="6823148250-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="4480448978-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="4480448978-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="6823148250-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="4480448978-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="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="6823148250-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="4480448978-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">: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="6823148250-3">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="6823148250-2">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="4480448978-3">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="4480448978-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="6823148250-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="6823148250-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="6823148250-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="6823148250-7">(</span><span class="n">i</span><span class="p" data-group-id="6823148250-7">)</span><span class="p" data-group-id="6823148250-6">}</span><span class="w"> </span><span class="k" data-group-id="6823148250-5">end</span><span class="p" data-group-id="6823148250-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="6823148250-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="6823148250-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="6823148250-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="6823148250-9">)</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="4480448978-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="4480448978-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="4480448978-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="4480448978-7">(</span><span class="n">i</span><span class="p" data-group-id="4480448978-7">)</span><span class="p" data-group-id="4480448978-6">}</span><span class="w"> </span><span class="k" data-group-id="4480448978-5">end</span><span class="p" data-group-id="4480448978-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="4480448978-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="4480448978-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="4480448978-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="4480448978-9">)</span><span class="w">
|
||||
|
||||
</span><span class="c1"># schemaless</span><span class="w">
|
||||
</span><span class="p" data-group-id="6823148250-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="6823148250-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="6823148250-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="6823148250-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="6823148250-13">(</span><span class="p" data-group-id="6823148250-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="6823148250-12">]</span><span class="p" data-group-id="6823148250-11">)</span></code></pre>
|
||||
</span><span class="p" data-group-id="4480448978-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="4480448978-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="4480448978-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="4480448978-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="4480448978-13">(</span><span class="p" data-group-id="4480448978-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="4480448978-12">]</span><span class="p" data-group-id="4480448978-11">)</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="load/2">
|
||||
@ -1236,7 +1239,7 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.ClickhouseSessionV2.BoolUInt8 — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -254,7 +257,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.ClickhouseSessionV2 — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -220,7 +223,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.ConfigHelpers — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -250,7 +253,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.DataCase — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -167,7 +170,7 @@ of the test unless the test case is marked as async.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.DataMigration.NumericIDs — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -319,7 +322,7 @@ priv/data_migrations/NumericIDs/sql</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.DataMigration.Repo — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -1149,23 +1152,23 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
||||
|
||||
<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="7286927487-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="7286927487-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="5894683340-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="5894683340-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="7286927487-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="5894683340-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="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="7286927487-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="5894683340-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">: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="7286927487-3">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="7286927487-2">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="5894683340-3">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="5894683340-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="7286927487-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="7286927487-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="7286927487-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="7286927487-7">(</span><span class="n">i</span><span class="p" data-group-id="7286927487-7">)</span><span class="p" data-group-id="7286927487-6">}</span><span class="w"> </span><span class="k" data-group-id="7286927487-5">end</span><span class="p" data-group-id="7286927487-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7286927487-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="7286927487-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="7286927487-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="7286927487-9">)</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="5894683340-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="5894683340-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="5894683340-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="5894683340-7">(</span><span class="n">i</span><span class="p" data-group-id="5894683340-7">)</span><span class="p" data-group-id="5894683340-6">}</span><span class="w"> </span><span class="k" data-group-id="5894683340-5">end</span><span class="p" data-group-id="5894683340-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="5894683340-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="5894683340-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="5894683340-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="5894683340-9">)</span><span class="w">
|
||||
|
||||
</span><span class="c1"># schemaless</span><span class="w">
|
||||
</span><span class="p" data-group-id="7286927487-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="7286927487-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="7286927487-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="7286927487-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="7286927487-13">(</span><span class="p" data-group-id="7286927487-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="7286927487-12">]</span><span class="p" data-group-id="7286927487-11">)</span></code></pre>
|
||||
</span><span class="p" data-group-id="5894683340-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="5894683340-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="5894683340-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="5894683340-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="5894683340-13">(</span><span class="p" data-group-id="5894683340-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="5894683340-12">]</span><span class="p" data-group-id="5894683340-11">)</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="load/2">
|
||||
@ -1615,7 +1618,7 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.DataMigration — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -163,7 +166,7 @@ run via remote shell or otherwise (TBD).</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.DebugReplayInfo — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -258,7 +261,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Ecto.EventName — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -383,7 +386,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Factory — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -1616,7 +1619,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Funnel.Const — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -254,7 +257,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Funnel.Step — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -287,7 +290,7 @@ See: <a href="Plausible.Funnel.html"><code class="inline">Plausible.Funnel</code
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Funnel — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -385,7 +388,7 @@ and changeset helpers for enumerating the steps within.</p><p>Each step referenc
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Funnels — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -414,7 +417,7 @@ See <a href="Plausible.Stats.Funnel.html"><code class="inline">Plausible.Stats.F
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Geo — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -257,8 +260,8 @@ and MaxMind license key.</p></div>
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="3576166321-1">(</span><span class="p" data-group-id="3576166321-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="5340393291-1">(</span><span class="p" data-group-id="5340393291-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="0118010029-1">(</span><span class="p" data-group-id="0118010029-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="4004026340-1">(</span><span class="p" data-group-id="4004026340-1">)</span><span class="w">
|
||||
</span><span class="s">"GeoLite2-City"</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -298,8 +301,8 @@ asynchronously.</p></li></ul><h2 id="load_db/1-examples" class="section-heading"
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="2693145119-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="2693145119-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="9688568698-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="9688568698-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="6826081696-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="6826081696-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="2602101338-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="2602101338-1">)</span><span class="w">
|
||||
</span><span class="ss">:ok</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
@ -328,21 +331,21 @@ asynchronously.</p></li></ul><h2 id="load_db/1-examples" class="section-heading"
|
||||
</a>
|
||||
<span class="text">Examples</span>
|
||||
</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="7446047332-1">(</span><span class="s">"8.7.6.5"</span><span class="p" data-group-id="7446047332-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7446047332-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="7446047332-3">%{</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="7262858985-1">(</span><span class="s">"8.7.6.5"</span><span class="p" data-group-id="7262858985-1">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-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="7262858985-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">"names"</span><span class="w"> </span><span class="p">=></span><span class="w"> </span><span class="p" data-group-id="7446047332-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="7262858985-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">"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">"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="7446047332-4">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7446047332-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="7446047332-5">%{</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-4">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-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="7262858985-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">"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="7446047332-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="7262858985-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">"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">
|
||||
@ -351,12 +354,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">"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="p" data-group-id="7446047332-6">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7446047332-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="7446047332-7">%{</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-6">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-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="7262858985-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">"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="7446047332-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="7262858985-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">"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">
|
||||
@ -365,20 +368,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">"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="p" data-group-id="7446047332-8">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7446047332-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="7446047332-9">%{</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-8">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-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="7262858985-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">"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">"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="p" data-group-id="7446047332-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="7446047332-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="7446047332-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="7446047332-11">%{</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-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="7262858985-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="7262858985-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="7262858985-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">"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="7446047332-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="7262858985-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">"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">
|
||||
@ -387,13 +390,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">"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="p" data-group-id="7446047332-12">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7446047332-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="7446047332-13">[</span><span class="w">
|
||||
</span><span class="p" data-group-id="7446047332-14">%{</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-12">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-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="7262858985-13">[</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-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">"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="7446047332-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="7262858985-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">"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">
|
||||
@ -402,10 +405,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">"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="p" data-group-id="7446047332-15">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7446047332-14">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7446047332-13">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="7446047332-2">}</span></code></pre>
|
||||
</span><span class="p" data-group-id="7262858985-15">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-14">}</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-13">]</span><span class="w">
|
||||
</span><span class="p" data-group-id="7262858985-2">}</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@ -429,7 +432,7 @@ asynchronously.</p></li></ul><h2 id="load_db/1-examples" class="section-heading"
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Goal.Revenue — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -280,7 +283,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Goal — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -283,7 +286,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Goals — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -396,7 +399,7 @@ funnel record(s) are removed completely along with the targeted goal.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Google.Api.Mock — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -216,7 +219,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Google.Api — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -564,7 +567,7 @@ many times.</p><p>Useful links:</p><ul><li><a href="https://plausible.io/docs/go
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Google.Buffer — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -458,7 +461,7 @@ maximum size, defined by <code class="inline">max_buffer_size/0</code>.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Google.HTTP — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -405,7 +408,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Google.ReportRequest — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -279,7 +282,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.HTTPClient.Interface — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -567,7 +570,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.HTTPClient.Non200Error — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -276,7 +279,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.HTTPClient — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -302,7 +305,7 @@ URL encoding is invoked.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Helpers.JSON — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -220,7 +223,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.ImportDeletionRepo — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -1140,23 +1143,23 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
||||
|
||||
<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="9023362617-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="9023362617-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="2763001461-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="2763001461-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="9023362617-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="2763001461-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="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="9023362617-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="2763001461-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">: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="9023362617-3">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="9023362617-2">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="2763001461-3">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="2763001461-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="9023362617-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="9023362617-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="9023362617-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="9023362617-7">(</span><span class="n">i</span><span class="p" data-group-id="9023362617-7">)</span><span class="p" data-group-id="9023362617-6">}</span><span class="w"> </span><span class="k" data-group-id="9023362617-5">end</span><span class="p" data-group-id="9023362617-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="9023362617-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="9023362617-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="9023362617-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="9023362617-9">)</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="2763001461-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="2763001461-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="2763001461-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="2763001461-7">(</span><span class="n">i</span><span class="p" data-group-id="2763001461-7">)</span><span class="p" data-group-id="2763001461-6">}</span><span class="w"> </span><span class="k" data-group-id="2763001461-5">end</span><span class="p" data-group-id="2763001461-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="2763001461-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="2763001461-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="2763001461-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="2763001461-9">)</span><span class="w">
|
||||
|
||||
</span><span class="c1"># schemaless</span><span class="w">
|
||||
</span><span class="p" data-group-id="9023362617-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="9023362617-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="9023362617-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="9023362617-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="9023362617-13">(</span><span class="p" data-group-id="9023362617-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="9023362617-12">]</span><span class="p" data-group-id="9023362617-11">)</span></code></pre>
|
||||
</span><span class="p" data-group-id="2763001461-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="2763001461-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="2763001461-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="2763001461-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="2763001461-13">(</span><span class="p" data-group-id="2763001461-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="2763001461-12">]</span><span class="p" data-group-id="2763001461-11">)</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="load/2">
|
||||
@ -1584,7 +1587,7 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Imported — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -282,7 +285,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.IngestRepo — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -1140,23 +1143,23 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
||||
|
||||
<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="3380759081-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="3380759081-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="0515319898-1">(</span><span class="s">"create table ecto_ch_demo(a UInt64, b String) engine Null"</span><span class="p" data-group-id="0515319898-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="3380759081-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="0515319898-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="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="3380759081-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="0515319898-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">: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="3380759081-3">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="3380759081-2">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="0515319898-3">end</span><span class="w">
|
||||
</span><span class="k" data-group-id="0515319898-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="3380759081-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="3380759081-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="3380759081-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="3380759081-7">(</span><span class="n">i</span><span class="p" data-group-id="3380759081-7">)</span><span class="p" data-group-id="3380759081-6">}</span><span class="w"> </span><span class="k" data-group-id="3380759081-5">end</span><span class="p" data-group-id="3380759081-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="3380759081-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="3380759081-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="3380759081-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="3380759081-9">)</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="0515319898-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="0515319898-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="0515319898-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="0515319898-7">(</span><span class="n">i</span><span class="p" data-group-id="0515319898-7">)</span><span class="p" data-group-id="0515319898-6">}</span><span class="w"> </span><span class="k" data-group-id="0515319898-5">end</span><span class="p" data-group-id="0515319898-4">)</span><span class="w">
|
||||
</span><span class="p" data-group-id="0515319898-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="0515319898-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="0515319898-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="0515319898-9">)</span><span class="w">
|
||||
|
||||
</span><span class="c1"># schemaless</span><span class="w">
|
||||
</span><span class="p" data-group-id="3380759081-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="3380759081-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="3380759081-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="3380759081-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="3380759081-13">(</span><span class="p" data-group-id="3380759081-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="3380759081-12">]</span><span class="p" data-group-id="3380759081-11">)</span></code></pre>
|
||||
</span><span class="p" data-group-id="0515319898-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="0515319898-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="0515319898-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="0515319898-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="0515319898-13">(</span><span class="p" data-group-id="0515319898-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="0515319898-12">]</span><span class="p" data-group-id="0515319898-11">)</span></code></pre>
|
||||
</section>
|
||||
</section>
|
||||
<section class="detail" id="load/2">
|
||||
@ -1584,7 +1587,7 @@ pool to disconnect within the given interval.</p><p>See <a href="https://hexdocs
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Ingestion.Counters.Buffer — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -511,7 +514,7 @@ are configurable only for test purposes.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Ingestion.Counters.Record — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -233,7 +236,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Ingestion.Counters.TelemetryHandler — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -267,7 +270,7 @@ its metadata is extracted and sent for internal stats aggregation via
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Ingestion.Counters — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -307,7 +310,7 @@ a pool checkout is made. Those properties are reverted once the insert is done
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Ingestion.Event.Revenue — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -220,7 +223,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Ingestion.Event — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -561,7 +564,7 @@ are uniformly either buffered in batches (to Clickhouse) or dropped
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Ingestion.Request.Revenue — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -220,7 +223,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Ingestion.Request — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -334,7 +337,7 @@ to detect user errors early.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Mailer — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -456,7 +459,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.OpenTelemetry.Sampler — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -165,7 +168,7 @@ from <a href="https://github.com/open-telemetry/opentelemetry-erlang/blob/main/a
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.PaddleApi.Mock — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -336,7 +339,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Pagination — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -229,7 +232,7 @@ Pages
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="ExDoc v0.31.0">
|
||||
<meta name="generator" content="ExDoc v0.31.1">
|
||||
<meta name="project" content="Plausible v0.0.1">
|
||||
|
||||
|
||||
<title>Plausible.Plugins.API.CustomProps — Plausible v0.0.1</title>
|
||||
<link rel="stylesheet" href="dist/html-elixir-3ZLIM5JF.css" />
|
||||
<link rel="stylesheet" href="dist/html-elixir-FM2CSD74.css" />
|
||||
|
||||
|
||||
<script src="dist/handlebars.runtime-NWIB6V2M.js"></script>
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<script src="docs_config.js"></script>
|
||||
|
||||
<script async src="dist/html-CILPWI2Q.js"></script>
|
||||
<script async src="dist/html-L4O5OK2K.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
@ -39,10 +39,12 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<button class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<button id="sidebar-menu" class="sidebar-button sidebar-toggle" aria-label="toggle sidebar" aria-controls="sidebar">
|
||||
<i class="ri-menu-line ri-lg" title="Collapse/expand sidebar"></i>
|
||||
</button>
|
||||
|
||||
<div class="background-layer"></div>
|
||||
|
||||
<nav id="sidebar" class="sidebar">
|
||||
|
||||
<div class="sidebar-header">
|
||||
@ -117,13 +119,14 @@ Pages
|
||||
<i class="ri-close-line ri-lg" title="Cancel search"></i>
|
||||
</button>
|
||||
</form>
|
||||
<div class="autocomplete">
|
||||
</div>
|
||||
<button class="icon-settings display-settings">
|
||||
<i class="ri-settings-3-line"></i>
|
||||
<span class="sr-only">Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete">
|
||||
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
@ -265,7 +268,7 @@ All high level Custom Props operations should be implemented here.</p>
|
||||
|
||||
<p class="built-using">
|
||||
Built using
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.0) for the
|
||||
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v0.31.1) for the
|
||||
|
||||
<a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user