Skip to content

Commit 89245aa

Browse files
authored
Merge branch 'latest' into WS-1816-ensure-correct-L2-tracking-for-Magyarul-Romania
2 parents 1344a83 + 9fc3696 commit 89245aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+63
-4
lines changed

src/app/components/Byline/index.styles.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export default {
3838
comma: ({ palette, isDarkUi }: Theme) =>
3939
css({ color: isDarkUi ? palette.GREY_2 : palette.GREY_6 }),
4040

41+
and: ({ palette, isDarkUi }: Theme) =>
42+
css({ color: isDarkUi ? palette.GREY_2 : palette.GREY_6 }),
43+
4144
authorChevron: ({ palette, isDarkUi, spacings, mq }: Theme) =>
4245
css({
4346
verticalAlign: 'middle',

src/app/components/Byline/index.tsx

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ const Comma = () => {
1717
);
1818
};
1919

20+
const And = ({ andTranslation }) => {
21+
return (
22+
<span aria-hidden="true">
23+
<Text css={BylineCss.and}>{` ${andTranslation} `}</Text>
24+
</span>
25+
);
26+
};
27+
2028
const Contributors = ({ contributorValues, isSingleContributor }) => {
2129
const { translations, dir } = use(ServiceContext);
2230
const isRtl = dir === 'rtl';
@@ -27,6 +35,7 @@ const Contributors = ({ contributorValues, isSingleContributor }) => {
2735
reportingFrom = 'Reporting from',
2836
role = 'Role',
2937
} = {},
38+
and = 'and',
3039
} = translations ?? {};
3140

3241
const hasMultipleContributors = !isSingleContributor;
@@ -54,6 +63,9 @@ const Contributors = ({ contributorValues, isSingleContributor }) => {
5463
role="list"
5564
key={authorName}
5665
>
66+
{index === lastContributorIndex && !isSingleContributor && (
67+
<And andTranslation={and} />
68+
)}
5769
{authorImage && isSingleContributor && (
5870
<li
5971
css={[
@@ -145,7 +157,8 @@ const Contributors = ({ contributorValues, isSingleContributor }) => {
145157
</span>
146158
{(location && <Comma />) ||
147159
(hasMultipleContributors &&
148-
index !== lastContributorIndex && <Comma />)}
160+
index !== lastContributorIndex &&
161+
index !== lastContributorIndex - 1 && <Comma />)}
149162
</li>
150163
) : null}
151164
{location ? (
@@ -163,9 +176,9 @@ const Contributors = ({ contributorValues, isSingleContributor }) => {
163176
{location}
164177
</Text>
165178
</span>
166-
{hasMultipleContributors && index !== lastContributorIndex && (
167-
<Comma />
168-
)}
179+
{hasMultipleContributors &&
180+
index !== lastContributorIndex &&
181+
index !== lastContributorIndex - 1 && <Comma />}
169182
</li>
170183
) : null}
171184
</ul>

src/app/lib/config/services/afaanoromoo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export const service: DefaultServiceConfig = {
6262
},
6363
},
6464
translations: {
65+
and: 'fi',
6566
pagination: {
6667
previousPage: 'Kan duraa',
6768
nextPage: 'Itti aanee',

src/app/lib/config/services/afrique.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const service: DefaultServiceConfig = {
6565
},
6666
},
6767
translations: {
68+
and: 'et',
6869
pagination: {
6970
page: 'Page',
7071
previousPage: 'Page précédente',

src/app/lib/config/services/amharic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export const service: DefaultServiceConfig = {
6060
},
6161
},
6262
translations: {
63+
and: 'እና',
6364
pagination: {
6465
page: 'ገፁ',
6566
previousPage: 'ከዚህ በፊት ያለ',

src/app/lib/config/services/azeri.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const service: DefaultServiceConfig = {
6565
},
6666
},
6767
translations: {
68+
and: 'və',
6869
pagination: {
6970
page: 'səhifə',
7071
previousPage: 'Geriyə',

src/app/lib/config/services/bengali.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export const service: DefaultServiceConfig = {
6767
},
6868
googleSiteVerification: 'D-aEHUiyVaMoUJXjVRbDVkxS0dLTMUZLD3dLPTnWO4Q',
6969
translations: {
70+
and: 'এবং',
7071
pagination: {
7172
page: 'পৃষ্ঠা',
7273
previousPage: 'ফিরে যাব',

src/app/lib/config/services/burmese.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export const service: DefaultServiceConfig = {
6161
},
6262
},
6363
translations: {
64+
and: 'နှင့်',
6465
pagination: {
6566
page: 'စာမျက်နှာ',
6667
previousPage: 'နောက်သို့ပြန်သွားရန်',

src/app/lib/config/services/gahuza.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export const service: DefaultServiceConfig = {
6060
},
6161
},
6262
translations: {
63+
and: 'na',
6364
pagination: {
6465
previousPage: 'Subira inyuma',
6566
nextPage: 'Ibikurikira',

src/app/lib/config/services/gujarati.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const service: DefaultServiceConfig = {
6565
},
6666
},
6767
translations: {
68+
and: 'અને',
6869
pagination: {
6970
previousPage: 'આ પહેલાં',
7071
nextPage: 'આ પછી',

0 commit comments

Comments
 (0)