gtx-cli 1.2.10-alpha.1 → 1.2.10
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.
|
@@ -15,7 +15,8 @@ function validateSettings(settings) {
|
|
|
15
15
|
}
|
|
16
16
|
// defaultLocale cannot be a superset of any other locale
|
|
17
17
|
if (settings.defaultLocale &&
|
|
18
|
-
settings.locales.some((locale) => (0, generaltranslation_1.isSupersetLocale)(settings.defaultLocale, locale)
|
|
18
|
+
settings.locales.some((locale) => (0, generaltranslation_1.isSupersetLocale)(settings.defaultLocale, locale) &&
|
|
19
|
+
!(0, generaltranslation_1.isSupersetLocale)(locale, settings.defaultLocale))) {
|
|
19
20
|
const locale = settings.locales.find((locale) => (0, generaltranslation_1.isSupersetLocale)(settings.defaultLocale, locale));
|
|
20
21
|
(0, console_1.logErrorAndExit)(`defaultLocale: ${settings.defaultLocale} is a superset of another locale (${locale})! Please change the defaultLocale to a more specific locale.`);
|
|
21
22
|
}
|