{"id":13396285,"url":"https://github.com/themsaid/laravel-langman","last_synced_at":"2025-05-14T21:10:25.779Z","repository":{"id":6208281,"uuid":"55088784","full_name":"themsaid/laravel-langman","owner":"themsaid","description":"Language files manager in your artisan console.","archived":false,"fork":false,"pushed_at":"2024-03-30T09:13:29.000Z","size":158,"stargazers_count":879,"open_issues_count":49,"forks_count":168,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-06T13:08:03.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/themsaid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-03-30T18:50:26.000Z","updated_at":"2025-01-02T08:49:00.000Z","dependencies_parsed_at":"2024-06-18T11:20:27.844Z","dependency_job_id":null,"html_url":"https://github.com/themsaid/laravel-langman","commit_stats":{"total_commits":200,"total_committers":12,"mean_commits":"16.666666666666668","dds":"0.29000000000000004","last_synced_commit":"27cdaa7eca53a0fe7a54c413285de6112f3166de"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themsaid%2Flaravel-langman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themsaid%2Flaravel-langman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themsaid%2Flaravel-langman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themsaid%2Flaravel-langman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themsaid","download_url":"https://codeload.github.com/themsaid/laravel-langman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741201,"owners_count":21154255,"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-07-30T18:00:43.854Z","updated_at":"2025-04-13T16:10:28.469Z","avatar_url":"https://github.com/themsaid.png","language":"PHP","funding_links":[],"categories":["Popular Packages","PHP"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eLaravel Langman\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\nLangman is a language files manager in your artisan console, it helps you search, update, add, and remove\ntranslation lines with ease. Taking care of a multilingual interface is not a headache anymore.\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003cimg src=\"http://s16.postimg.org/mghfe2v3p/ezgif_com_optimize.gif\" alt=\"Laravel Langman\"\u003e\n\u003cbr\u003e\n\u003ca href=\"https://travis-ci.org/themsaid/laravel-langman\"\u003e\u003cimg src=\"https://travis-ci.org/themsaid/laravel-langman.svg?branch=master\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://styleci.io/repos/55088784\"\u003e\u003cimg src=\"https://styleci.io/repos/55088784/shield?style=flat\" alt=\"StyleCI\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/themsaid/laravel-langman\"\u003e\u003cimg src=\"https://poser.pugx.org/themsaid/laravel-langman/v/stable.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/themsaid/laravel-langman\"\u003e\u003cimg src=\"https://poser.pugx.org/themsaid/laravel-langman/d/total.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/themsaid/laravel-langman\"\u003e\u003cimg src=\"https://poser.pugx.org/themsaid/laravel-langman/license.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\n\u003c/p\u003e\n\n## Installation\n\nBegin by installing the package through Composer. Run the following command in your terminal:\n\n```\n$ composer require themsaid/laravel-langman\n```\n\nOnce done, add the following line in your providers array of `config/app.php`:\n\n```php\nThemsaid\\Langman\\LangmanServiceProvider::class\n```\n\nThis package has a single configuration option that points to the `resources/lang` directory, if only you need to change\nthe path then publish the config file:\n\n```\nphp artisan vendor:publish --provider=\"Themsaid\\Langman\\LangmanServiceProvider\"\n```\n\n## Usage\n\n### Showing lines of a translation file\n\n```\nphp artisan langman:show users\n```\n\nYou get:\n\n```\n+---------+---------------+-------------+\n| key     | en            | nl          |\n+---------+---------------+-------------+\n| name    | name          | naam        |\n| job     | job           | baan        |\n+---------+---------------+-------------+\n```\n\n---\n\n```\nphp artisan langman:show users.name\n```\n\nBrings only the translation of the `name` key in all languages.\n\n---\n\n```\nphp artisan langman:show users.name.first\n```\n\nBrings the translation of a nested key.\n\n---\n\n```\nphp artisan langman:show package::users.name\n```\n\nBrings the translation of a vendor package language file.\n\n---\n\n```\nphp artisan langman:show users --lang=en,it\n```\n\nBrings the translation of only the \"en\" and \"it\" languages.\n\n---\n\n```\nphp artisan langman:show users.nam -c\n```\n\nBrings only the translation lines with keys matching the given key via close match, so searching for `nam` brings values for\nkeys like (`name`, `username`, `branch_name_required`, etc...).\n\nIn the table returned by this command, if a translation is missing it'll be marked in red.\n\n### Finding a translation line\n\n```\nphp artisan langman:find 'log in first'\n```\n\nYou get a table of language lines where any of the values matches the given phrase by close match.\n\n### Searching view files for missing translations\n\n```\nphp artisan langman:sync\n```\n\nThis command will look into all files in `resources/views` and `app` and find all translation keys that are not covered in your translation files, after\nthat it appends those keys to the files with a value equal to an empty string.\n\n### Filling missing translations\n\n```\nphp artisan langman:missing\n```\n\nIt'll collect all the keys that are missing in any of the languages or has values equals to an empty string, prompt\nasking you to give a translation for each, and finally save the given values to the files.\n\n### Translating a key\n\n```\nphp artisan langman:trans users.name\nphp artisan langman:trans users.name.first\nphp artisan langman:trans users.name --lang=en\nphp artisan langman:trans package::users.name\n```\n\nUsing this command you may set a language key (plain or nested) for a given group, you may also specify which language you wish to set leaving the other languages as is.\n\nThis command will add a new key if not existing, and updates the key if it is already there.\n\n### Removing a key\n\n```\nphp artisan langman:remove users.name\nphp artisan langman:remove package::users.name\n```\n\nIt'll remove that key from all language files.\n\n### Renaming a key\n\n```\nphp artisan langman:rename users.name full_name\n```\n\nThis will rename `users.name` to be `users.full_name`, the console will output a list of files where the key used to exist.\n\n## Notes\n\n`langman:sync`, `langman:missing`, `langman:trans`, and `langman:remove` will update your language files by writing them completely, meaning that any comments or special styling will be removed, so I recommend you backup your files.\n\n## Web interface\n\nIf you want a web interface to manage your language files instead, I recommend [Laravel 5 Translation Manager](https://github.com/barryvdh/laravel-translation-manager)\nby [Barry vd. Heuvel](https://github.com/barryvdh).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemsaid%2Flaravel-langman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemsaid%2Flaravel-langman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemsaid%2Flaravel-langman/lists"}