@panoramax/web-viewer 4.0.2-develop-4d3bf829 → 4.0.2-develop-682e2a36
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.
package/package.json
CHANGED
|
@@ -226,7 +226,7 @@ export default class PictureLegend extends LitElement {
|
|
|
226
226
|
|
|
227
227
|
${this._caption.date ? html`<div class="info-block">
|
|
228
228
|
${fa(faCalendarAlt)}
|
|
229
|
-
${this._caption.date.toLocaleDateString(
|
|
229
|
+
${this._caption.date.toLocaleDateString(this._parent?.lang || window.navigator.language, { year: "numeric", month: "long" })}
|
|
230
230
|
</div>` : nothing}
|
|
231
231
|
</div>
|
|
232
232
|
|
|
@@ -119,6 +119,8 @@ export default class PictureMetadata extends LitElement {
|
|
|
119
119
|
/* eslint-disable indent */
|
|
120
120
|
if(!this._meta) { return nothing; }
|
|
121
121
|
|
|
122
|
+
const lang = this._parent?.lang || window.navigator.language;
|
|
123
|
+
|
|
122
124
|
// Generic information
|
|
123
125
|
const persOrient = this._meta?.properties?.["pers:interior_orientation"];
|
|
124
126
|
const makeModel = [persOrient.camera_manufacturer, persOrient.camera_model].filter(v => v).join(" ");
|
|
@@ -147,11 +149,11 @@ export default class PictureMetadata extends LitElement {
|
|
|
147
149
|
this._meta?.caption?.date && {
|
|
148
150
|
title: this._parent?._t.pnx.metadata_general_date,
|
|
149
151
|
content: html`
|
|
150
|
-
<strong>${new Intl.DateTimeFormat(
|
|
152
|
+
<strong>${new Intl.DateTimeFormat(lang, {
|
|
151
153
|
timeZone: this._meta.caption.tz,
|
|
152
154
|
dateStyle: "short"
|
|
153
155
|
}).format(this._meta.caption.date)}</strong>
|
|
154
|
-
<br />${new Intl.DateTimeFormat(
|
|
156
|
+
<br />${new Intl.DateTimeFormat(lang, {
|
|
155
157
|
timeZone: this._meta.caption.tz,
|
|
156
158
|
hour: "numeric",
|
|
157
159
|
minute: "numeric",
|
|
@@ -312,8 +314,8 @@ export default class PictureMetadata extends LitElement {
|
|
|
312
314
|
this._meta?.caption?.date && {
|
|
313
315
|
title: this._parent?._t.pnx.metadata_general_date,
|
|
314
316
|
content: html`
|
|
315
|
-
<strong>${new Intl.DateTimeFormat(
|
|
316
|
-
<br />${new Intl.DateTimeFormat(
|
|
317
|
+
<strong>${new Intl.DateTimeFormat(lang, {timeZone: this._meta.caption.tz, dateStyle: "long"}).format(this._meta.caption.date)}</strong>
|
|
318
|
+
<br />${new Intl.DateTimeFormat(lang, {timeZone: this._meta.caption.tz, hour: "numeric",minute:"numeric"}).format(this._meta.caption.date)}
|
|
317
319
|
`
|
|
318
320
|
},
|
|
319
321
|
// Camera
|