@mirai/core 0.1.118 → 0.1.119

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.
@@ -12,7 +12,7 @@ const getLocale = function () {
12
12
  navigatorLanguage
13
13
  } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
14
  let locale;
15
- if (language === navigatorLanguage && _locale.COUNTRIES[navigatorLanguage]) locale = [navigatorLanguage, countryLanguage];else if (_locale.COUNTRIES[language]) locale = [language, _locale.COUNTRIES[language]];else locale = _locale.DEFAULT_LOCALE.split('-');
15
+ if (language && language === navigatorLanguage && _locale.COUNTRIES[navigatorLanguage] === countryLanguage) locale = [navigatorLanguage, countryLanguage];else if (_locale.COUNTRIES[language]) locale = [language, _locale.COUNTRIES[language]];else locale = _locale.DEFAULT_LOCALE.split('-');
16
16
  return locale;
17
17
  };
18
18
  exports.getLocale = getLocale;
@@ -1 +1 @@
1
- {"version":3,"file":"getLocale.js","names":["getLocale","countryLanguage","language","navigatorLanguage","locale","COUNTRIES","DEFAULT_LOCALE","split"],"sources":["../../src/helpers/getLocale.js"],"sourcesContent":["import { DEFAULT_LOCALE, COUNTRIES } from '@mirai/locale';\n\nexport const getLocale = ({ countryLanguage, language, navigatorLanguage } = {}) => {\n let locale;\n\n if (language === navigatorLanguage && COUNTRIES[navigatorLanguage]) locale = [navigatorLanguage, countryLanguage];\n else if (COUNTRIES[language]) locale = [language, COUNTRIES[language]];\n else locale = DEFAULT_LOCALE.split('-');\n\n return locale;\n};\n"],"mappings":";;;;;;AAAA;AAEO,MAAMA,SAAS,GAAG,YAA2D;EAAA,IAA1D;IAAEC,eAAe;IAAEC,QAAQ;IAAEC;EAAkB,CAAC,uEAAG,CAAC,CAAC;EAC7E,IAAIC,MAAM;EAEV,IAAIF,QAAQ,KAAKC,iBAAiB,IAAIE,iBAAS,CAACF,iBAAiB,CAAC,EAAEC,MAAM,GAAG,CAACD,iBAAiB,EAAEF,eAAe,CAAC,CAAC,KAC7G,IAAII,iBAAS,CAACH,QAAQ,CAAC,EAAEE,MAAM,GAAG,CAACF,QAAQ,EAAEG,iBAAS,CAACH,QAAQ,CAAC,CAAC,CAAC,KAClEE,MAAM,GAAGE,sBAAc,CAACC,KAAK,CAAC,GAAG,CAAC;EAEvC,OAAOH,MAAM;AACf,CAAC;AAAC"}
1
+ {"version":3,"file":"getLocale.js","names":["getLocale","countryLanguage","language","navigatorLanguage","locale","COUNTRIES","DEFAULT_LOCALE","split"],"sources":["../../src/helpers/getLocale.js"],"sourcesContent":["import { DEFAULT_LOCALE, COUNTRIES } from '@mirai/locale';\n\nexport const getLocale = ({ countryLanguage, language, navigatorLanguage } = {}) => {\n let locale;\n\n if (language && language === navigatorLanguage && COUNTRIES[navigatorLanguage] === countryLanguage)\n locale = [navigatorLanguage, countryLanguage];\n else if (COUNTRIES[language]) locale = [language, COUNTRIES[language]];\n else locale = DEFAULT_LOCALE.split('-');\n\n return locale;\n};\n"],"mappings":";;;;;;AAAA;AAEO,MAAMA,SAAS,GAAG,YAA2D;EAAA,IAA1D;IAAEC,eAAe;IAAEC,QAAQ;IAAEC;EAAkB,CAAC,uEAAG,CAAC,CAAC;EAC7E,IAAIC,MAAM;EAEV,IAAIF,QAAQ,IAAIA,QAAQ,KAAKC,iBAAiB,IAAIE,iBAAS,CAACF,iBAAiB,CAAC,KAAKF,eAAe,EAChGG,MAAM,GAAG,CAACD,iBAAiB,EAAEF,eAAe,CAAC,CAAC,KAC3C,IAAII,iBAAS,CAACH,QAAQ,CAAC,EAAEE,MAAM,GAAG,CAACF,QAAQ,EAAEG,iBAAS,CAACH,QAAQ,CAAC,CAAC,CAAC,KAClEE,MAAM,GAAGE,sBAAc,CAACC,KAAK,CAAC,GAAG,CAAC;EAEvC,OAAOH,MAAM;AACf,CAAC;AAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirai/core",
3
- "version": "0.1.118",
3
+ "version": "0.1.119",
4
4
  "source": "src/index.js",
5
5
  "repository": "https://gitlab.com/miraicorp/dev/frontend/core",
6
6
  "author": "JΛVI <hello@soyjavi.com>",