Skip to content

Commit

Permalink
Merge pull request #207 from github/add-some-localised-dates-as-examples
Browse files Browse the repository at this point in the history
Add some localised dates as examples
  • Loading branch information
keithamus authored Nov 21, 2022
2 parents 2a36937 + 296c3ea commit 82f9512
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 82f9512

Please sign in to comment.