{"id":16563802,"url":"https://github.com/jameshemery/laravel-json-translation-loader","last_synced_at":"2025-04-12T22:29:58.723Z","repository":{"id":56996190,"uuid":"184648932","full_name":"JamesHemery/laravel-json-translation-loader","owner":"JamesHemery","description":":speech_balloon: A Laravel package to improve the loading of the JSON translation.","archived":false,"fork":false,"pushed_at":"2020-01-21T11:27:08.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T16:38:37.812Z","etag":null,"topics":["i18n","json","laravel","laravel-package","php"],"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/JamesHemery.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":"2019-05-02T20:42:52.000Z","updated_at":"2022-11-30T07:46:24.000Z","dependencies_parsed_at":"2022-08-21T14:10:16.905Z","dependency_job_id":null,"html_url":"https://github.com/JamesHemery/laravel-json-translation-loader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesHemery%2Flaravel-json-translation-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesHemery%2Flaravel-json-translation-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesHemery%2Flaravel-json-translation-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesHemery%2Flaravel-json-translation-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JamesHemery","download_url":"https://codeload.github.com/JamesHemery/laravel-json-translation-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248639684,"owners_count":21137890,"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":["i18n","json","laravel","laravel-package","php"],"created_at":"2024-10-11T20:42:19.965Z","updated_at":"2025-04-12T22:29:58.702Z","avatar_url":"https://github.com/JamesHemery.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-json-translation-loader\n[![Travis](https://img.shields.io/travis/JamesHemery/laravel-json-translation-loader.svg?style=for-the-badge)](https://travis-ci.org/JamesHemery/laravel-json-translation-loader)\n[![Total Downloads](https://img.shields.io/packagist/dt/jamesh/laravel-json-translation-loader.svg?style=for-the-badge)](https://packagist.org/packages/jamesh/laravel-json-translation-loader)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)](https://raw.githubusercontent.com/JamesHemery/laravel-json-translation-loader/master/LICENSE)\n\nThis package will allow you to load JSON translation files for groups and namespaces. By default Laravel only allows you to load php files for groups and namespaces translations.\n\n## Installation\n\nYou can install the package via composer:\n\n\tcomposer require jamesh/laravel-json-translation-loader\n\nAfter install package, you should replace Laravel's translation service provider in `config/app.php`\n```php\nlluminate\\Translation\\TranslationServiceProvider::class,\n```\n\nBy the service provider of this package:\n```php\nJamesh\\JsonTranslationLoader\\TranslationServiceProvider::class,\n```\n\n## Usage\n\n#### Register a namespace\n\nIn your service provider:\n```php\npublic function boot()\n{\n    $this-\u003eapp['translator']-\u003eaddNamespace('my-namespace', __DIR__ . '/my-custom-lang-directory');\n}\n```\n\n## Unit tests\n\nTo run the tests, just run `composer install` and `composer test`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameshemery%2Flaravel-json-translation-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjameshemery%2Flaravel-json-translation-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameshemery%2Flaravel-json-translation-loader/lists"}