Skip to content

Commit

Permalink
Add some localised dates as examples
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Nov 21, 2022
1 parent aac49ef commit 296c3ea
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,22 @@ <h2>Dynamic Formats</h2>
</time-until>
</p>

<h2>Localised Dates</h2>
<p>
Dates localised to Polish:
<relative-time datetime="2019-08-12T20:50:00.000Z" lang="pl" prefix="">
Oops! This browser doesn't support Web Components.
</relative-time>
</p>


<p>
Localised with custom format:
<relative-time datetime="2019-08-12T20:50:00.000Z" format="%a %B %d" lang="pl">
Oops! This browser doesn't support Web Components.
</relative-time>
</p>

<!-- <script type="module" src="../dist/index.js"></script> -->
<script type="module" src="https://unpkg.com/@github/time-elements@latest?module"></script>
<script>
Expand Down

0 comments on commit 296c3ea

Please sign in to comment.