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="col-12">
|
||||
<h5>
|
||||
<T i18nKey="search">#</T>
|
||||
{ i18n.t('search') }
|
||||
</h5>
|
||||
{this.selects()}
|
||||
{this.searchForm()}
|
||||
|
@ -165,7 +165,7 @@ export class Search extends Component<any, SearchState> {
|
|||
</svg>
|
||||
) : (
|
||||
<span>
|
||||
<T i18nKey="search">#</T>
|
||||
{ i18n.t('search') }
|
||||
</span>
|
||||
)}
|
||||
</button>
|
||||
|
@ -182,22 +182,22 @@ export class Search extends Component<any, SearchState> {
|
|||
class="custom-select custom-select-sm w-auto"
|
||||
>
|
||||
<option disabled>
|
||||
<T i18nKey="type">#</T>
|
||||
{ i18n.t('type') }
|
||||
</option>
|
||||
<option value={SearchType.All}>
|
||||
<T i18nKey="all">#</T>
|
||||
{ i18n.t('all') }
|
||||
</option>
|
||||
<option value={SearchType.Comments}>
|
||||
<T i18nKey="comments">#</T>
|
||||
{ i18n.t('comments') }
|
||||
</option>
|
||||
<option value={SearchType.Posts}>
|
||||
<T i18nKey="posts">#</T>
|
||||
{ i18n.t('posts') }
|
||||
</option>
|
||||
<option value={SearchType.Communities}>
|
||||
<T i18nKey="communities">#</T>
|
||||
{ i18n.t('communities') }
|
||||
</option>
|
||||
<option value={SearchType.Users}>
|
||||
<T i18nKey="users">#</T>
|
||||
{ i18n.t('users') }
|
||||
</option>
|
||||
</select>
|
||||
<span class="ml-2">
|
||||
|
@ -368,14 +368,14 @@ export class Search extends Component<any, SearchState> {
|
|||
class="btn btn-sm btn-secondary mr-1"
|
||||
onClick={linkEvent(this, this.prevPage)}
|
||||
>
|
||||
<T i18nKey="prev">#</T>
|
||||
{ i18n.t('prev') }
|
||||
</button>
|
||||
)}
|
||||
<button
|
||||
class="btn btn-sm btn-secondary"
|
||||
onClick={linkEvent(this, this.nextPage)}
|
||||
>
|
||||
<T i18nKey="next">#</T>
|
||||
{ i18n.t('next') }
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
|
@ -392,7 +392,7 @@ export class Search extends Component<any, SearchState> {
|
|||
res.communities.length == 0 &&
|
||||
res.users.length == 0 && (
|
||||
<span>
|
||||
<T i18nKey="no_results">#</T>
|
||||
{ i18n.t('no_results') }
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue