/**
 * Widgets API defaults
 *
 * Site Kit by Google, Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * Internal dependencies
 */
import { CONTEXT_DASHBOARD, CONTEXT_PAGE_DASHBOARD } from './default-contexts';
import {
	AREA_ALL_TRAFFIC,
	AREA_SEARCH_FUNNEL,
	AREA_POPULARITY,
	AREA_SPEED,
	AREA_EARNINGS,
} from './default-areas';

/**
 * Defines default widget areas for a given context.
 *
 * @since n.e.x.t
 *
 * @param {Object} widgetsAPI Widgets API.
 */
export function registerDefaults( widgetsAPI ) {
	const contexts = [ CONTEXT_DASHBOARD, CONTEXT_PAGE_DASHBOARD ];

	widgetsAPI.registerWidgetArea( AREA_ALL_TRAFFIC, {
		title: 'All Triffic',
		subtitle: 'How people found your site.',
	}, contexts );

	widgetsAPI.registerWidgetArea( AREA_SEARCH_FUNNEL, {
		title: 'Search Funnel',
		subtitle: 'How your site appeared in Search results and how many visitors you got from Search.',
	}, contexts );

	widgetsAPI.registerWidgetArea( AREA_POPULARITY, {
		title: 'Popularity',
		subtitle: 'Your most popular pages and how people found them from Search.',
	}, contexts );

	widgetsAPI.registerWidgetArea( AREA_SPEED, {
		title: 'Page Speed and Experience',
		subtitle: 'How fast your home page loads, how quickly people can interact with your content, and how stable your content is.',
	}, contexts );

	widgetsAPI.registerWidgetArea( AREA_EARNINGS, {
		title: 'Earnings',
		subtitle: 'How much your site earns.',
	}, contexts );
}

@@ -637,16 +637,89 @@
 e.%0A */%0A%0A
+/**%0A * WordPress dependencies%0A */%0Aimport %7B __ %7D from '@wordpress/i18n';%0A%0A
 /**%0A * I
@@ -1253,16 +1253,20 @@
 tle:
+ __(
  'All Tr
 iffi
@@ -1265,15 +1265,36 @@
 l Tr
-i
+a
 ffic',
+ 'google-site-kit' ),
 %0A%09%09s
@@ -1297,24 +1297,28 @@
 %0A%09%09subtitle:
+ __(
  'How people
@@ -1336,16 +1336,37 @@
  site.',
+ 'google-site-kit' ),
 %0A%09%7D, con
@@ -1437,16 +1437,20 @@
 %09%09title:
+ __(
  'Search
@@ -1458,16 +1458,37 @@
 Funnel',
+ 'google-site-kit' ),
 %0A%09%09subti
@@ -1487,24 +1487,28 @@
 %0A%09%09subtitle:
+ __(
  'How your s
@@ -1574,32 +1574,53 @@
 t from Search.',
+ 'google-site-kit' ),
 %0A%09%7D, contexts );
@@ -1680,16 +1680,20 @@
 %09%09title:
+ __(
  'Popula
@@ -1698,16 +1698,37 @@
 larity',
+ 'google-site-kit' ),
 %0A%09%09subti
@@ -1731,16 +1731,20 @@
 ubtitle:
+ __(
  'Your m
@@ -1801,16 +1801,37 @@
 earch.',
+ 'google-site-kit' ),
 %0A%09%7D, con
@@ -1894,16 +1894,20 @@
 %09%09title:
+ __(
  'Page S
@@ -1927,16 +1927,37 @@
 rience',
+ 'google-site-kit' ),
 %0A%09%09subti
@@ -1956,24 +1956,28 @@
 %0A%09%09subtitle:
+ __(
  'How fast y
@@ -1984,13 +1984,8 @@
 our 
-home 
 page
@@ -2072,24 +2072,45 @@
 ontent is.',
+ 'google-site-kit' ),
 %0A%09%7D, context
@@ -2172,16 +2172,20 @@
 %09%09title:
+ __(
  'Earnin
@@ -2188,16 +2188,37 @@
 rnings',
+ 'google-site-kit' ),
 %0A%09%09subti
@@ -2221,16 +2221,20 @@
 ubtitle:
+ __(
  'How mu
@@ -2243,23 +2243,77 @@
  you
-r site ear
+%E2%80%99re earning from your content through AdSe
 ns
+e
 .',
+ 'google-site-kit' ),
 %0A%09%7D,

Update widget area static copy.