mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +00:00
fix(Discover): use correct translation func
This commit is contained in:
parent
4f9cd61286
commit
d27f92fb01
1 changed files with 2 additions and 2 deletions
|
|
@ -46,10 +46,10 @@ const mapSelectableInputs = (discover, t) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const extraSelects = discover.selectable.extra.map(({ name, isRequired, options }) => ({
|
const extraSelects = discover.selectable.extra.map(({ name, isRequired, options }) => ({
|
||||||
title: t(name),
|
title: t.string(name),
|
||||||
isRequired: isRequired,
|
isRequired: isRequired,
|
||||||
options: options.map(({ value, deepLinks }) => ({
|
options: options.map(({ value, deepLinks }) => ({
|
||||||
label: typeof value === 'string' ? t(value) : t.string('NONE'),
|
label: typeof value === 'string' ? t.string(value) : t.string('NONE'),
|
||||||
value: JSON.stringify({
|
value: JSON.stringify({
|
||||||
href: deepLinks.discover,
|
href: deepLinks.discover,
|
||||||
value
|
value
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue