Gathering detailed insights and metrics for grunt-po2json-simple
Gathering detailed insights and metrics for grunt-po2json-simple
Gathering detailed insights and metrics for grunt-po2json-simple
Gathering detailed insights and metrics for grunt-po2json-simple
npm install grunt-po2json-simple
Typescript
Module System
Min. Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
22 Commits
2 Forks
1 Watchers
1 Branches
4 Contributors
Updated on Jul 08, 2016
Latest Version
0.1.8
Package Id
grunt-po2json-simple@0.1.8
Size
5.90 kB
NPM Version
1.4.28
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
4
Convert i18n PO format to JSON files
This plugin requires Grunt ~0.4.4
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
1npm install grunt-po2json-simple --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
1grunt.loadNpmTasks('grunt-po2json-simple');
In your project's Gruntfile, add a section named po2json
to the data object passed into grunt.initConfig()
.
1grunt.initConfig({
2 po2json: {
3 options: {
4 // Task-specific options go here.
5 },
6 your_target: {
7 // Target-specific file lists and/or options go here.
8 }
9 }
10});
Type: String
Values: 'module' | 'json'
Default value: 'module'
Format of source file
Type: String
Default value: 'en'
Original language
Type: String
Default value: 'LC_MESSAGES'
Optional path within locale directory
Type: String
Default value: 'messages.po'
Filename of result file
Type: Function
Default value: null
Template source files with a custom function.
In this example, the default options are used to convert PO file to JS module.
1grunt.initConfig({
2 po2json: {
3 options: {},
4 files: {
5 'path/to/result/json': 'path/to/directory-with-po'
6 }
7 }
8});
In this example, result will be saved in JSON format.
1grunt.initConfig({ 2 po2json: { 3 options: { 4 format : 'json', 5 original: 'ru', 6 path : 'LCCC', 7 filename: 'locale.po', 8 template: function (data, file) { 9 return 'define(function() {\n' + 10 '\treturn ' + data + ';\n' + 11 '});\n'; 12 } 13 }, 14 files: { 15 'path/to/result/json': 'path/to/directory-with-po' 16 } 17 } 18});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
(Nothing yet)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 6/19 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More