Skip to content

A resx to JSON file converter plugin for gulp in pure JS

License

Notifications You must be signed in to change notification settings

cleferman/gulp-resx2react-localize-redux

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fork of: gulp-resx2json

gulp-resx2react-localize-redux

Modified the plugin to use with react-localize-redux. I did this because I want to keep a single entry point for the resource files so API resources and UI resources would come from the same place. This plugin basically builds the resources for the UI project without the need to make an extra web api call to fetch them.

New stuff: Ability to provide arguments resource prefix and separator:

{
  resourcePrefix: 'UI_',
  resourceSeparator: '_'
}

Usage

Not yet on npm.

In your gulpfile.js:

var resx2json = require('<not-yet-in-npm>');

gulp.task('build-resx', function(){
  gulp.src(['resource.resx'])
    .pipe(resx2json({resourcePrefix = 'UI_', resourceSeparator = '_'}))
    .pipe(gulp.dest('resources/resource.json'));
});

About

A resx to JSON file converter plugin for gulp in pure JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%