diff --git a/public/locales/en/component.json b/public/locales/en/component.json index eb8b0099d88..872011f4035 100644 --- a/public/locales/en/component.json +++ b/public/locales/en/component.json @@ -3,7 +3,10 @@ "title": "Components", "searchPlaceholder": "Search by component name", "color-input_validation-format-error": "Incorrect format", - "maintainers": "Maintainers:", + "maintainers": { + "key_one": "Maintainer:", + "key_other": "Maintainers:" + }, "theme": "Switch theme", "rtlOn": "Switch RTL on", "rtlOff": "Switch RTL off", diff --git a/public/locales/ru/component.json b/public/locales/ru/component.json index dc452bcf66e..591f92e8b50 100644 --- a/public/locales/ru/component.json +++ b/public/locales/ru/component.json @@ -3,7 +3,10 @@ "title": "Компоненты", "searchPlaceholder": "Поиск по названию", "color-input_validation-format-error": "Неверный формат", - "maintainers": "Maintainers:", + "maintainers": { + "key_one": "Maintainer:", + "key_other": "Maintainers:" + }, "theme": "Переключить тему", "rtlOn": "Включить RTL", "rtlOff": "Выключить RTL", diff --git a/src/components/HeaderMaintainerList/HeaderMaintainerList.tsx b/src/components/HeaderMaintainerList/HeaderMaintainerList.tsx index a7e58e1a78a..97274279b27 100644 --- a/src/components/HeaderMaintainerList/HeaderMaintainerList.tsx +++ b/src/components/HeaderMaintainerList/HeaderMaintainerList.tsx @@ -18,7 +18,9 @@ export const HeaderMaintainerList: React.FC = ({maint return (
- {t('component:maintainers')} + + {t('component:maintainers', {count: limitedMaintainers.length})} + {limitedMaintainers.map(({login, avatarUrl, url}) => (