@askdialog/dialog-sdk 2.0.0-beta.1 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ export const getDetailedLocaleInfo = (locale) => {
|
|
|
4
4
|
const language = localeObj.language;
|
|
5
5
|
const countryCode = localeObj.region ?? localeObj.maximize().region;
|
|
6
6
|
const languageNames = new Intl.DisplayNames(["en"], { type: "language" });
|
|
7
|
-
const languageName = languageNames.of(
|
|
7
|
+
const languageName = languageNames.of(localeObj.baseName);
|
|
8
8
|
if (languageName === undefined || countryCode === undefined) {
|
|
9
9
|
return null;
|
|
10
10
|
}
|