Skip to content

Commit fa06148

Browse files
committed
Rename analog to analogue
1 parent 4bdaeba commit fa06148

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Analog and Digital Clocks as Web Components
1+
# Analogue and Digital Clocks as Web Components
22

33
[![NPM version](https://badge.fury.io/js/web-clocks.png)](http://badge.fury.io/js/web-clocks)
44
[![Build Status](https://github.com/prantlf/web-clocks/workflows/Test/badge.svg)](https://github.com/prantlf/web-clocks/actions)
@@ -7,7 +7,7 @@
77

88
[![NPM Downloads](https://nodei.co/npm/web-clocks.png?downloads=true&stars=true)](https://www.npmjs.com/package/web-clocks)
99

10-
[Web components] showing an analog clock known from [a Svelte example] and a digital clock similar to [another Svelte example].
10+
[Web components] showing an analogue clock known from [a Svelte example] and a digital clock similar to [another Svelte example].
1111

1212
![Example](./example.png)
1313

@@ -32,7 +32,7 @@ See the [on-line demo] or the [storybook].
3232
```
3333

3434
```html
35-
<!-- Load either analog or digital clock from a local installation -->
35+
<!-- Load either analogue or digital clock from a local installation -->
3636
<script type=module src=node_modules/web-clocks/dist/ana-clock.mjs></script>
3737
<script type=module src=node_modules/web-clocks/dist/digi-clock.mjs></script>
3838
```
@@ -47,26 +47,26 @@ See the [on-line demo] or the [storybook].
4747

4848
```html
4949
<script type=module>>
50-
// Load either analog or digital clock and use their classes
50+
// Load either analogue or digital clock and use their classes
5151
import AnaClock from '../dist/ana-clock.mjs'
5252
import DigiClock from '../dist/digi-clock.mjs'
5353
...
5454
</script>
5555
```
5656

5757
```js
58-
// Include either analog or digital clock in your application bundle
58+
// Include either analogue or digital clock in your application bundle
5959
import { AnaClock, DigiClock } from 'web-clocks'
6060
```
6161

6262
### Attributes
6363

64-
| Attribute | Description | Values | Default |
65-
|--------------|-----------------------------------------|-----------------------------------------|---------|
66-
| `markers` | chooses the density of markers (analog) | `sixty` \| `twelve` \| `four` \| `none` | `sixty` |
67-
| `secondhand` | disables the second hand (analog) | boolean | `false` |
68-
| `seconds` | disables the second part (digital) | boolean | `false` |
69-
| `offset` | adds the offset in minutes to UTC | number of minutes | `0` |
64+
| Attribute | Description | Values | Default |
65+
|--------------|-------------------------------------------|-----------------------------------------|---------|
66+
| `markers` | chooses the density of markers (analogue) | `sixty` \| `twelve` \| `four` \| `none` | `sixty` |
67+
| `secondhand` | disables the second hand (analogue) | boolean | `false` |
68+
| `seconds` | disables the second part (digital) | boolean | `false` |
69+
| `offset` | adds the offset in minutes to UTC | number of minutes | `0` |
7070

7171
### Methods
7272

book/stories/ana-clock.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import notes from '../../README.md'
1414

1515
# &lt;ana-clock&gt;
1616

17-
Showing an analog clock known from Svelte examples.
17+
Showing an analogue clock known from Svelte examples.
1818

1919
## Default
2020

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset=utf-8>
55
<meta name=viewport content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5">
6-
<meta name=description content="Web components showing an analog clock and a digital clock known from Svelte examples.">
6+
<meta name=description content="Web components showing an analogue clock and a digital clock known from Svelte examples.">
77
<meta http-equiv=X-UA-Compatible content=IE=edge>
88
<link rel=icon type=image/png href=favicon.png>
99
<title>Web Clocks</title>
@@ -27,7 +27,7 @@
2727
<h1>Web Clocks</h1>
2828
<main>
2929
<article>
30-
<p>A web component showing an analog clock known from
30+
<p>A web component showing an analogue clock known from
3131
<a href=https://svelte.dev/repl/clock?version=3.30.1>a Svelte example</a>:</p>
3232
<section>
3333
<ana-clock></ana-clock>

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "web-clocks",
33
"version": "0.0.1",
4-
"description": "Web components showing an analog clock and a digital clock known from Svelte examples.",
4+
"description": "Web components showing an analogue clock and a digital clock known from Svelte examples.",
55
"homepage": "https://github.com/prantlf/web-clocks#readme",
66
"author": {
77
"name": "Ferdinand Prantl",
@@ -64,10 +64,10 @@
6464
"svelte",
6565
"web-component",
6666
"webcomponent",
67-
"analog-clock",
67+
"analogue-clock",
6868
"digital-clock",
6969
"clock",
70-
"analog",
70+
"analogue",
7171
"digital"
7272
]
7373
}

src/ana-clock.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<svelte:options tag="ana-clock" immutable={true} />
22

33
<script>
4-
import { createEventDispatcher, onMount, tick } from 'svelte'
4+
import { onMount, tick } from 'svelte'
55
import { get_current_component } from 'svelte/internal'
66
import dispatchTick from './util/dispatch-tick'
77
import getNow from './util/get-now'

src/digi-clock.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<svelte:options tag="digi-clock" immutable={true} />
22

33
<script>
4-
import { createEventDispatcher, onMount, tick } from 'svelte'
4+
import { onMount, tick } from 'svelte'
55
import { get_current_component } from 'svelte/internal'
66
import dispatchTick from './util/dispatch-tick'
77
import getNow from './util/get-now'

0 commit comments

Comments
 (0)