Improve a few strings, highlight back button on focus, proper key value

This commit is contained in:
Scott Nonnenberg 2021-09-17 13:57:54 -07:00 committed by GitHub
parent 65ddf0a9e8
commit e2454ef7c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 191 additions and 98 deletions

View file

@ -27,12 +27,12 @@ export const SharedGroupNames: FunctionComponent<PropsType> = ({
</strong>
));
if (sharedGroupNames.length > 3) {
if (sharedGroupNames.length >= 5) {
const remainingCount = sharedGroupNames.length - 3;
return (
<Intl
i18n={i18n}
id="member-of-more-than-3-groups"
id="member-of-more-than-3-groups--multiple-more"
components={{
group1: firstThreeGroups[0],
group2: firstThreeGroups[1],
@ -42,6 +42,19 @@ export const SharedGroupNames: FunctionComponent<PropsType> = ({
/>
);
}
if (sharedGroupNames.length === 4) {
return (
<Intl
i18n={i18n}
id="member-of-more-than-3-groups--one-more"
components={{
group1: firstThreeGroups[0],
group2: firstThreeGroups[1],
group3: firstThreeGroups[2],
}}
/>
);
}
if (firstThreeGroups.length === 3) {
return (
<Intl