fleetmap-reports 1.0.351 → 1.0.352
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 +1 -1
- package/src/location-report.js +2 -1
package/package.json
CHANGED
package/src/location-report.js
CHANGED
|
@@ -4,7 +4,7 @@ require('jspdf-autotable')
|
|
|
4
4
|
const {headerFromUser} = require("./util/pdfDocument");
|
|
5
5
|
const {getStyle} = require("./reportStyle")
|
|
6
6
|
const {getUserPartner} = require("fleetmap-partners");
|
|
7
|
-
const {convertToLocaleString} = require("./util/utils");
|
|
7
|
+
const {convertToLocaleString, getTranslations} = require("./util/utils");
|
|
8
8
|
|
|
9
9
|
const fileName = 'LocationReport'
|
|
10
10
|
|
|
@@ -104,6 +104,7 @@ async function exportLocationReportToPDF(userData, reportData) {
|
|
|
104
104
|
console.log('Export to PDF')
|
|
105
105
|
|
|
106
106
|
const translations = getTranslations(userData)
|
|
107
|
+
const lang = userData.user.attributes.lang || (navigator && navigator.language)
|
|
107
108
|
const timezone = userData.user.attributes.timezone
|
|
108
109
|
|
|
109
110
|
const headers = [
|