customlabels2csv tool helps you to convert your custom labels xml file to a csv file so that you can easily update the error/warning/success messages, you're using in salesforce. You can also convert your csv file back to xml and push/deploy it to your salesforce org to update all the custom labels in one go.
You should have Node.js installed in your local system. You can download it from here. Clone the repository by the executing the below command or downloading the code directly as a zip file.
git clone https://github.com/rahulmalhotra/customlabels2csv.git
cd customlabels2csv
In order to install the necessary modules, after cloning the repository, you can navigate to the base folder and run the below command to install the dependencies:
npm install
customlabels2csv convertor is now ready for use.
You can update the CustomLabels.labels-meta.xml file or replace it directly with your own custom labels xml file.
To convert the custom labels xml file to csv file, open the terminal/cmd, navigate to the customlabels2csv folder and run the below command:
node xml2csv.js
You'll get the output as shown below:
A new file will be created with name customlabels.csv or if this file is already present, it'll be updated as shown below:
To convert the csv file to custom labels xml file, open the terminal/cmd, navigate to the customlabels2csv folder and run the below command:
node csv2xml.js
You'll get the output as shown below:
A new file will be created with name NewCustomLabels.labels-meta.xml or if this file is already present, it'll be updated as shown below:
If you want to make any changes in the code, please make sure that you have Node.js installed. You can use any of the IDEs you prefer for development. However I like to use VS Code IDE.
Below are the tools or softwares I use personally :-
Please read CONTRIBUTING.md for details on code of conduct and the process for submitting pull requests.
- Rahul Malhotra - @rahulcoder
This project is licensed under the BSD 3-Clause License - see the LICENSE.md file for details.