@dative-gpi/foundation-shared-services 1.0.124 → 1.0.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -57,10 +57,10 @@ export const useDateFormat = () => {
|
|
|
57
57
|
}
|
|
58
58
|
const date = new Date(value);
|
|
59
59
|
if (isEpochToday(value)) {
|
|
60
|
-
return $tr("ui.
|
|
60
|
+
return $tr("ui.common.today", "Today");
|
|
61
61
|
}
|
|
62
62
|
if (isEpochYesterday(value)) {
|
|
63
|
-
return $tr("ui.
|
|
63
|
+
return $tr("ui.common.yesterday", "Yesterday");
|
|
64
64
|
}
|
|
65
65
|
const dateString = date.toLocaleString(languageCode.value, { ...OPTIONS.longDate, timeZone: timeZone.value });
|
|
66
66
|
return dateString[0].toLocaleUpperCase() + dateString.slice(1);
|
|
@@ -96,10 +96,10 @@ export const useDateFormat = () => {
|
|
|
96
96
|
}
|
|
97
97
|
const date = new Date(value);
|
|
98
98
|
if (isEpochToday(value)) {
|
|
99
|
-
return `${$tr("ui.
|
|
99
|
+
return `${$tr("ui.common.today-at", "Today at")} ${date.toLocaleString(languageCode.value, { ...OPTIONS.time, timeZone: timeZone.value })}`;
|
|
100
100
|
}
|
|
101
101
|
if (isEpochYesterday(value)) {
|
|
102
|
-
return `${$tr("ui.
|
|
102
|
+
return `${$tr("ui.common.yesterday-at", "Yesterday at")} ${date.toLocaleString(languageCode.value, { ...OPTIONS.time, timeZone: timeZone.value })}`;
|
|
103
103
|
}
|
|
104
104
|
const dateString = date.toLocaleString(languageCode.value, { ...OPTIONS.longTime, timeZone: timeZone.value });
|
|
105
105
|
return dateString[0].toLocaleUpperCase() + dateString.slice(1);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-services",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.125",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.125"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"vue": "^3.4.38",
|
|
19
19
|
"vue-router": "^4.3.0"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "fe376a2d6846d6830925a36d0d7a54ec6e71a141"
|
|
22
22
|
}
|