fleetmap-reports 1.0.582 → 1.0.584
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/lang/index.js +4 -0
- package/package.json +1 -1
- package/src/util/pdfDocument.js +2 -5
package/lang/index.js
CHANGED
|
@@ -2,8 +2,12 @@ const enGBLocale = require('./enGB')
|
|
|
2
2
|
const ptBRLocale = require('./ptBR')
|
|
3
3
|
const esCLLocale = require('./esCL')
|
|
4
4
|
const ptPTLocale = require('./ptPT')
|
|
5
|
+
const frFRLocale = require('./frFR')
|
|
5
6
|
|
|
6
7
|
module.exports = {
|
|
8
|
+
'fr-FR': {
|
|
9
|
+
...frFRLocale
|
|
10
|
+
},
|
|
7
11
|
'en-GB': {
|
|
8
12
|
...enGBLocale
|
|
9
13
|
},
|
package/package.json
CHANGED
package/src/util/pdfDocument.js
CHANGED
|
@@ -48,13 +48,10 @@ function addTable (doc, headers, data, footValues, style, startY, columnStyles =
|
|
|
48
48
|
|
|
49
49
|
},
|
|
50
50
|
didDrawCell: (data) => {
|
|
51
|
-
console.log(data)
|
|
52
51
|
data.table.foot.forEach((footRow) => {
|
|
53
52
|
const keys = Object.keys(columnStyles)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
console.log(footRow)
|
|
57
|
-
footRow.cells[i].styles.halign = 'right'
|
|
53
|
+
keys.forEach(a => {
|
|
54
|
+
footRow.cells[a].styles.halign = 'right'
|
|
58
55
|
})
|
|
59
56
|
})
|
|
60
57
|
},
|