nuxt-i18n
Advanced tools
Comparing version 6.20.1 to 6.20.2
@@ -0,1 +1,8 @@ | ||
### [6.20.2](https://github.com/nuxt-community/i18n-module/compare/v6.20.1...v6.20.2) (2021-02-19) | ||
### Bug Fixes | ||
* **lazy:** only process lang files with js, ts and json extensions ([#1070](https://github.com/nuxt-community/i18n-module/issues/1070)) ([1cf1ac2](https://github.com/nuxt-community/i18n-module/commit/1cf1ac2d031b924b4d2b82113f7580cfa18f7efa)), closes [#1068](https://github.com/nuxt-community/i18n-module/issues/1068) | ||
### [6.20.1](https://github.com/nuxt-community/i18n-module/compare/v6.20.0...v6.20.1) (2021-02-15) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "nuxt-i18n", | ||
"version": "6.20.1", | ||
"version": "6.20.2", | ||
"description": "i18n for Nuxt", | ||
@@ -95,5 +95,5 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@babel/core": "7.12.16", | ||
"@babel/preset-env": "7.12.16", | ||
"@babel/runtime": "7.12.13", | ||
"@babel/core": "7.12.17", | ||
"@babel/preset-env": "7.12.17", | ||
"@babel/runtime": "7.12.18", | ||
"@nuxt/types": "2.15.0", | ||
@@ -114,3 +114,3 @@ "@nuxtjs/eslint-config-typescript": "5.0.0", | ||
"codecov": "3.8.1", | ||
"core-js": "3.8.3", | ||
"core-js": "3.9.0", | ||
"eslint": "7.20.0", | ||
@@ -124,3 +124,3 @@ "finalhandler": "1.1.2", | ||
"playwright-chromium": "1.8.1", | ||
"release-it": "14.4.0", | ||
"release-it": "14.4.1", | ||
"serve-static": "1.14.1", | ||
@@ -127,0 +127,0 @@ "typescript": "4.1.5" |
@@ -31,3 +31,7 @@ import { LOCALE_CODE_KEY, LOCALE_FILE_KEY, MODULE_NAME } from './options' | ||
try { | ||
const langFileModule = await import(/* webpackChunkName: "lang-[request]" */ `~/<%= options.langDir %>${file}`) | ||
const langFileModule = await import( | ||
/* webpackChunkName: "lang-[request]" */ | ||
/* webpackInclude: /\.(js|ts|json)$/ */ | ||
`~/<%= options.langDir %>${file}` | ||
) | ||
const getter = langFileModule.default || langFileModule | ||
@@ -34,0 +38,0 @@ messages = typeof getter === 'function' ? await Promise.resolve(getter(context, locale)) : getter |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134830
1637