{"id":41132110,"url":"https://github.com/symvaro/artisan-lang-utils","last_synced_at":"2026-01-22T18:32:08.020Z","repository":{"id":57063846,"uuid":"222258237","full_name":"symvaro/artisan-lang-utils","owner":"symvaro","description":"Useful tools to export/import or edit your laravel language strings.","archived":false,"fork":false,"pushed_at":"2025-07-14T14:33:22.000Z","size":83,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-19T17:38:41.713Z","etag":null,"topics":["laravel","localization","po"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/symvaro.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-17T14:11:15.000Z","updated_at":"2025-07-14T14:33:25.000Z","dependencies_parsed_at":"2024-05-07T08:47:30.205Z","dependency_job_id":null,"html_url":"https://github.com/symvaro/artisan-lang-utils","commit_stats":{"total_commits":84,"total_committers":4,"mean_commits":21.0,"dds":0.1071428571428571,"last_synced_commit":"529771be77c4c894ac998f77206cd1d1598dd2b1"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/symvaro/artisan-lang-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symvaro%2Fartisan-lang-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symvaro%2Fartisan-lang-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symvaro%2Fartisan-lang-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symvaro%2Fartisan-lang-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symvaro","download_url":"https://codeload.github.com/symvaro/artisan-lang-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symvaro%2Fartisan-lang-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28668106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T17:07:18.858Z","status":"ssl_error","status_checked_at":"2026-01-22T17:05:02.040Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["laravel","localization","po"],"created_at":"2026-01-22T18:32:07.376Z","updated_at":"2026-01-22T18:32:08.013Z","avatar_url":"https://github.com/symvaro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"This package contains artisan commands to import/export and work with \nlanguage resources.\n\n# Install\n\n```\ncomposer require --dev symvaro/artisan-lang-utils\n```\n\n# Use\n\n__Warning:__ The artisan lang commands will alter the language files\nwhen used for editing or import. That means that:\n \n * every content except keys and values will be removed (e.g. comments), \n * variables will be replaced with their values and \n * nested array structures will be flattened.\n \nTherefore it's recommended to use these tools only in combination with a VCS!\n\n## Export/Import\n\nTo export the languages strings in the supported formats use the command like:\n\n```\nphp artisan lang:export --language=en --format=po filename.po\n```\n\nIf the filename is omitted, stdout will be used and if no language parameter is specified, the\ndefault language will be used. The following formats are currently supported: tsv (default), \njson, po and resource, where resource is a laravel lang folder. The tsv format contains \na tab separated key message pair for every row. The control characters `\\n, \\t, \\\\, \\r\\n` are\nescaped with `\\ `.\n\nThe import command line api is similarly structured like the export.\n\n```\nphp artisan lang:import --language=en --format=po filename\n```\n\nIt will read from stdin, if no filename is specified. There is also \nthe `--replace-all` option, which will remove language strings,\nif they are not present in the import file.\n\n## Edit\n\nAvailable commands to ease editing of language strings:\n\n * Add or replace (`lang:add {--l|language=} {?key}`)\n * Removing (`lang:remove {?key}`)\n\n## Examples\n\nThe commands can be combined with common shell utils. The tsv format is especially supporting this. For example to\n__list all non unique messages__ you can use this:\n\n```sh\n./artisan lang:export \\\n    | awk -F\"\\t\" '{ print $2 }' \\\n    | sort | uniq -c | sort -rn \\\n    | grep -vE \"^[ ]*1\"\n```\n\n# Contributing\n\nThis library will only consist of sound tools to import/export and help editing your language files in the command\nline. Feature requests or contributions out of this scope will not be accepted. Test cases for your special\ncases or bugs are very appreciated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymvaro%2Fartisan-lang-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymvaro%2Fartisan-lang-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymvaro%2Fartisan-lang-utils/lists"}