Localization !

This commit is contained in:
Julien Wajsberg 2018-10-13 16:01:24 +02:00 committed by Phyks (Lucas Verney)
parent e631d09df3
commit 1548f0176d
4 changed files with 9 additions and 5 deletions

View File

@ -11,7 +11,9 @@
<i class="fa fa-star" aria-hidden="true" :title="capitalizedStatus"></i>
</template>
[{{ flat.id.split("@")[1] }}] {{ flat.is_expired ? "[EXPIRED]" : null }} {{ flat.title }}
[{{ flat.id.split("@")[1] }}]
{{ flat.is_expired ? "[" + $t("common.expired") + "]" : null }}
{{ flat.title }}
<template v-if="photo">
<br/>

View File

@ -14,10 +14,12 @@ export default {
'sortUp': 'Sort in ascending order',
'sortDown': 'Sort in descending order',
'mins': 'min | mins',
'Unknown': 'Unknown'
'Unknown': 'Unknown',
'expired': 'expired'
},
home: {
'new_available_flats': 'New available flats'
'new_available_flats': 'New available flats',
'show_expired_flats': 'Show expired flats'
},
flatListing: {
'no_available_flats': 'No available flats.',

View File

@ -11,7 +11,7 @@
-->{{ flat.status ? capitalize($t("status." + flat.status)) : '' }}<!--
--></router-link><!--
-->) {{ flat.title }} [{{ flat.id.split("@")[1] }}]
{{ flat.is_expired ? '[EXPIRED]' : '' }}
{{ flat.is_expired ? '[' + $t('common.expired') + ']' : '' }}
</h2>
<div class="grid">
<div class="left-panel">

View File

@ -6,7 +6,7 @@
{{ $t("home.new_available_flats") }}
<label class="show-expired-flats-label">
<input type="checkbox" class="show-expired-flats-checkbox" v-model="showExpiredFlats" />
Show expired flats
{{ $t("home.show_expired_flats") }}
</label>
</h2>