mirror of https://github.com/Lissy93/dashy.git
🌐 Adds en translations for Home and Search components
This commit is contained in:
parent
0606cb07ae
commit
e02d33b0df
|
@ -1,4 +1,11 @@
|
|||
{
|
||||
"test": "Hello World!",
|
||||
"test2": "Im a fallback"
|
||||
"home": {
|
||||
"no-results": "No Search Results",
|
||||
"no-data": "No Data Configured"
|
||||
},
|
||||
"search": {
|
||||
"search-label": "Search",
|
||||
"search-placeholder": "Start typing to filter",
|
||||
"clear-search-tooltip": "Clear Search"
|
||||
}
|
||||
}
|
|
@ -1,16 +1,16 @@
|
|||
<template>
|
||||
<form>
|
||||
<label for="filter-tiles">Search</label>
|
||||
<label for="filter-tiles">{{ $t('search.search-label') }}</label>
|
||||
<input
|
||||
id="filter-tiles"
|
||||
v-model="input"
|
||||
ref="filter"
|
||||
placeholder="Start typing to filter..."
|
||||
:placeholder="$t('search.search-placeholder')"
|
||||
v-on:input="userIsTypingSomething"
|
||||
@keydown.esc="clearFilterInput" />
|
||||
<i v-if="input.length > 0"
|
||||
class="clear-search"
|
||||
title="Clear search"
|
||||
:title="$t('search.clear-search-tooltip')"
|
||||
@click="clearFilterInput">x</i>
|
||||
</form>
|
||||
</template>
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
</div>
|
||||
<!-- Show message when there's no data to show -->
|
||||
<div v-if="checkIfResults()" class="no-data">
|
||||
{{searchValue ? 'No Search Results' : 'No Data Configured'}}
|
||||
{{searchValue ? $t('home.no-results') : $t('home.no-data')}}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue