fix: links prefix and revert change to useTranslate

This commit is contained in:
Botzy 2026-02-03 11:13:31 +02:00
parent e29adde4bd
commit 0a1746dfe2
2 changed files with 2 additions and 2 deletions

View file

@ -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, {

View file

@ -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