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_other": "Categories",
|
||||
"set_categories": "Set categories"
|
||||
}
|
||||
},
|
||||
"value": "{{count}} $t(category.title.category, lowercase)"
|
||||
},
|
||||
"chapter": {
|
||||
"action": {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user