@alienfast/i18next-loader
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -39,3 +39,9 @@ const path = require('path') | ||
// needs to be ordered in least specialized to most e.g. lib locale -> app locale | ||
const moduleLocalesDirs = options.overrides.map(override => path.join(appLocalesDir, override)) | ||
const moduleLocalesDirs = options.overrides.map(override => { | ||
if(path.isAbsolute(override)){ | ||
return override | ||
} else { | ||
return path.join(appLocalesDir, override) | ||
} | ||
}) | ||
moduleLocalesDirs.push(appLocalesDir) | ||
@@ -42,0 +48,0 @@ moduleLocalesDirs.forEach((localesDir) => { |
{ | ||
"name": "@alienfast/i18next-loader", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Webpack loader for client embedded i18next locales from json or yaml.", | ||
@@ -41,9 +41,9 @@ "main": "index.js", | ||
"loader-utils": "^1.1.0", | ||
"lodash": "^4.17.5" | ||
"lodash": "^4.17.10" | ||
}, | ||
"devDependencies": { | ||
"@alienfast/build": "^4.0.18", | ||
"@alienfast/build": "^4.0.108", | ||
"chai": "^4.1.2", | ||
"mocha": "^5.0.5" | ||
"mocha": "^5.1.1" | ||
} | ||
} |
@@ -115,3 +115,3 @@ # @alienfast/i18next-loader | ||
```javascript | ||
{overrides: ['../node_modules/lib1/locales']} | ||
{overrides: ['../node_modules/lib1/locales']} // relative or absolute paths | ||
``` | ||
@@ -118,0 +118,0 @@ This configures the loader to work on a file structure like the following: |
Sorry, the diff of this file is not supported yet
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
253
247311
Updatedlodash@^4.17.10