diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-02 06:58:15 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-02 06:58:15 +0900 |
| commit | b0fdf25b24901c429a59b5e4033ffee4b5b8a794 (patch) | |
| tree | 3add149d3ec7002e3403821dfcd1d27dc39bba25 /src | |
| parent | Merge pull request #2054 from syuilo/greenkeeper/vue-template-compiler-2.5.17 (diff) | |
| download | misskey-b0fdf25b24901c429a59b5e4033ffee4b5b8a794.tar.gz misskey-b0fdf25b24901c429a59b5e4033ffee4b5b8a794.tar.bz2 misskey-b0fdf25b24901c429a59b5e4033ffee4b5b8a794.zip | |
Improve i18n
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/common/views/widgets/calendar.vue | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/client/app/common/views/widgets/calendar.vue b/src/client/app/common/views/widgets/calendar.vue index d928663bb4..68a58f8936 100644 --- a/src/client/app/common/views/widgets/calendar.vue +++ b/src/client/app/common/views/widgets/calendar.vue @@ -4,27 +4,27 @@ <div class="mkw-calendar--body"> <div class="calendar" :data-is-holiday="isHoliday"> <p class="month-and-year"> - <span class="year">%i18n:year-english%{{ year }}%i18n:year-japanese%</span> - <span class="month">%i18n:month-english%{{ month }}%i18n:month-japanese%</span> + <span class="year">%i18n:@year-english%{{ year }}%i18n:@year-japanese%</span> + <span class="month">%i18n:@month-english%{{ month }}%i18n:@month-japanese%</span> </p> - <p class="day">>%i18n:day-english%{{ day }}%i18n:day-japanese%</p> - <p class="week-day">%i18n:weekday-english%{{ weekDay }}%i18n:weekday-japanese%</p> + <p class="day">%i18n:@day-english%{{ day }}%i18n:@day-japanese%</p> + <p class="week-day">{{ weekDay }}</p> </div> <div class="info"> <div> - <p>%i18n:today%<b>{{ dayP.toFixed(1) }}%</b></p> + <p>%i18n:@today%<b>{{ dayP.toFixed(1) }}%</b></p> <div class="meter"> <div class="val" :style="{ width: `${dayP}%` }"></div> </div> </div> <div> - <p>%i18n:this-month%<b>{{ monthP.toFixed(1) }}%</b></p> + <p>%i18n:@this-month%<b>{{ monthP.toFixed(1) }}%</b></p> <div class="meter"> <div class="val" :style="{ width: `${monthP}%` }"></div> </div> </div> <div> - <p>%i18n:this-year%<b>{{ yearP.toFixed(1) }}%</b></p> + <p>%i18n:@this-year%<b>{{ yearP.toFixed(1) }}%</b></p> <div class="meter"> <div class="val" :style="{ width: `${yearP}%` }"></div> </div> @@ -84,7 +84,15 @@ export default define({ this.year = ny; this.month = nm + 1; this.day = nd; - this.weekDay = ['日', '月', '火', '水', '木', '金', '土'][now.getDay()]; + this.weekDay = [ + '%i18n:common.weekday.sunday%', + '%i18n:common.weekday.monday%', + '%i18n:common.weekday.tuesday%', + '%i18n:common.weekday.wednesday%', + '%i18n:common.weekday.thursday%', + '%i18n:common.weekday.friday%', + '%i18n:common.weekday.saturday%' + ][now.getDay()]; const dayNumer = now.getTime() - new Date(ny, nm, nd).getTime(); const dayDenom = 1000/*ms*/ * 60/*s*/ * 60/*m*/ * 24/*h*/; |