From 5e19aac8d8ce094c893397450fc0f9eb91345dda Mon Sep 17 00:00:00 2001 From: Luiz tanure Date: Wed, 24 Jul 2019 14:40:14 +0200 Subject: [PATCH 1/3] core(link-text): add portuguese support --- lighthouse-core/audits/seo/link-text.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lighthouse-core/audits/seo/link-text.js b/lighthouse-core/audits/seo/link-text.js index 6021555e6f02..7e5957772bcd 100644 --- a/lighthouse-core/audits/seo/link-text.js +++ b/lighthouse-core/audits/seo/link-text.js @@ -44,6 +44,16 @@ const BLOCKLIST = new Set([ 'enlace', 'este enlace', 'empezar', + // Portuguese + 'clique aqui', + 'ir', + 'início', + 'inicio', + 'ir', + 'mais', + 'mais informação', + 'veja mais', + 'mais', ]); const i18n = require('../../lib/i18n/i18n.js'); From cd146a5f26e9f455a28d84736676c77eeb00f59c Mon Sep 17 00:00:00 2001 From: Luiz tanure Date: Wed, 24 Jul 2019 14:51:37 +0200 Subject: [PATCH 2/3] core(link-text): add word to portuguese --- lighthouse-core/audits/seo/link-text.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lighthouse-core/audits/seo/link-text.js b/lighthouse-core/audits/seo/link-text.js index 7e5957772bcd..1aa0ff6b699b 100644 --- a/lighthouse-core/audits/seo/link-text.js +++ b/lighthouse-core/audits/seo/link-text.js @@ -52,6 +52,7 @@ const BLOCKLIST = new Set([ 'ir', 'mais', 'mais informação', + 'mais informações', 'veja mais', 'mais', ]); From 8fdd159cbf7c2dd032c9ec72664a352cc68992a8 Mon Sep 17 00:00:00 2001 From: Luiz tanure Date: Thu, 25 Jul 2019 11:29:09 +0200 Subject: [PATCH 3/3] core(link-text): remove duplicate word, sort alphabetically --- lighthouse-core/audits/seo/link-text.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lighthouse-core/audits/seo/link-text.js b/lighthouse-core/audits/seo/link-text.js index 1aa0ff6b699b..e14ee89a9139 100644 --- a/lighthouse-core/audits/seo/link-text.js +++ b/lighthouse-core/audits/seo/link-text.js @@ -46,15 +46,13 @@ const BLOCKLIST = new Set([ 'empezar', // Portuguese 'clique aqui', - 'ir', - 'início', 'inicio', + 'início', 'ir', - 'mais', 'mais informação', 'mais informações', - 'veja mais', 'mais', + 'veja mais', ]); const i18n = require('../../lib/i18n/i18n.js');