mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 06:32:11 +00:00
refactor(Discover): add translation on extra selectable
This commit is contained in:
parent
32a7117493
commit
b41cc418c5
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ const mapSelectableInputs = (discover, t) => {
|
|||
}
|
||||
};
|
||||
const extraSelects = discover.selectable.extra.map(({ name, isRequired, options }) => ({
|
||||
title: `Select ${name}`,
|
||||
title: translateOption(name, 'SELECT_'),
|
||||
isRequired: isRequired,
|
||||
options: options.map(({ value, deepLinks }) => ({
|
||||
label: typeof value === 'string' ? translateOption(value) : t('NONE'),
|
||||
|
|
@ -63,7 +63,7 @@ const mapSelectableInputs = (discover, t) => {
|
|||
value
|
||||
})),
|
||||
renderLabelText: options.some(({ selected, value }) => selected && value === null) ?
|
||||
() => `Select ${name}`
|
||||
() => translateOption(name, 'SELECT_')
|
||||
:
|
||||
null,
|
||||
onSelect: (event) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue