mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 13:05:48 +00:00
fix: use translate prefix correction
This commit is contained in:
parent
0df0cdb44b
commit
e29adde4bd
1 changed files with 1 additions and 1 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, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue