{"id":19151492,"url":"https://github.com/sc5/gulp-combine-languagefiles","last_synced_at":"2025-07-17T16:03:28.007Z","repository":{"id":33158455,"uuid":"36799220","full_name":"SC5/gulp-combine-languagefiles","owner":"SC5","description":"Gulp plugin to combine several nested JSON language files","archived":false,"fork":false,"pushed_at":"2018-11-28T15:18:49.000Z","size":104,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-06-01T09:38:21.063Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SC5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-03T11:26:34.000Z","updated_at":"2016-05-29T16:28:56.000Z","dependencies_parsed_at":"2022-08-17T20:00:27.399Z","dependency_job_id":null,"html_url":"https://github.com/SC5/gulp-combine-languagefiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SC5/gulp-combine-languagefiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fgulp-combine-languagefiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fgulp-combine-languagefiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fgulp-combine-languagefiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fgulp-combine-languagefiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SC5","download_url":"https://codeload.github.com/SC5/gulp-combine-languagefiles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fgulp-combine-languagefiles/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265625568,"owners_count":23800624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T08:14:50.639Z","updated_at":"2025-07-17T16:03:27.981Z","avatar_url":"https://github.com/SC5.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-combine-languagefiles\n\n\u003e Gulp plugin to combine several (nested) JSON language files\n\u003e Create easily editable CSV so non-programmers can help with translations\n\nThis plugin was originally made to be used with [gulp-bobrsass-boilerplate / angularjs](https://github.com/SC5/gulp-bobrsass-boilerplate/tree/angularjs), but it should work with other projects too using JSON key-value -pair translations. It expects translations to be named as `en.json`, `en-EN.json` or similar. Your project tree might look for example like\n\n\tsrc/\n\t\tapp/\n\t\t\tmodule1/\n\t\t\t\tlanguages/\n\t\t\t\t\ten.json\n\t\t\t\t\tfi.json\n\t\t\tmodule2/\n\t\t\t\tlanguages/\n\t\t\t\t\ten.json\n\t\t\t\t\tfi.json\n\n## Usage\n\nInstall `gulp-combine-languagefiles` as a development dependency:\n\n```shell\nnpm install --save-dev gulp-combine-languagefiles\n```\n\nAdd it to your `gulpfile.js`:\n\n```javascript\nvar combine_languagefiles = require(\"gulp-combine-languagefiles\");\n\ngulp.src(\"src/app/**/languages/*.json\")\n\t.pipe(combine_languagefiles(\"translations.json\"))\n\t.pipe(gulp.dest(\"\"));\n```\n\nYou can use gulp-convert to convert result to CSV. Use `includeHeader` parameter to prepend header as first row.\n\n```javascript\nvar concat_json = require(\"gulp-concat-languagefiles\");\nvar convert = require(\"gulp-convert\");\n\ngulp.src(\"src/app/**/languages/*.json\")\n\t.pipe(combine_languagefiles(\"translations.json\", { includeHeader: true }))\n\t.pipe(convert({from: 'json', to: 'csv'}))\n\t.pipe(gulp.dest(\"\")); // File will be saved as translations.csv to project root\n```\n\nSee /example for a script to parse generated CSV back to original JSON-files, it even supports downloading CSV from Google Drive!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc5%2Fgulp-combine-languagefiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsc5%2Fgulp-combine-languagefiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc5%2Fgulp-combine-languagefiles/lists"}