diff --git a/flatisfy/web/js_src/components/flatstableline.vue b/flatisfy/web/js_src/components/flatstableline.vue index fd48224..ca85eda 100644 --- a/flatisfy/web/js_src/components/flatstableline.vue +++ b/flatisfy/web/js_src/components/flatstableline.vue @@ -11,7 +11,9 @@ - [{{ flat.id.split("@")[1] }}] {{ flat.is_expired ? "[EXPIRED]" : null }} {{ flat.title }} + [{{ flat.id.split("@")[1] }}] + {{ flat.is_expired ? "[" + $t("common.expired") + "]" : null }} + {{ flat.title }} diff --git a/flatisfy/web/js_src/i18n/en/index.js b/flatisfy/web/js_src/i18n/en/index.js index 16f6ae2..73f11d0 100644 --- a/flatisfy/web/js_src/i18n/en/index.js +++ b/flatisfy/web/js_src/i18n/en/index.js @@ -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.', diff --git a/flatisfy/web/js_src/views/details.vue b/flatisfy/web/js_src/views/details.vue index 82dc447..145793d 100644 --- a/flatisfy/web/js_src/views/details.vue +++ b/flatisfy/web/js_src/views/details.vue @@ -11,7 +11,7 @@ -->{{ flat.status ? capitalize($t("status." + flat.status)) : '' }}) {{ flat.title }} [{{ flat.id.split("@")[1] }}] - {{ flat.is_expired ? '[EXPIRED]' : '' }} + {{ flat.is_expired ? '[' + $t('common.expired') + ']' : '' }} diff --git a/flatisfy/web/js_src/views/home.vue b/flatisfy/web/js_src/views/home.vue index bfa2d5d..71eef5c 100644 --- a/flatisfy/web/js_src/views/home.vue +++ b/flatisfy/web/js_src/views/home.vue @@ -6,7 +6,7 @@ {{ $t("home.new_available_flats") }} - Show expired flats + {{ $t("home.show_expired_flats") }}