Bug 1625283 - Initial list of locale/regions for pocket stories r=gvn
authorScott <scott.downe@gmail.com>
Thu, 02 Apr 2020 20:13:52 +0000
changeset 521988 43f3b4e931163c71d18a51fc49db46d984995694
parent 521987 b545e60f385c948dfcf184f2cedb2f7637067bf8
child 521989 08359730557d8060294ed0d0f9f2843dff339a21
push id37281
push userbtara@mozilla.com
push dateSat, 04 Apr 2020 09:29:13 +0000
treeherdermozilla-central@26bcd52f3e76 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgvn
bugs1625283
milestone76.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1625283 - Initial list of locale/regions for pocket stories r=gvn Differential Revision: https://phabricator.services.mozilla.com/D69055
browser/components/newtab/lib/ActivityStream.jsm
--- a/browser/components/newtab/lib/ActivityStream.jsm
+++ b/browser/components/newtab/lib/ActivityStream.jsm
@@ -607,21 +607,32 @@ const FEEDS_DATA = [
     title:
       "Fetches content recommendations from a configurable content provider",
     // Dynamically determine if Pocket should be shown for a geo / locale
     getValue: ({ geo, locale }) => {
       const preffedRegionsString =
         Services.prefs.getStringPref(REGION_STORIES_CONFIG) || "";
       const preffedRegions = preffedRegionsString.split(",").map(s => s.trim());
       const locales = {
-        US: ["en-CA", "en-GB", "en-US", "en-ZA"],
-        CA: ["en-CA", "en-GB", "en-US", "en-ZA"],
-        GB: ["en-CA", "en-GB", "en-US", "en-ZA"],
-        DE: ["de", "de-DE", "de-AT", "de-CH"],
-        JP: ["ja", "ja-JP"],
+        US: ["en-CA", "en-GB", "en-US"],
+        CA: ["en-CA", "en-GB", "en-US"],
+        GB: ["en-CA", "en-GB", "en-US"],
+        AU: ["en-CA", "en-GB", "en-US"],
+        NZ: ["en-CA", "en-GB", "en-US"],
+        IN: ["en-CA", "en-GB", "en-US"],
+        ZA: ["en-CA", "en-GB", "en-US"],
+        CH: ["de", "fr", "it"],
+        BE: ["fr", "de"],
+        DE: ["de"],
+        AT: ["de"],
+        IT: ["it"],
+        FR: ["fr"],
+        ES: ["es"],
+        PL: ["pl"],
+        JP: ["ja", "ja-JP-mac"],
       }[geo];
       return (
         preffedRegions.includes(geo) && !!locales && locales.includes(locale)
       );
     },
   },
   {
     name: "systemtick",