{"id":26610119,"url":"https://github.com/sandulat/larabels","last_synced_at":"2025-04-09T23:50:20.420Z","repository":{"id":34997583,"uuid":"195042415","full_name":"sandulat/larabels","owner":"sandulat","description":"🌍 Larabels - Laravel localization labels editor 🌏","archived":false,"fork":false,"pushed_at":"2023-01-04T03:35:06.000Z","size":1969,"stargazers_count":11,"open_issues_count":20,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-04T22:01:54.170Z","etag":null,"topics":["labels","labels-editor","laravel","laravel-package"],"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/sandulat.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-03T11:43:00.000Z","updated_at":"2024-06-01T11:34:59.000Z","dependencies_parsed_at":"2023-01-15T11:44:11.822Z","dependency_job_id":null,"html_url":"https://github.com/sandulat/larabels","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandulat%2Flarabels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandulat%2Flarabels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandulat%2Flarabels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandulat%2Flarabels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandulat","download_url":"https://codeload.github.com/sandulat/larabels/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131454,"owners_count":21052819,"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":["labels","labels-editor","laravel","laravel-package"],"created_at":"2025-03-24T01:31:22.651Z","updated_at":"2025-04-09T23:50:20.395Z","avatar_url":"https://github.com/sandulat.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://coltorapps.com/images/larabels.png\" width=\"80%\"\u003e\u003c/p\u003e\r\n\u003cp align=\"center\"\u003e\r\n🌍 Larabels - Laravel localization labels dashboard 🌏\r\n\u003c/p\u003e\r\n\u003cp align=\"center\"\u003e\r\n\u003cimg src=\"https://img.shields.io/packagist/vpre/sandulat/larabels.svg\"\u003e\r\n\u003cimg src=\"https://img.shields.io/github/license/sandulat/larabels.svg\"\u003e\r\n\u003ca href=\"https://twitter.com/intent/follow?screen_name=sandulat\"\u003e\r\n  \u003cimg src=\"https://img.shields.io/twitter/follow/sandulat.svg?style=social\"\u003e\r\n\u003c/a\u003e\r\n\u003cp\u003e\r\n\r\n## About\r\nLarabels is an editor for your Laravel localization files.\r\n\r\nThe main purpose of this package is to allow non-technical\r\npeople commit label updates directly to the repository in development environments. \r\nIt automatically parses all languages by folders from `resources/lang` and all localization files from each language.\r\n\r\nLarabels is built to work exclusively with Git. \r\nAs you've might seen in the screenshot above, we've got 3 buttons fixed to the bottom of screen:\r\n\r\n`Save` - all labels from all languages will be exported to `resources/lang`.\r\n\r\n`Reset` - all the changes exported to `resources/lang` are reverted to original state.\r\n\r\n`Commit \u0026 Push` - all the changes are commited and pushed to `origin HEAD`.\r\n\r\nNote: you (or the server) must have passwordless push access to the repository.\r\n\r\n## Installation\r\n\r\n```shell\r\ncomposer require sandulat/larabels\r\nphp artisan larabels:install\r\n```\r\nThe last command will publish Larabel's service provider, config and public front-end assets.\r\n\r\nNote: to re-publish the front-end assets when updating the package use: `php artisan larabels:publish`\r\n\r\n## Authorization\r\nBy default Larabels will be accessible by anyone in a local environment only. However it provides a customizable gate that\r\nlimits access in production environments. See the `gate()` method inside the published `LarabelsServiceProvider`:\r\n\r\n```php\r\n/**\r\n * Register the Larabels gate.\r\n *\r\n * This gate determines who can access Larabels in non-local environments.\r\n *\r\n * @return void\r\n */\r\nprotected function gate()\r\n{\r\n    Gate::define('viewLarabels', function ($user) {\r\n        return in_array($user-\u003eemail, [\r\n            //\r\n        ]);\r\n    });\r\n}\r\n```\r\n\r\n## Configuration\r\nLarabels works without any additional configuration, however it provides a config (`config/larabels.php`) with these options:\r\n\r\n|Option|Default Value|Description|\r\n|------|-------------|-----------|\r\n|`enabled`|`env('LARABELS_ENABLED', true)`|This option may be used to disable Larabels direct route access. Note: Larabels views will ignore this option so you can include them in your project.|\r\n|`middleware`|`[\\Sandulat\\Larabels\\Http\\Middleware\\Authorize::class]`|These middlewares will be assigned to every Larabels route. Note that in any case Larabels routes implicitly belong to the \"web\" middleware.|\r\n|`whitelist`|`[]`|This value determines which localization files should be included in the dashboard. Files will be loaded from `/resources/lang/{locale}`. Use file names without extension: `auth`, `pagination`, `validation`, `passwords`, etc. Leave empty to load all files.|\r\n|`path`|`/larabels`|This value determines the base route path where the dashboard will be  accessible from.|\r\n\r\n## Customization\r\nIf you would like to include the Larabels editor view directly into your personal dashboard, set the environment option `LARABELS_ENABLED` to `false` to disable direct access to the Larabels route. Now add `@include('larabels::app')` wherever you'd like.\r\n\r\nLarabels is splitted into partials so you can easily cutomize the look. Inside the path `resources/views` create the folder `vendor/larabels`.\r\n\r\nNow you can override the default Larabels views:\r\n- `components/card.blade.php`\r\n- `partials/action_buttons.blade.php`\r\n- `partials/container.blade.php`\r\n- `partials/label.blade.php`\r\n- `partials/locale_button.blade.php`\r\n\r\n## Credits\r\n\r\nCreated by [Stratulat Alexandru](https://twitter.com/sandulat).\r\n\r\n\u003ca href=\"https://coltorapps.com/\"\u003e\r\n  \u003cimg src=\"https://coltorapps.com/images/logo_transparent.png\" width=\"150px\"\u003e\r\n\u003c/a\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandulat%2Flarabels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandulat%2Flarabels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandulat%2Flarabels/lists"}