refactor: rename renderI18nObject to getValueFromI18nObject for clarity

This commit is contained in:
twwu 2025-01-02 18:07:44 +08:00
parent c458c28c62
commit 5fb356fd33
1 changed files with 3 additions and 3 deletions

View File

@ -65,9 +65,9 @@ const PluginItem: FC<Props> = ({
if (PluginType.tool.includes(category))
invalidateAllToolProviders()
}
const renderI18nObject = useRenderI18nObject()
const title = renderI18nObject(label)
const descriptionText = renderI18nObject(description)
const getValueFromI18nObject = useRenderI18nObject()
const title = getValueFromI18nObject(label)
const descriptionText = getValueFromI18nObject(description)
return (
<div