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:
@@ -35,7 +35,8 @@
|
|||||||
"category_one": "Category",
|
"category_one": "Category",
|
||||||
"category_other": "Categories",
|
"category_other": "Categories",
|
||||||
"set_categories": "Set categories"
|
"set_categories": "Set categories"
|
||||||
}
|
},
|
||||||
|
"value": "{{count}} $t(category.title.category, lowercase)"
|
||||||
},
|
},
|
||||||
"chapter": {
|
"chapter": {
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -137,10 +137,7 @@ export function LibrarySettings() {
|
|||||||
<ListItemLink to={AppRoutes.settings.childRoutes.categories.path}>
|
<ListItemLink to={AppRoutes.settings.childRoutes.categories.path}>
|
||||||
<ListItemText
|
<ListItemText
|
||||||
primary={t('category.dialog.title.edit_category_other')}
|
primary={t('category.dialog.title.edit_category_other')}
|
||||||
secondary={t('global.value', {
|
secondary={t('category.value', { count: categoryCount })}
|
||||||
value: categoryCount,
|
|
||||||
unit: ` ${t('category.title.category', { count: categoryCount })}`.toLocaleLowerCase(),
|
|
||||||
})}
|
|
||||||
/>
|
/>
|
||||||
</ListItemLink>
|
</ListItemLink>
|
||||||
<ListItem>
|
<ListItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user