1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

vue ui i18n: localized "view capture on {date}"

This commit is contained in:
Ivan Velev 2022-02-07 18:40:17 -08:00
parent 266dd1c635
commit 6e7f0216e1
4 changed files with 16 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@ -49,6 +49,7 @@ html, body
"hide timeline":"{{ _Q('hide timeline') }}",
"show calendar":"{{ _Q('show calendar') }}",
"hide calendar":"{{ _Q('hide calendar') }}",
"View capture on {date}":"{{ _Q('View capture on {date}') }}",
"Loading...": "{{ _Q('Loading...') }}",
"Current Capture": "{{ _Q('Current Capture') }}",
"capture": "{{ _Q('capture') }}",

View File

@ -49,6 +49,7 @@
"hide timeline":"{{ _Q('hide timeline') }}",
"show calendar":"{{ _Q('show calendar') }}",
"hide calendar":"{{ _Q('hide calendar') }}",
"View capture on {date}":"{{ _Q('View capture on {date}') }}",
"Loading...": "{{ _Q('Loading...') }}",
"Current Capture": "{{ _Q('Current Capture') }}",
"capture": "{{ _Q('capture') }}",

View File

@ -2,11 +2,11 @@
<div class="timeline">
<div class="period-tooltip" v-show="tooltipPeriod" :style="{left: tooltipPeriodPos.x+'px', top: tooltipPeriodPos.y+'px'}">
<template v-if="tooltipPeriod">
<div v-if="tooltipPeriod.snapshot">View capture on
{{ tooltipPeriod.snapshot.getTimeDateFormatted() }}
<div v-if="tooltipPeriod.snapshot">
{{ $root._('View capture on {date}', {date: tooltipPeriod.snapshot.getTimeDateFormatted()}) }}
</div>
<div v-else-if="tooltipPeriod.snapshotPeriod">View capture on
{{ tooltipPeriod.snapshotPeriod.snapshot.getTimeDateFormatted() }}
<div v-else-if="tooltipPeriod.snapshotPeriod">
{{ $root._('View capture on {date}', {date: tooltipPeriod.snapshotPeriod.snapshot.getTimeDateFormatted()}) }}
</div>
<div v-else-if="tooltipPeriod.snapshotCount">
{{ tooltipPeriod.snapshotCount }} captures