Skip to content

Commit

Permalink
Deploying to gh-pages from @ f9a76cb 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Mar 10, 2024
1 parent 1ec282b commit d4f578e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fluent.runtime/dev/_modules/fluent/runtime/bundle.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ <h1>Source code for fluent.runtime.bundle</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">_babel_locale</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_get_babel_locale</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_plural_form</span> <span class="o">=</span> <span class="n">cast</span><span class="p">(</span><span class="n">Callable</span><span class="p">[[</span><span class="n">Any</span><span class="p">],</span> <span class="n">Callable</span><span class="p">[[</span><span class="n">Union</span><span class="p">[</span><span class="nb">int</span><span class="p">,</span> <span class="nb">float</span><span class="p">]],</span> <span class="n">PluralCategory</span><span class="p">]],</span>
<span class="n">babel</span><span class="o">.</span><span class="n">plural</span><span class="o">.</span><span class="n">to_python</span><span class="p">)(</span><span class="bp">self</span><span class="o">.</span><span class="n">_babel_locale</span><span class="o">.</span><span class="n">plural_form</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_ordinal_form</span> <span class="o">=</span> <span class="n">cast</span><span class="p">(</span><span class="n">Callable</span><span class="p">[[</span><span class="n">Any</span><span class="p">],</span> <span class="n">Callable</span><span class="p">[[</span><span class="n">Union</span><span class="p">[</span><span class="nb">int</span><span class="p">,</span> <span class="nb">float</span><span class="p">]],</span> <span class="n">PluralCategory</span><span class="p">]],</span>
<span class="n">babel</span><span class="o">.</span><span class="n">plural</span><span class="o">.</span><span class="n">to_python</span><span class="p">)(</span><span class="bp">self</span><span class="o">.</span><span class="n">_babel_locale</span><span class="o">.</span><span class="n">ordinal_form</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">add_resource</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">resource</span><span class="p">:</span> <span class="n">FTL</span><span class="o">.</span><span class="n">Resource</span><span class="p">,</span> <span class="n">allow_overrides</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># TODO - warn/error about duplicates</span>
Expand Down

0 comments on commit d4f578e

Please sign in to comment.