Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/app/components/PortraitVideoCarousel/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ describe('PortraitVideoCarousel', () => {
render(<Component {...fixture} eventTrackingData={eventTrackingData} />);
});

const skipLink = screen.getByText(
`Skip ${fixture.title} and continue reading`,
);
const skipLink = screen.getByText(`Skip ${fixture.title} and continue`);
expect(skipLink).toBeInTheDocument();
expect(skipLink).toHaveAttribute('href', '#end-of-portrait-video-carousel');
});
Expand Down Expand Up @@ -162,7 +160,7 @@ describe('PortraitVideoCarousel', () => {
);
});

const skipLink = screen.getByText('Skip Video and continue reading');
const skipLink = screen.getByText('Skip Video and continue');
expect(skipLink).toBeInTheDocument();
});
});
8 changes: 4 additions & 4 deletions src/app/components/PortraitVideoCarousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ const PortraitVideoCarousel = ({
);

const { isLite, isAmp, nonce } = use(RequestContext);
const { translations, recommendations } = use(ServiceContext);
const { translations } = use(ServiceContext);

const { skipLink: skipLinkTranslations } = recommendations || {};
const { skipContent } = translations || {};
const {
text: skipLinkText = 'Skip %title% and continue reading',
text: skipLinkText = 'Skip %title% and continue',
endTextVisuallyHidden = 'End of %title%',
} = skipLinkTranslations || {};
} = skipContent || {};

const fallbackTitle = translations?.media?.video || 'Video';

Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/afaanoromoo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'Fuula kan ammaa',
skipLinkText: 'Qabiyyeetti darbi',
skipContent: {
text: '%title% darbi itti fufi',
endTextVisuallyHidden: 'Dhuma %title%',
},
relatedContent: 'Odeessa kana irratti dabalata',
relatedTopics: 'Mata dureewwan walitti dhiyaatan',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/afrique.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export const service: DefaultServiceConfig = {
continueReading: 'Continuer la lecture',
currentPage: 'Page en cours',
skipLinkText: 'Aller au contenu',
skipContent: {
text: 'Ignorer %title% et continuer',
endTextVisuallyHidden: 'Fin de %title%',
},
relatedContent: 'Lire plus',
relatedTopics: 'Sujets associés',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/amharic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'መነሻ ገፅ',
skipLinkText: 'ወደ ዋናው ይዘት ይለፉ',
skipContent: {
text: '%title% ይዝለሉ ቀጥሉ',
endTextVisuallyHidden: '%title% መጨረሻ',
},
relatedContent: 'በዚህ ዘገባ ላይ ተጨማሪ መረጃ',
relatedTopics: 'ተያያዥ ርዕሶች',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/arabic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export const service: DefaultServiceConfig = {
continueReading: 'واصل القراءة',
currentPage: 'الصفحة الحالية',
skipLinkText: 'إذهب الى المحتوى',
skipContent: {
text: 'تخطَّ %title% وتابع',
endTextVisuallyHidden: 'نهاية %title%',
},
relatedContent: 'المزيد حول هذه القصة',
relatedTopics: 'كلمات مفتاحية',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/archive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export const service: DefaultServiceConfig = {
home: 'Home',
currentPage: 'Current page',
skipLinkText: 'Skip to content',
skipContent: {
text: 'Skip %title% and continue',
endTextVisuallyHidden: 'End of %title%',
},
relatedContent: 'Related content',
moreOnThis: '',
navMenuText: 'Sections',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/azeri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'Hazırda olduğunuz səhifə',
skipLinkText: 'Mətnə keçid',
skipContent: {
text: '%title% keç və davam et',
endTextVisuallyHidden: '%title% sonu',
},
relatedContent: 'Bu barədə daha geniş',
relatedTopics: 'Əlaqəli mövzular',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/bengali.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'বর্তমান পেজ',
skipLinkText: 'সরাসরি কনটেন্টে যান',
skipContent: {
text: '%title% এড়িয়ে যান এবং চালিয়ে যান',
endTextVisuallyHidden: '%title% সমাপ্তি',
},
relatedContent: 'এই খবর নিয়ে আরো তথ্য',
relatedTopics: 'সম্পর্কিত বিষয়',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/burmese.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'လက်ရှိကြည့်နေသော စာမျက်နှာ',
skipLinkText: 'အကြောင်းအရာများဆီ ကျော်သွားရန်',
skipContent: {
text: '%title% ကို ကျော်ပြီး ဆက်လုပ်ပါ',
endTextVisuallyHidden: '%title% အဆုံး',
},
relatedContent: 'ဒီသတင်းနဲ့ ပတ်သက်သမျှ',
relatedTopics: 'ဆက်စပ်အကြောင်းအရာများ',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/dari.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'صفحه فعلی',
skipLinkText: 'مشاهده محتوا',
skipContent: {
text: 'از %title% بگذر و ادامه بده',
endTextVisuallyHidden: 'پایان %title%',
},
relatedContent: 'مطالب مرتبط',
relatedTopics: 'موضوعات مرتبط',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/gahuza.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export const service: DefaultServiceConfig = {
continueReading: 'Komeza usome',
currentPage: 'Uru rupapuro',
skipLinkText: 'Simbira ku birimwo',
skipContent: {
text: 'Simbuka %title% ukomeze',
endTextVisuallyHidden: 'Iherezo rya %title%',
},
relatedContent: 'Ibindi bisa n’ibi',
relatedTopics: 'Ibindi bisa n’ibi',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/gujarati.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ export const service: DefaultServiceConfig = {
continueReading: 'આગળ વાંચો',
currentPage: 'વર્તમાન પેજ',
skipLinkText: 'કન્ટેન્ટ પર જાવ',
skipContent: {
text: '%title% છોડો અને આગળ વધો',
endTextVisuallyHidden: '%title%નો અંત',
},
relatedContent: 'સંબંધિત સમાચાર',
relatedTopics: 'સંબંધિત મુદ્દા',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/hausa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'Shafin da ake ciki',
skipLinkText: 'Tsallaka zuwa abubuwan da ke ciki',
skipContent: {
text: 'Tsallake %title% ka ci gaba',
endTextVisuallyHidden: 'Karshen %title%',
},
relatedContent: 'Karin bayani',
relatedTopics: 'Labarai masu alaka',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/hindi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export const service: DefaultServiceConfig = {
continueReading: 'पढ़ना जारी रखें',
currentPage: 'मौजूदा पन्ना',
skipLinkText: 'सामग्री को स्किप करें',
skipContent: {
text: '%title% छोड़ें और जारी रखें',
endTextVisuallyHidden: '%title% का अंत',
},
relatedContent: 'संबंधित समाचार',
relatedTopics: 'मिलते-जुलते मुद्दे',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/igbo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ export const service: DefaultServiceConfig = {
continueReading: "Gaa n'ihu gụọ",
currentPage: 'Peegi ị nọ ugbua',
skipLinkText: 'Wụga n’ọdịnaya',
skipContent: {
text: 'Gafee %title% ma gaa n’ihu',
endTextVisuallyHidden: 'Njebe %title%',
},
relatedContent: "Ihe ndị ọzọ n'akụkọ a",
relatedTopics: 'Isiokwu ndị emetụtara',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/indonesia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'Halaman saat ini',
skipLinkText: 'Langsung ke konten',
skipContent: {
text: 'Lewati %title% dan lanjutkan',
endTextVisuallyHidden: 'Akhir %title%',
},
relatedContent: 'Berita terkait',
relatedTopics: 'Topik terkait',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/japanese.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: '現在のページ',
skipLinkText: 'コンテンツへ移動',
skipContent: {
text: '%title%をスキップして続行',
endTextVisuallyHidden: '%title%の終了',
},
relatedContent: '関連コンテンツ',
relatedTopics: '関連トピックス',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/korean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: '현재 페이지',
skipLinkText: '내용 보기',
skipContent: {
text: '%title% 건너뛰고 계속하기',
endTextVisuallyHidden: '%title% 끝',
},
relatedContent: '관련 기사 더 보기',
relatedTopics: '관련 토픽',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/kyrgyz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'Ачылып турган баракча',
skipLinkText: 'Сайтка өтүү',
skipContent: {
text: '%title% өткөрүп, улантуу',
endTextVisuallyHidden: '%title% аягы',
},
relatedContent: 'Тема боюнча башка макалалар',
relatedTopics: 'Тектеш темалар',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/magyarul.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'Jelenlegi oldal',
skipLinkText: 'Ugrás a tartalomra',
skipContent: {
text: '%title% kihagyása és folytatás',
endTextVisuallyHidden: 'A(z) %title% vége',
},
relatedContent: 'Kapcsolódó tartalom',
relatedTopics: 'Kapcsolódó téma',
navMenuText: 'Menü',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/marathi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'सध्याचे पान',
skipLinkText: 'थेट मजकुरावर जा',
skipContent: {
text: '%title% वगळा आणि पुढे सुरू ठेवा',
endTextVisuallyHidden: '%title%चा शेवट',
},
relatedContent: 'संबंधित मजकूर',
relatedTopics: 'संबंधित विषय',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/mundo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ export const service: DefaultServiceConfig = {
continueReading: 'Continuar leyendo',
currentPage: 'Página actual',
skipLinkText: 'Ir al contenido',
skipContent: {
text: 'Omitir %title% y continuar',
endTextVisuallyHidden: 'Fin de %title%',
},
relatedContent: 'Contenido relacionado',
relatedTopics: 'Temas relacionados',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/nepali.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'अहिलेको पृष्ठ',
skipLinkText: 'सामग्रीमा जानुहोस्',
skipContent: {
text: '%title% छोड्नुहोस् र जारी राख्नुहोस्',
endTextVisuallyHidden: '%title% को अन्त्य',
},
relatedContent: 'सम्बन्धित सामग्री',
relatedTopics: 'सम्बन्धित सामग्री',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export const service: DefaultServiceConfig = {
home: 'Home',
currentPage: 'Current page',
skipLinkText: 'Skip to content',
skipContent: {
text: 'Skip %title% and continue',
endTextVisuallyHidden: 'End of %title%',
},
relatedContent: 'Related content',
relatedTopics: 'Related topics',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/newsround.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ export const service: DefaultServiceConfig = {
home: 'Home',
currentPage: 'Current page',
skipLinkText: 'Skip to content',
skipContent: {
text: 'Skip %title% and continue',
endTextVisuallyHidden: 'End of %title%',
},
relatedContent: 'Related content',
moreOnThis: '',
navMenuText: 'Sections',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/pashto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'اوسنۍ پاڼه',
skipLinkText: 'مطلب ته ورشئ',
skipContent: {
text: '%title% پریږدئ او دوام ورکړئ',
endTextVisuallyHidden: 'د %title% پای',
},
relatedContent: 'ورته مطالب',
relatedTopics: 'اړونده مطالب',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/persian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ export const service: DefaultServiceConfig = {
continueReading: 'ادامه مطلب را بخوانید',
currentPage: 'صفحه فعلی',
skipLinkText: 'مشاهده محتوا',
skipContent: {
text: 'رد کردن %title% و ادامه',
endTextVisuallyHidden: 'پایان %title%',
},
relatedContent: 'مطالب مرتبط',
relatedTopics: 'موضوعات مرتبط',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/pidgin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export const service: DefaultServiceConfig = {
continueReading: 'Kontinu to dey read',
currentPage: 'Page where you dey',
skipLinkText: 'Waka go wetin de inside',
skipContent: {
text: 'Skip %title% and continue',
endTextVisuallyHidden: 'End of %title%',
},
relatedContent: 'Another thing we de for inside dis tori',
relatedTopics: 'Topics Wey Dem Resemble',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/polska.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'Strona bieżąca',
skipLinkText: 'Przejdź do treści',
skipContent: {
text: 'Pomiń %title% i kontynuuj',
endTextVisuallyHidden: 'Koniec %title%',
},
relatedContent: 'Powiązane treści',
relatedTopics: 'Powiązane tematy',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/portuguese.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'Página atual',
skipLinkText: 'Vá para o conteúdo',
skipContent: {
text: 'Pular %title% e continuar',
endTextVisuallyHidden: 'Fim de %title%',
},
relatedContent: 'Histórias relacionadas',
relatedTopics: 'Tópicos relacionados',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/punjabi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ export const service: DefaultServiceConfig = {
continueReading: 'ਅੱਗੇ ਪੜ੍ਹੋ',
currentPage: 'ਮੌਜੂਦਾ ਪੇਜ',
skipLinkText: `ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ`,
skipContent: {
text: '%title% ਛੱਡੋ ਅਤੇ ਜਾਰੀ ਰੱਖੋ',
endTextVisuallyHidden: '%title% ਦਾ ਅੰਤ',
},
relatedContent: 'ਇਸ ਖ਼ਬਰ ਬਾਰੇ ਹੋਰ',
relatedTopics: 'ਸਬੰਧਿਤ ਵਿਸ਼ੇ',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/romania.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export const service: DefaultServiceConfig = {
},
currentPage: 'Pagina curentă',
skipLinkText: 'Acces direct la conținut',
skipContent: {
text: 'Sari peste %title% și continuă',
endTextVisuallyHidden: 'Sfârșitul %title%',
},
relatedContent: 'Articole similare',
relatedTopics: 'Subiecte similare',
moreOnThis: '',
Expand Down
4 changes: 4 additions & 0 deletions src/app/lib/config/services/russian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ export const service: DefaultServiceConfig = {
},
...russianUkrainianSharedTranslations,
...headerFooterTranslations,
skipContent: {
text: 'Пропустить %title% и продолжить',
endTextVisuallyHidden: 'Конец %title%',
},
topicDiscovery: {
heading: 'Узнать больше',
moreAboutTopic: 'Больше о {topic}',
Expand Down
Loading
Loading