summaryrefslogtreecommitdiffstats
path: root/ui/src/components/sort-select.tsx
diff options
context:
space:
mode:
authorRichard <richard@tripaneer.com>2020-01-31 21:52:27 +0100
committerRichard <richard@tripaneer.com>2020-01-31 21:52:27 +0100
commit2f9a052f89fe8d34fedcd2219e644dd51cda5505 (patch)
tree78caf41816cce8fcc17a85d874a446a86da5e80b /ui/src/components/sort-select.tsx
parent8cbdba1da39c15d2a3d13919398fc4d4c8ef2c6c (diff)
usability features
This are all the commits from another PR combined into a single commit.
Diffstat (limited to 'ui/src/components/sort-select.tsx')
-rw-r--r--ui/src/components/sort-select.tsx18
1 files changed, 9 insertions, 9 deletions
diff --git a/ui/src/components/sort-select.tsx b/ui/src/components/sort-select.tsx
index a3ef0f8d..fbdaa594 100644
--- a/ui/src/components/sort-select.tsx
+++ b/ui/src/components/sort-select.tsx
@@ -1,6 +1,6 @@
import { Component, linkEvent } from 'inferno';
import { SortType } from '../interfaces';
-
+import { i18n } from '../i18next';
import { T } from 'inferno-i18next';
interface SortSelectProps {
@@ -31,31 +31,31 @@ export class SortSelect extends Component<SortSelectProps, SortSelectState> {
class="custom-select custom-select-sm w-auto"
>
<option disabled>
- <T i18nKey="sort_type">#</T>
+ { i18n.t('sort_type') }
</option>
{!this.props.hideHot && (
<option value={SortType.Hot}>
- <T i18nKey="hot">#</T>
+ { i18n.t('hot') }
</option>
)}
<option value={SortType.New}>
- <T i18nKey="new">#</T>
+ { i18n.t('new') }
</option>
<option disabled>─────</option>
<option value={SortType.TopDay}>
- <T i18nKey="top_day">#</T>
+ { i18n.t('top_day') }
</option>
<option value={SortType.TopWeek}>
- <T i18nKey="week">#</T>
+ { i18n.t('week') }
</option>
<option value={SortType.TopMonth}>
- <T i18nKey="month">#</T>
+ { i18n.t('month') }
</option>
<option value={SortType.TopYear}>
- <T i18nKey="year">#</T>
+ { i18n.t('year') }
</option>
<option value={SortType.TopAll}>
- <T i18nKey="all">#</T>
+ { i18n.t('all') }
</option>
</select>
);