Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
i18n-converter
Advanced tools
Convert editor json files with a given template into more complex vue-i18n json files
This converter helps to transfer translations received in an excel file to our i18n JSON-Files.
npm install i18n-converter
Your translation files are separate json files for every market like this:
translations
├── DE.json
├── US.json
├── CA.json
├── GB.json
├── ES.json
├── FR.json
├── IT.json
└── MX.json
You need to add a file called EDITOR_FILE.json or EDITOR_FILE_EXCEL_COPY_PASTE to the directory where your translations are. Alternatively you can choose to use data that is in your clipboard. (copied from an excel file)
The script can use in two ways: ReplacementKeys or KeyPaths
Your i18n files contain keys which are used as placeholders for translations. The script will replace the keys with the translations from the editor file.
No preparation of your i18n-json file is needed. The editor file contains key paths where the translation has to be in the i18n files. The script will add the translations to the i18n files.
EDITOR_FILE.json with the following format:
[
{
"KeyPath": "test.automotive",
"DE": "Automobil",
"US": "...",
"CA": "...",
"GB": "...",
"ES": "...",
"FR": "...",
"IT": "...",
"MX": "..."
}
]
EDITOR_FILE_EXCEL_COPY_PASTE.json with the following format:
IMPORTANT: Separators has to be tabs
test.automotive Automobil Automotive Automotive Automotive Automoción Automoción Automobile Automotive
The first column has to be the keypath or the replacement key The following columns has to be the translations (ORDER: DE, US, CA, GB, ES, MX, FR, IT)
Run the script with the following command: Navigate to the directory where your translations are and run the following command:
i18n-converter run
npm link
FAQs
Convert editor json files with a given template into more complex vue-i18n json files
We found that i18n-converter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.