mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-15 17:54:49 +02:00
🌐 Adds translations for widget text
This commit is contained in:
parent
3ffdf753cc
commit
27404f6044
@ -250,11 +250,23 @@
|
|||||||
"general": {
|
"general": {
|
||||||
"loading": "Loading...",
|
"loading": "Loading...",
|
||||||
"show-more": "Expand Details",
|
"show-more": "Expand Details",
|
||||||
"show-less": "Show Less"
|
"show-less": "Show Less",
|
||||||
|
"open-link": "Continue Reading"
|
||||||
|
},
|
||||||
|
"pi-hole": {
|
||||||
|
"status-heading": "Status"
|
||||||
|
},
|
||||||
|
"stat-ping": {
|
||||||
|
"up": "Online",
|
||||||
|
"down": "Offline"
|
||||||
|
},
|
||||||
|
"system-info": {
|
||||||
|
"uptime": "Uptime"
|
||||||
|
},
|
||||||
|
"flight-data": {
|
||||||
|
"arrivals": "Arrivals",
|
||||||
|
"departures": "Departures"
|
||||||
},
|
},
|
||||||
"clock": {},
|
|
||||||
"weather": {},
|
|
||||||
"weather-forecast": {},
|
|
||||||
"tfl-status": {
|
"tfl-status": {
|
||||||
"good-service-all": "Good Service on all Lines",
|
"good-service-all": "Good Service on all Lines",
|
||||||
"good-service-rest": "Good Service on all other Lines"
|
"good-service-rest": "Good Service on all other Lines"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<p class="copyright">{{ copyright }}</p>
|
<p class="copyright">{{ copyright }}</p>
|
||||||
<p class="description">{{ truncatedDescription }}</p>
|
<p class="description">{{ truncatedDescription }}</p>
|
||||||
<p @click="toggleShowFull" class="expend-details-btn">
|
<p @click="toggleShowFull" class="expend-details-btn">
|
||||||
{{ showFullDesc ? 'Show Less' : ' Expand Details' }}
|
{{ showFullDesc ? $t('widgets.general.show-less') : $t('widgets.general.show-more') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<p class="description">
|
<p class="description">
|
||||||
{{ cve.description | formatDescription }}
|
{{ cve.description | formatDescription }}
|
||||||
<a v-if="cve.description.length > 350" class="read-more" :href="cve.url" target="_blank">
|
<a v-if="cve.description.length > 350" class="read-more" :href="cve.url" target="_blank">
|
||||||
Keep Reading
|
{{ $t('widgets.general.open-link') }}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<!-- Departures -->
|
<!-- Departures -->
|
||||||
<div v-if="departures.length > 0" class="flight-group">
|
<div v-if="departures.length > 0" class="flight-group">
|
||||||
<h3 class="flight-type-subtitle" v-if="direction === 'both'">
|
<h3 class="flight-type-subtitle" v-if="direction === 'both'">
|
||||||
Departures
|
{{ $t('widgets.flight-data.departures') }}
|
||||||
</h3>
|
</h3>
|
||||||
<div v-for="flight in departures" :key="flight.number" class="flight" v-tooltip="tip(flight)">
|
<div v-for="flight in departures" :key="flight.number" class="flight" v-tooltip="tip(flight)">
|
||||||
<p class="info flight-time">{{ flight.time | formatDate }}</p>
|
<p class="info flight-time">{{ flight.time | formatDate }}</p>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
<!-- Arrivals -->
|
<!-- Arrivals -->
|
||||||
<div v-if="arrivals.length > 0" class="flight-group">
|
<div v-if="arrivals.length > 0" class="flight-group">
|
||||||
<h3 class="flight-type-subtitle" v-if="direction === 'both'">
|
<h3 class="flight-type-subtitle" v-if="direction === 'both'">
|
||||||
Arrivals
|
{{ $t('widgets.flight-data.arrivals') }}
|
||||||
</h3>
|
</h3>
|
||||||
<div v-for="flight in arrivals" :key="flight.number" class="flight" v-tooltip="tip(flight)">
|
<div v-for="flight in arrivals" :key="flight.number" class="flight" v-tooltip="tip(flight)">
|
||||||
<p class="info flight-time">{{ flight.time | formatDate }}</p>
|
<p class="info flight-time">{{ flight.time | formatDate }}</p>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="pi-hole-stats-wrapper">
|
<div class="pi-hole-stats-wrapper">
|
||||||
<!-- Current Status -->
|
<!-- Current Status -->
|
||||||
<div v-if="status" class="status">
|
<div v-if="status" class="status">
|
||||||
<span class="status-lbl">Status:</span>
|
<span class="status-lbl">{{ $t('widgets.pi-hole.status-heading') }}:</span>
|
||||||
<span :class="`status-val ${getStatusColor(status)}`">{{ status | capitalize }}</span>
|
<span :class="`status-val ${getStatusColor(status)}`">{{ status | capitalize }}</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- Block Pie Chart -->
|
<!-- Block Pie Chart -->
|
||||||
|
@ -21,7 +21,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<div class="post-body" v-html="post.description"></div>
|
<div class="post-body" v-html="post.description"></div>
|
||||||
<a class="continue-reading-btn" :href="post.link">Continue Reading</a>
|
<a class="continue-reading-btn" :href="post.link">
|
||||||
|
{{ $t('widgets.general.open-link') }}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- End Feed Content -->
|
<!-- End Feed Content -->
|
||||||
|
@ -9,8 +9,12 @@
|
|||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
<p class="service-name">
|
<p class="service-name">
|
||||||
{{ service.name }}:
|
{{ service.name }}:
|
||||||
<span v-if="service.online" class="status-online">Online</span>
|
<span v-if="service.online" class="status-online">
|
||||||
<span v-else class="status-offline">Offline</span>
|
{{ $t('widgets.stat-ping.up') }}
|
||||||
|
</span>
|
||||||
|
<span v-else class="status-offline">
|
||||||
|
{{ $t('widgets.stat-ping.down') }}
|
||||||
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<!-- Charts -->
|
<!-- Charts -->
|
||||||
<div class="charts">
|
<div class="charts">
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
{{ info.username | isUsername }}{{ info.hostname }}
|
{{ info.username | isUsername }}{{ info.hostname }}
|
||||||
</p>
|
</p>
|
||||||
<p class="system">
|
<p class="system">
|
||||||
{{ info.system }} <span class="gap">|</span> Uptime: {{ info.uptime | makeUptime }}
|
{{ info.system }} <span class="gap">|</span>
|
||||||
|
{{ $t('widgets.system-info.uptime') }}: {{ info.uptime | makeUptime }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="some-charts">
|
<div class="some-charts">
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- Show/ hide toggle button -->
|
<!-- Show/ hide toggle button -->
|
||||||
<p class="more-details-btn" @click="toggleDetails" v-if="weatherDetails.length > 0">
|
<p class="more-details-btn" @click="toggleDetails" v-if="weatherDetails.length > 0">
|
||||||
{{ showDetails ? 'Show Less' : ' Expand Details' }}
|
{{ showDetails ? $t('widgets.general.show-less') : $t('widgets.general.show-more') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="more-details-btn" @click="toggleDetails" v-if="showDetails">
|
<p class="more-details-btn" @click="toggleDetails" v-if="showDetails">
|
||||||
Show Less
|
{{ $t('widgets.general.show-less') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user