From 65b2a1eff5182b5f2f0ed4e511b8aab3ca43533f Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Fri, 27 Jul 2018 17:15:37 -0700 Subject: [PATCH] core(i18n): add strings of the opportunity group split (first paint, overall) (#5744) --- lighthouse-core/config/default-config.js | 8 ++++++++ lighthouse-core/lib/locales/en-US.json | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/lighthouse-core/config/default-config.js b/lighthouse-core/config/default-config.js index 1926990e1f15..1d234e80fba8 100644 --- a/lighthouse-core/config/default-config.js +++ b/lighthouse-core/config/default-config.js @@ -19,6 +19,14 @@ const UIStrings = { loadOpportunitiesGroupTitle: 'Opportunities', /** Description of the opportunity section of the Performance category. 'Optimizations' could also be 'recommendations' or 'suggestions'. Within this section are audits with imperative titles that suggest actions the user can take to improve the loading performance of their web page. */ loadOpportunitiesGroupDescription: 'These optimizations can speed up your page load.', + /** Title of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the time of the first initial render of the webpage. */ + firstPaintImprovementsGroupTitle: 'First Paint Improvements', + /** Description of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the time of the first initial render of the webpage. */ + firstPaintImprovementsGroupDescription: 'The most critical aspect of performance is how quickly pixels are rendered onscreen. Key metrics: First Contentful Paint, First Meaningful Paint', + /** Title of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the overall loading performance of their web page. */ + overallImprovementsGroupTitle: 'Overall Improvements', + /** Description of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the overall loading performance of their web page. */ + overallImprovementsGroupDescription: 'Enhance the overall loading experience, so the page is responsive and ready to use as soon as possible. Key metrics: Time to Interactive, Speed Index', /** Title of the diagnostics section of the Performance category. Within this section are audits with non-imperative titles that provide more detail on the page's page load performance characteristics. Whereas the 'Opportunities' suggest an action along with expected time savings, diagnostics do not. Within this section, the user may read the details and deduce additional actions they could take. */ diagnosticsGroupTitle: 'Diagnostics', /** Description of the diagnostics section of the Performance category. Within this section are audits with non-imperative titles that provide more detail on the page's page load performance characteristics. Whereas the 'Opportunities' suggest an action along with expected time savings, diagnostics do not. Within this section, the user may read the details and deduce additional actions they could take. */ diff --git a/lighthouse-core/lib/locales/en-US.json b/lighthouse-core/lib/locales/en-US.json index 414b156a8c45..5b20f79a58a1 100644 --- a/lighthouse-core/lib/locales/en-US.json +++ b/lighthouse-core/lib/locales/en-US.json @@ -331,6 +331,22 @@ "message": "These optimizations can speed up your page load.", "description": "Description of the opportunity section of the Performance category. 'Optimizations' could also be 'recommendations' or 'suggestions'. Within this section are audits with imperative titles that suggest actions the user can take to improve the loading performance of their web page." }, + "lighthouse-core/config/default-config.js | firstPaintImprovementsGroupTitle": { + "message": "First Paint Improvements", + "description": "Title of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the time of the first initial render of the webpage." + }, + "lighthouse-core/config/default-config.js | firstPaintImprovementsGroupDescription": { + "message": "The most critical aspect of performance is how quickly pixels are rendered onscreen. Key metrics: First Contentful Paint, First Meaningful Paint", + "description": "Description of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the time of the first initial render of the webpage." + }, + "lighthouse-core/config/default-config.js | overallImprovementsGroupTitle": { + "message": "Overall Improvements", + "description": "Title of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the overall loading performance of their web page." + }, + "lighthouse-core/config/default-config.js | overallImprovementsGroupDescription": { + "message": "Enhance the overall loading experience, so the page is responsive and ready to use as soon as possible. Key metrics: Time to Interactive, Speed Index", + "description": "Description of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the overall loading performance of their web page." + }, "lighthouse-core/config/default-config.js | diagnosticsGroupTitle": { "message": "Diagnostics", "description": "Title of the diagnostics section of the Performance category. Within this section are audits with non-imperative titles that provide more detail on the page's page load performance characteristics. Whereas the 'Opportunities' suggest an action along with expected time savings, diagnostics do not. Within this section, the user may read the details and deduce additional actions they could take."