fleetmap-reports 1.0.352 → 1.0.353

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "1.0.352",
3
+ "version": "1.0.353",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -115,7 +115,7 @@ async function processDevices(from, to, devices, geofences, drivers, data, tracc
115
115
 
116
116
  async function exportSpeedingReportToPDF(userData, reportData) {
117
117
  console.log('Export to PDF')
118
-
118
+ const lang = userData.user.attributes.lang || (navigator && navigator.language)
119
119
  const translations = getTranslations(userData)
120
120
  const timezone = userData.user.attributes.timezone
121
121
 
@@ -124,6 +124,7 @@ async function exportIdleReportToPDF(userData, reportData) {
124
124
  console.log('Export to PDF')
125
125
 
126
126
  const timezone = userData.user.attributes.timezone
127
+ const lang = userData.user.attributes.lang || (navigator && navigator.language)
127
128
  const translations = getTranslations(userData)
128
129
 
129
130
  const idleData = userData.byDriver ? reportData.drivers : reportData.devices
@@ -150,6 +150,7 @@ async function exportZoneReportToPDF(userData, reportData) {
150
150
 
151
151
  const timezone = userData.user.attributes.timezone
152
152
  const translations = getTranslations(userData)
153
+ const lang = userData.user.attributes.lang || (navigator && navigator.language)
153
154
 
154
155
  const headers = [
155
156
  translations.report.enter,