fix(andebol): remove FPA feed origin copy from agenda UI (BIT-26494) (#30)
This commit was merged in pull request #30.
This commit is contained in:
1 parent
225d65c2c5
commit
c0a1787b93
3 files changed
+12
-10
No files matched your search
@@ -44,10 +44,10 @@ test('getUiStrings en search_results_count', () => {
|
||||
assert.equal(s.search_results_count(3), '3 results');
|
||||
});
|
||||
|
||||
test('getUiStrings pt fpa strings use official federation name', () => {
|
||||
test('getUiStrings pt fpa strings omit feed origin references', () => {
|
||||
const s = getUiStrings('pt-PT');
|
||||
assert.ok(s.fpa_agenda_lead.includes('Federação de Andebol de Portugal'));
|
||||
assert.ok(s.fpa_source_credit.includes('Federação de Andebol de Portugal'));
|
||||
assert.equal(s.fpa_agenda_lead.includes('Federação Portuguesa de Andebol'), false);
|
||||
assert.equal(s.fpa_source_credit.includes('Federação Portuguesa de Andebol'), false);
|
||||
assert.equal(s.fpa_agenda_lead, 'Agenda de competições nacionais.');
|
||||
assert.equal(s.fpa_source_credit, '');
|
||||
assert.equal(s.fpa_agenda_lead.includes('feed'), false);
|
||||
assert.equal(s.fpa_agenda_lead.includes('ws.fpa'), false);
|
||||
});
|
||||
@@ -142,14 +142,14 @@ const en: UiStrings = {
|
||||
explore_sections: 'Explore',
|
||||
discover_lead: 'Browse by topic or find an article by keyword.',
|
||||
fpa_agenda_title: 'Upcoming matches',
|
||||
fpa_agenda_lead: 'National competition fixtures (public feed from the Handball Federation of Portugal).',
|
||||
fpa_agenda_lead: 'National competition fixtures.',
|
||||
fpa_col_when: 'When',
|
||||
fpa_col_match: 'Match',
|
||||
fpa_col_score: 'Score',
|
||||
fpa_col_venue: 'Venue',
|
||||
fpa_col_competition: 'Competition',
|
||||
fpa_agenda_empty: 'Fixture list is temporarily unavailable.',
|
||||
fpa_source_credit: 'Data: Handball Federation of Portugal (ws.fpa.pt).',
|
||||
fpa_source_credit: '',
|
||||
fpa_status_finished: 'FT',
|
||||
fpa_status_upcoming: 'Upcoming',
|
||||
fpa_status_live: 'Live',
|
||||
@@ -222,14 +222,14 @@ const pt: UiStrings = {
|
||||
explore_sections: 'Explorar',
|
||||
discover_lead: 'Navegue por tema ou encontre um artigo por palavra-chave.',
|
||||
fpa_agenda_title: 'Próximos jogos',
|
||||
fpa_agenda_lead: 'Agenda de competições nacionais (feed público da Federação de Andebol de Portugal).',
|
||||
fpa_agenda_lead: 'Agenda de competições nacionais.',
|
||||
fpa_col_when: 'Quando',
|
||||
fpa_col_match: 'Jogo',
|
||||
fpa_col_score: 'Resultado',
|
||||
fpa_col_venue: 'Local',
|
||||
fpa_col_competition: 'Competição',
|
||||
fpa_agenda_empty: 'A agenda não está disponível de momento.',
|
||||
fpa_source_credit: 'Dados: Federação de Andebol de Portugal (ws.fpa.pt).',
|
||||
fpa_source_credit: '',
|
||||
fpa_status_finished: 'Fim',
|
||||
fpa_status_upcoming: 'Por jogar',
|
||||
fpa_status_live: 'Em direto',
|
||||
|
||||
@@ -194,7 +194,9 @@ const date_groups = [...by_date.entries()];
|
||||
</div>
|
||||
)}
|
||||
|
||||
<p class="fpa-agenda__credit">{ui.fpa_source_credit}</p>
|
||||
{games.length > 0 && ui.fpa_source_credit ? (
|
||||
<p class="fpa-agenda__credit">{ui.fpa_source_credit}</p>
|
||||
) : null}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in new issue
Block a user