File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 89
89
<p >
90
90
{{ 'ACCOUNTS_PANE.CARDS.BANK' | translate }}
91
91
<span class =" amount" :class =" { 'has-text-danger': account.inBank <= 0 }" >
92
- {{account.inBank | format }} <icon size =" is-small" :fa =" account.currency" />
92
+ {{account.inBank.toLocaleString($root.settings.language) }} <icon size =" is-small" :fa =" account.currency" />
93
93
</span>
94
94
</p>
95
95
<p >
96
96
{{ 'ACCOUNTS_PANE.CARDS.TODAY' | translate }}
97
97
<span class =" amount" :class =" { 'has-text-danger': account.today <= 0 }" >
98
- {{account.today | format }} <icon size =" is-small" :fa =" account.currency" />
98
+ {{account.today.toLocaleString($root.settings.language) }} <icon size =" is-small" :fa =" account.currency" />
99
99
</span>
100
100
</p>
101
101
<p >
102
102
{{ 'ACCOUNTS_PANE.CARDS.FUTURE' | translate }}
103
103
<span class =" amount" :class =" { 'has-text-danger': account.future <= 0 }" >
104
- {{account.future | format }} <icon size =" is-small" :fa =" account.currency" />
104
+ {{account.future.toLocaleString($root.settings.language) }} <icon size =" is-small" :fa =" account.currency" />
105
105
</span>
106
106
</p>
107
107
</small>
Original file line number Diff line number Diff line change 69
69
<td><div class =" is-not-too-large" >{{row.beneficiary}}</div></td>
70
70
<td>{{row.category}}</td>
71
71
<td ><div class =" is-not-too-large" >{{row.label}}</div></td>
72
- <td class="has-text-centered" :class="{'has-text-danger': !isFuture(row)}">{{row.amount < 0 ? row.amount: ''}}</td>
73
- <td class =" has-text-centered" :class =" {'has-text-success': !row.isClicked && !isFuture(row)}" >{{row.amount >= 0 ? row.amount.toLocaleString(): ''}}</td>
72
+ <td class="has-text-centered" :class="{'has-text-danger': !isFuture(row)}">{{row.amount < 0 ? row.amount.toLocaleString($root.settings.language) : ''}}</td>
73
+ <td class =" has-text-centered" :class =" {'has-text-success': !row.isClicked && !isFuture(row)}" >{{row.amount >= 0 ? row.amount.toLocaleString($root.settings.language ): ''}}</td>
74
74
</tr>
75
75
</transition-group>
76
76
</table>
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import Vue from 'vue'
4
4
import moment from 'moment'
5
5
import path from 'path'
6
6
7
- const decimalSeperator = 1.1 . toLocaleString ( ) . substring ( 1 , 2 )
8
7
let globSettings = jsonfile . readFileSync ( path . join ( __static , 'settings.json' ) )
8
+ const decimalSeperator = 1.1 . toLocaleString ( globSettings . language ) . substring ( 1 , 2 )
9
9
const lang = jsonfile . readFileSync ( `${ __static } /lang/${ globSettings . language } _.json` )
10
10
i18njs . add ( globSettings . language , '' , lang )
11
11
i18njs . setLang ( globSettings . language )
You can’t perform that action at this time.
0 commit comments