mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 13:05:48 +00:00
fix: links prefix and revert change to useTranslate
This commit is contained in:
parent
e29adde4bd
commit
0a1746dfe2
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ const useTranslate = () => {
|
|||
const string = useCallback((key) => t(key), [t]);
|
||||
|
||||
const stringWithPrefix = useCallback((value, prefix, fallback = null) => {
|
||||
const key = `${prefix}_${value}`;
|
||||
const key = `${prefix}${value}`;
|
||||
const defaultValue = fallback ?? value.charAt(0).toUpperCase() + value.slice(1);
|
||||
|
||||
return t(key, {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ const MetaLinks = ({ className, label, links }) => {
|
|||
{
|
||||
typeof label === 'string' && label.length > 0 ?
|
||||
<div className={styles['label-container']}>
|
||||
{ stringWithPrefix(label.toUpperCase(), 'LINKS') }
|
||||
{ stringWithPrefix(label.toUpperCase(), 'LINKS_') }
|
||||
</div>
|
||||
:
|
||||
null
|
||||
|
|
|
|||
Loading…
Reference in a new issue