From b0fdf25b24901c429a59b5e4033ffee4b5b8a794 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 2 Aug 2018 06:58:15 +0900 Subject: Improve i18n --- src/client/app/common/views/widgets/calendar.vue | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'src') 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 @@

- %i18n:year-english%{{ year }}%i18n:year-japanese% - %i18n:month-english%{{ month }}%i18n:month-japanese% + %i18n:@year-english%{{ year }}%i18n:@year-japanese% + %i18n:@month-english%{{ month }}%i18n:@month-japanese%

-

>%i18n:day-english%{{ day }}%i18n:day-japanese%

-

%i18n:weekday-english%{{ weekDay }}%i18n:weekday-japanese%

+

%i18n:@day-english%{{ day }}%i18n:@day-japanese%

+

{{ weekDay }}

-

%i18n:today%{{ dayP.toFixed(1) }}%

+

%i18n:@today%{{ dayP.toFixed(1) }}%

-

%i18n:this-month%{{ monthP.toFixed(1) }}%

+

%i18n:@this-month%{{ monthP.toFixed(1) }}%

-

%i18n:this-year%{{ yearP.toFixed(1) }}%

+

%i18n:@this-year%{{ yearP.toFixed(1) }}%

@@ -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*/; -- cgit v1.2.3-freya