{"id":24499673,"url":"https://github.com/codewithkyle/dragomanjs","last_synced_at":"2025-03-15T07:16:03.481Z","repository":{"id":52638880,"uuid":"196091645","full_name":"codewithkyle/dragomanjs","owner":"codewithkyle","description":"DragomanJS is a tool used to programmatically scrub your Symfony, Laravel, and Craft CMS templates outputting translatable strings into PHP, JSON, and CSV files.","archived":false,"fork":false,"pushed_at":"2023-06-29T10:53:37.000Z","size":61,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T14:52:22.055Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/dragomanjs","language":"JavaScript","has_issues":false,"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/codewithkyle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-07-09T22:22:05.000Z","updated_at":"2021-04-22T17:20:31.000Z","dependencies_parsed_at":"2022-08-26T15:01:13.558Z","dependency_job_id":null,"html_url":"https://github.com/codewithkyle/dragomanjs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fdragomanjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fdragomanjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fdragomanjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fdragomanjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithkyle","download_url":"https://codeload.github.com/codewithkyle/dragomanjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695594,"owners_count":20332629,"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":"2025-01-21T22:15:15.960Z","updated_at":"2025-03-15T07:16:03.454Z","avatar_url":"https://github.com/codewithkyle.png","language":"JavaScript","readme":"# DragomanJS\n\n\u003e _drag·o·man_: an interpreter or guide\n\nDragoman is a tool used to programmatically scrub your Symfony, Laravel, or Craft CMS templates and outputs all translatable strings into a CSV file. Dragoman also provides the ability to convert a CSV file into PHP and JSON files.\n\n## Installation\n\nInstall the package from NPM:\n\n```bash\nnpm i -D dragomanjs\n```\n\nCreate a `dragoman.config.js` config file:\n\n```javascript\nmodule.exports = {\n    syntax: \"twig\", // currently supports 'twig'\n    lang: [\"es-MX\", \"jp-JA\", \"ca-FR\", \"ko-KR\"], // must be an array of strings\n    content: \"./templates\", // can be an array of template directories\n    output: \"./translations\",\n};\n```\n\nSetup an NPM script to run the CLI:\n\n```json\n\"translate\": \"dragoman\"\n```\n\nRun the NPM script:\n\n```bash\nnpm run translate\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithkyle%2Fdragomanjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithkyle%2Fdragomanjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithkyle%2Fdragomanjs/lists"}