fix cache settings not being sentence cased (#657)

This commit is contained in:
Benjamin 2024-07-03 03:29:53 -05:00 committed by GitHub
parent b38930a277
commit 4191edb88c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,7 +49,7 @@ export const CacheSettings = () => {
{t(`common.areYouSure`, { postProcess: 'sentenceCase' })}
</ConfirmModal>
),
title: t(`setting.${key}`),
title: t(`setting.${key}`, { postProcess: 'sentenceCase' }),
});
};
@ -67,8 +67,9 @@ export const CacheSettings = () => {
),
description: t('setting.clearQueryCache', {
context: 'description',
postProcess: 'sentenceCase',
}),
title: t('setting.clearQueryCache'),
title: t('setting.clearQueryCache', { postProcess: 'sentenceCase' }),
},
{
control: (
@ -83,9 +84,10 @@ export const CacheSettings = () => {
),
description: t('setting.clearCache', {
context: 'description',
postProcess: 'sentenceCase',
}),
isHidden: !browser,
title: t('setting.clearCache'),
title: t('setting.clearCache', { postProcess: 'sentenceCase' }),
},
];