Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

ResxToJS

Resx2Js is a utility that converts .NET/C# resx files into a JavaScript file which contains a JSON of the .NET/C# resources.

This will allow you to store all your resources in one place on the .NET side and automatically regenerate them on the JavaScript side.

Usage

To convert .resx files in your .NET solution into JavaScript files, use the following

ResxToJs.exe -i ".NET/C# resource files folder" -o "JS resource files folder"

By default, the generated JavaScript files use the same name as the C# resource files with .js appended to the end. To change this, use the below.

ResxToJs.exe -i ".NET/C# resource files folder" -o "JS resource files folder" --jsFileName "JS filename"

The default name for the generated json object is Resources. To change this, use the below

ResxToJs.exe -i ".NET/C# resource files folder" -o "JS resource files folder" --jsObjectName "JS resources object name"

To pretty print the output JavaScript, use the below.

ResxToJs.exe -i ".NET/C# resource files folder" -o "JavaScript resource files folder" --prettyPrint

To check for duplicate values in the .resx files, use

ResxToJs.exe -i ".NET/C# resource files folder" -o "JavaScript resource files folder" --checkDuplicates

About

.NET Resx to JavaScript converter

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages