{"id":34623039,"url":"https://github.com/arispati/app-locale","last_synced_at":"2026-04-18T05:05:00.230Z","repository":{"id":56949786,"uuid":"393331698","full_name":"arispati/app-locale","owner":"arispati","description":"Localization for Laravel and Lumen Framework","archived":false,"fork":false,"pushed_at":"2021-08-06T09:54:35.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T06:45:46.173Z","etag":null,"topics":["laravel","localization","lumen"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arispati.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-06T09:48:27.000Z","updated_at":"2023-04-18T07:25:09.000Z","dependencies_parsed_at":"2022-08-21T07:50:16.086Z","dependency_job_id":null,"html_url":"https://github.com/arispati/app-locale","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/arispati/app-locale","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arispati%2Fapp-locale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arispati%2Fapp-locale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arispati%2Fapp-locale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arispati%2Fapp-locale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arispati","download_url":"https://codeload.github.com/arispati/app-locale/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arispati%2Fapp-locale/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31957158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","lumen"],"created_at":"2025-12-24T15:41:17.708Z","updated_at":"2026-04-18T05:05:00.225Z","avatar_url":"https://github.com/arispati.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# App Locale\nLocalization for Laravel and Lumen Framework\n\n## Description\nThis package will set the locale of the application by the request that contains the `App-Locale` attribute in the header\n\n## How to Install\n- Install with composer\n```bash\ncomposer require arispati/app-locale\n```\n\n### Laravel\n- Register the middleware\n```php\n// app/Http/Kernel.php\nprotected $middleware = [\n    // ...\n    \\Arispati\\AppLocale\\Middleware\\AppLocale::class\n];\n```\n\n### Lumen\n- Register the middleware\n```php\n// bootstrap/app.php\n$app-\u003emiddleware([\n    \\Arispati\\AppLocale\\Middleware\\AppLocale::class\n]);\n```\n\n- if you want to use `Facade`\n```php\n// bootstrap/app.php\n\n// Enabled Facade\n$app-\u003ewithFacades(true, [\n    '\\Arispati\\AppLocale\\Facades\\AppLocale' =\u003e 'AppLocale'\n]);\n\n// Register service provider\n$app-\u003eregister(\\Arispati\\AppLocale\\ServiceProvider::class);\n```\n\n## Available Method\n- Set app locale\n```php\nAppLocale::setLocale('id'); // set app locale to 'id' (Bahasa Indonesia)\n```\n\n- Get app locale\n```php\nAppLocale::getLocale();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farispati%2Fapp-locale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farispati%2Fapp-locale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farispati%2Fapp-locale/lists"}