diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-08-03 23:01:14 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-03 23:01:14 +0900 |
| commit | e66ec6823d42fe8cc9267be6ea13422e929d989f (patch) | |
| tree | 8124d05bada0ecb4466796a8ae373b634104b224 /src/client/app/common/scripts/date-stringify.ts | |
| parent | New translations ja.yml (English) (diff) | |
| parent | :pizza: (diff) | |
| download | misskey-e66ec6823d42fe8cc9267be6ea13422e929d989f.tar.gz misskey-e66ec6823d42fe8cc9267be6ea13422e929d989f.tar.bz2 misskey-e66ec6823d42fe8cc9267be6ea13422e929d989f.zip | |
Merge branch 'master' into l10n_master
Diffstat (limited to 'src/client/app/common/scripts/date-stringify.ts')
| -rw-r--r-- | src/client/app/common/scripts/date-stringify.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/app/common/scripts/date-stringify.ts b/src/client/app/common/scripts/date-stringify.ts index e51de8833d..2b8e525567 100644 --- a/src/client/app/common/scripts/date-stringify.ts +++ b/src/client/app/common/scripts/date-stringify.ts @@ -1,12 +1,12 @@ export default date => { if (typeof date == 'string') date = new Date(date); return ( - date.getFullYear() + '年' + - (date.getMonth() + 1) + '月' + - date.getDate() + '日' + + date.getFullYear() + '%i18n:common.date.full-year%' + + (date.getMonth() + 1) + '%i18n:common.date.month%' + + date.getDate() + '%i18n:common.date.day%' + ' ' + - date.getHours() + '時' + - date.getMinutes() + '分' + + date.getHours() + '%i18n:common.date.hours%' + + date.getMinutes() + '%i18n:common.date.minutes%' + ' ' + `(${['日', '月', '火', '水', '木', '金', '土'][date.getDay()]})` ); |