This commit is contained in:
syuilo 2018-11-10 00:28:50 +09:00
parent 8b9454eaee
commit 27bdb26202
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
3 changed files with 4 additions and 3 deletions

View file

@ -1237,7 +1237,7 @@ desktop/views/pages/user/user.header.vue:
following: "フォロー" following: "フォロー"
followers: "フォロワー" followers: "フォロワー"
is-bot: "このアカウントはBotです" is-bot: "このアカウントはBotです"
years-old: "歳" years-old: "{age}歳"
year: "年" year: "年"
month: "月" month: "月"
day: "日" day: "日"
@ -1543,6 +1543,7 @@ mobile/views/pages/user.vue:
unmute: "ミュート解除" unmute: "ミュート解除"
block: "ブロック" block: "ブロック"
unblock: "ブロック解除" unblock: "ブロック解除"
years-old: "{age}歳"
mobile/views/pages/user/home.vue: mobile/views/pages/user/home.vue:
recent-notes: "最近の投稿" recent-notes: "最近の投稿"

View file

@ -18,7 +18,7 @@
</div> </div>
<div class="info"> <div class="info">
<span class="location" v-if="user.host === null && user.profile.location"><fa icon="map-marker"/> {{ user.profile.location }}</span> <span class="location" v-if="user.host === null && user.profile.location"><fa icon="map-marker"/> {{ user.profile.location }}</span>
<span class="birthday" v-if="user.host === null && user.profile.birthday"><fa icon="birthday-cake"/> {{ user.profile.birthday.replace('-', this.$t('year')).replace('-', this.$t('month')) + this.$t('day') }} ({{ age }}%i18n:@years-old%)</span> <span class="birthday" v-if="user.host === null && user.profile.birthday"><fa icon="birthday-cake"/> {{ user.profile.birthday.replace('-', $t('year')).replace('-', $t('month')) + $t('day') }} ({{ $t('years-old', { age }) }})</span>
</div> </div>
<div class="status"> <div class="status">
<span class="notes-count"><b>{{ user.notesCount | number }}</b>{{ $t('posts') }}</span> <span class="notes-count"><b>{{ user.notesCount | number }}</b>{{ $t('posts') }}</span>

View file

@ -27,7 +27,7 @@
<fa icon="map-marker"/>{{ user.profile.location }} <fa icon="map-marker"/>{{ user.profile.location }}
</p> </p>
<p class="birthday" v-if="user.host === null && user.profile.birthday"> <p class="birthday" v-if="user.host === null && user.profile.birthday">
<fa icon="birthday-cake"/>{{ user.profile.birthday.replace('-', '年').replace('-', '月') + '日' }} ({{ age }}) <fa icon="birthday-cake"/>{{ user.profile.birthday.replace('-', '年').replace('-', '月') + '日' }} ({{ $t('years-old', { age }) }})
</p> </p>
</div> </div>
<div class="status"> <div class="status">