Make category setting subheading translatable (#911)

The `.toLocalLowerCase` is english-specific, this should be handled via
a dedicated translation like everywhere else, `global.value` is being
abused here
This commit is contained in:
Constantin Piber
2025-03-27 19:48:57 +01:00
committed by GitHub
parent d3f973e95b
commit 9322ed2b8e
2 changed files with 3 additions and 5 deletions

View File

@@ -35,7 +35,8 @@
"category_one": "Category",
"category_other": "Categories",
"set_categories": "Set categories"
}
},
"value": "{{count}} $t(category.title.category, lowercase)"
},
"chapter": {
"action": {

View File

@@ -137,10 +137,7 @@ export function LibrarySettings() {
<ListItemLink to={AppRoutes.settings.childRoutes.categories.path}>
<ListItemText
primary={t('category.dialog.title.edit_category_other')}
secondary={t('global.value', {
value: categoryCount,
unit: ` ${t('category.title.category', { count: categoryCount })}`.toLocaleLowerCase(),
})}
secondary={t('category.value', { count: categoryCount })}
/>
</ListItemLink>
<ListItem>