adding translations
This commit is contained in:
parent
ee674b721e
commit
59d1cde10c
1 changed files with 11 additions and 11 deletions
22
ui/src/components/search.tsx
vendored
22
ui/src/components/search.tsx
vendored
|
@ -126,7 +126,7 @@ export class Search extends Component<any, SearchState> {
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<h5>
|
<h5>
|
||||||
<T i18nKey="search">#</T>
|
{ i18n.t('search') }
|
||||||
</h5>
|
</h5>
|
||||||
{this.selects()}
|
{this.selects()}
|
||||||
{this.searchForm()}
|
{this.searchForm()}
|
||||||
|
@ -165,7 +165,7 @@ export class Search extends Component<any, SearchState> {
|
||||||
</svg>
|
</svg>
|
||||||
) : (
|
) : (
|
||||||
<span>
|
<span>
|
||||||
<T i18nKey="search">#</T>
|
{ i18n.t('search') }
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
|
@ -182,22 +182,22 @@ export class Search extends Component<any, SearchState> {
|
||||||
class="custom-select custom-select-sm w-auto"
|
class="custom-select custom-select-sm w-auto"
|
||||||
>
|
>
|
||||||
<option disabled>
|
<option disabled>
|
||||||
<T i18nKey="type">#</T>
|
{ i18n.t('type') }
|
||||||
</option>
|
</option>
|
||||||
<option value={SearchType.All}>
|
<option value={SearchType.All}>
|
||||||
<T i18nKey="all">#</T>
|
{ i18n.t('all') }
|
||||||
</option>
|
</option>
|
||||||
<option value={SearchType.Comments}>
|
<option value={SearchType.Comments}>
|
||||||
<T i18nKey="comments">#</T>
|
{ i18n.t('comments') }
|
||||||
</option>
|
</option>
|
||||||
<option value={SearchType.Posts}>
|
<option value={SearchType.Posts}>
|
||||||
<T i18nKey="posts">#</T>
|
{ i18n.t('posts') }
|
||||||
</option>
|
</option>
|
||||||
<option value={SearchType.Communities}>
|
<option value={SearchType.Communities}>
|
||||||
<T i18nKey="communities">#</T>
|
{ i18n.t('communities') }
|
||||||
</option>
|
</option>
|
||||||
<option value={SearchType.Users}>
|
<option value={SearchType.Users}>
|
||||||
<T i18nKey="users">#</T>
|
{ i18n.t('users') }
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
<span class="ml-2">
|
<span class="ml-2">
|
||||||
|
@ -368,14 +368,14 @@ export class Search extends Component<any, SearchState> {
|
||||||
class="btn btn-sm btn-secondary mr-1"
|
class="btn btn-sm btn-secondary mr-1"
|
||||||
onClick={linkEvent(this, this.prevPage)}
|
onClick={linkEvent(this, this.prevPage)}
|
||||||
>
|
>
|
||||||
<T i18nKey="prev">#</T>
|
{ i18n.t('prev') }
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<button
|
<button
|
||||||
class="btn btn-sm btn-secondary"
|
class="btn btn-sm btn-secondary"
|
||||||
onClick={linkEvent(this, this.nextPage)}
|
onClick={linkEvent(this, this.nextPage)}
|
||||||
>
|
>
|
||||||
<T i18nKey="next">#</T>
|
{ i18n.t('next') }
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -392,7 +392,7 @@ export class Search extends Component<any, SearchState> {
|
||||||
res.communities.length == 0 &&
|
res.communities.length == 0 &&
|
||||||
res.users.length == 0 && (
|
res.users.length == 0 && (
|
||||||
<span>
|
<span>
|
||||||
<T i18nKey="no_results">#</T>
|
{ i18n.t('no_results') }
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue