@paypal/sdk-client
Advanced tools
Comparing version
{ | ||
"name": "@paypal/sdk-client", | ||
"version": "4.0.160", | ||
"version": "4.0.161", | ||
"description": "Shared config between PayPal/Braintree.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
/* @flow */ | ||
import type { LocaleType } from '@paypal/sdk-constants/src/'; | ||
import { COUNTRY_LANGS, LANG, COUNTRY } from '@paypal/sdk-constants/src'; | ||
import { COUNTRY_LANGS, LANG, COUNTRY, type LocaleType } from '@paypal/sdk-constants/src'; | ||
export function getComputedLocales(locale : string) : LocaleType { | ||
@@ -12,3 +12,3 @@ let [ lang, country ] = locale.split('_'); | ||
if (countryLangs.includes(LANG.ZH_HANT)) { | ||
if (countryLangs && countryLangs.includes(LANG.ZH_HANT) && lang === LANG.ZH) { | ||
lang = LANG.ZH_HANT; | ||
@@ -15,0 +15,0 @@ } |
79491
-0.01%1574
-0.06%