Skip to content

Commit 81eb8d8

Browse files
committed
feat(QDate): small tweaks
1 parent 094697f commit 81eb8d8

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

ui/lang/ro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default {
2424
firstDayOfWeek: 1, // 0-6, 0 - Sunday, 1 Monday, ...
2525
format24h: true,
2626
singleDay: 'zi',
27-
pluralDay: 'zi'
27+
pluralDay: 'zile'
2828
},
2929
table: {
3030
noData: 'Nu sunt date disponibile',

ui/src/components/date/QDate.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,15 @@ export default Vue.extend({
8080

8181
data () {
8282
const
83+
locale = this.__getComputedLocale(),
8384
{ inner, external } = this.__getModels(
8485
this.defaultRangeView === 'start'
8586
? this.__getFirstSelectedDate(this.value)
86-
: this.__getLastSelectedDate(this.value), this.mask, this.__getComputedLocale()
87+
: this.__getLastSelectedDate(this.value),
88+
this.mask,
89+
locale
8790
),
88-
dates = this.__getDates(this.value, this.mask, this.__getComputedLocale()),
91+
dates = this.__getDates(this.value, this.mask, locale),
8992
direction = this.$q.lang.rtl === true ? 'right' : 'left'
9093

9194
return {
@@ -103,12 +106,15 @@ export default Vue.extend({
103106
watch: {
104107
value (v) {
105108
const
109+
locale = this.__getComputedLocale(),
106110
{ inner, external } = this.__getModels(
107111
this.defaultRangeView === 'start'
108112
? this.__getFirstSelectedDate(v)
109-
: this.__getLastSelectedDate(v), this.mask, this.__getComputedLocale()
113+
: this.__getLastSelectedDate(v),
114+
this.mask,
115+
locale
110116
),
111-
dates = this.__getDates(v, this.mask, this.__getComputedLocale())
117+
dates = this.__getDates(v, this.mask, locale)
112118

113119
this.dates = dates
114120

0 commit comments

Comments
 (0)