better naming

master
kkayam 2025-02-13 10:56:33 +00:00
parent 522a825206
commit 2542c60a49
2 changed files with 14 additions and 14 deletions

View File

@ -51,7 +51,7 @@
'Night',
];
const LITERAL_HOURS = [
const HOURS = [
'Twelve',
'One',
'Two',
@ -65,21 +65,21 @@
'Ten',
'Eleven',
'Twelve',
'One',
'Two',
'Three',
'Four',
'Five',
'Six',
'Seven',
'Eight',
'Nine',
'Ten',
'Eleven'
'Thirteen',
'Fourteen',
'Fifteen',
'Sixteen',
'Seventeen',
'Eighteen',
'Nineteen',
'Twenty',
'Twentyone',
'Twentytwo',
'Twentythree'
];
const wordFromHour = (h) => {
return settings.mode === "Named" ? HOUR_WORDS[h] : LITERAL_HOURS[h];
return settings.mode === "Named" ? HOUR_WORDS[h] : HOURS[h];
};
const wordsFromDayMonth = (day) => {

View File

@ -2,7 +2,7 @@
"id": "onewordclock",
"name": "One Word Clock",
"shortName": "One Word",
"version": "0.95",
"version": "0.96",
"description": "A unique clock that displays a single evocative word for each hour of the day",
"icon": "app.png",
"tags": "clock",