@atlassian/i18n-properties-loader
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "@atlassian/i18n-properties-loader", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "A Webpack loader for i18n *.properties files that can be used in Atlassian Server products", | ||
@@ -29,3 +29,9 @@ "main": "index.js", | ||
"homepage": "https://bitbucket.org/atlassianlabs/fe-server#readme", | ||
"gitHead": "1557fc778ab593f8dfe7b1a9f1b82e662b61ae4d" | ||
"dependencies": { | ||
"loader-utils": "^1.2.3", | ||
"lodash.debounce": "^4.0.8", | ||
"properties-reader": "0.0.16", | ||
"schema-utils": "^1.0.0" | ||
}, | ||
"gitHead": "150c7c87f2fd76675d022f871e2395122fb5133c" | ||
} |
# @atlassian/i18n-properties-loader | ||
A Webpack loader for i18n *.properties files that can be used in Atlassian Server products | ||
A Webpack loader for i18n `*.properties` files that can be used in Atlassian Server products | ||
## Install | ||
```sh | ||
npm install @atlassian/i18n-properties-loader --save-dev | ||
``` | ||
## Usage | ||
```js | ||
// webpack.config.js | ||
const i18nFiles = [ | ||
'foo/i18n/my-translation-file.properties', | ||
'foo/bar/i18n/my-other-translation-file.properties', | ||
'bar/i18n/some-translation-file.properties', | ||
]; | ||
module.exports = { | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.jsx?$/, | ||
include: ["src"], | ||
use: [ | ||
{ | ||
loader: '@atlassian/i18n-properties-loader', | ||
options: { | ||
i18nFiles | ||
}, | ||
}, | ||
{ | ||
loader: 'babel-loader' | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
## Options | ||
- `i18nFiles` list of paths to your `*.properties` files (required) | ||
- `disabled` disables the loader; can we used to disabled in production bundle (optional, default `false`) | ||
## Links | ||
- [https://www.npmjs.com/package/@atlassian/i18n-properties-loader](https://www.npmjs.com/package/@atlassian/i18n-properties-loader) | ||
- [https://www.npmjs.com/package/@atlassian/wrm-react-i18n](https://www.npmjs.com/package/@atlassian/wrm-react-i18n) | ||
- [https://www.npmjs.com/package/atlassian-webresource-webpack-plugin](https://www.npmjs.com/package/atlassian-webresource-webpack-plugin) |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
5528
3
93
56
0
4
1
+ Addedloader-utils@^1.2.3
+ Addedlodash.debounce@^4.0.8
+ Addedproperties-reader@0.0.16
+ Addedschema-utils@^1.0.0
+ Addedajv@6.12.6(transitive)
+ Addedajv-errors@1.0.1(transitive)
+ Addedajv-keywords@3.5.2(transitive)
+ Addedbig.js@5.2.2(transitive)
+ Addedemojis-list@3.0.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson5@1.0.2(transitive)
+ Addedloader-utils@1.4.2(transitive)
+ Addedlodash.debounce@4.0.8(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedproperties-reader@0.0.16(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedschema-utils@1.0.0(transitive)
+ Addeduri-js@4.4.1(transitive)