{"id":14975327,"url":"https://github.com/hichemtab-tech/langifylaravel","last_synced_at":"2025-04-29T20:30:57.164Z","repository":{"id":185728577,"uuid":"674011618","full_name":"HichemTab-tech/LangifyLaravel","owner":"HichemTab-tech","description":"LangifyLaravel is a powerful Laravel language generation library that automates the process of creating language files for multilingual support. With just one language file, it generates translations for multiple languages, making localization a breeze.","archived":false,"fork":false,"pushed_at":"2023-08-30T07:04:17.000Z","size":39,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T19:13:18.559Z","etag":null,"topics":["laravel","laravel-framework","laravel-lang","laravel-language","laravel-localization","laravel-multi-language","laravel-package","laravel-php","localization","multilingual","php","php-library","translation"],"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/HichemTab-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-03T00:14:45.000Z","updated_at":"2025-03-22T22:28:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ca8552e-7de5-4a2d-896d-c749838751e6","html_url":"https://github.com/HichemTab-tech/LangifyLaravel","commit_stats":null,"previous_names":["hichemtab-tech/langifylaravel"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HichemTab-tech%2FLangifyLaravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HichemTab-tech%2FLangifyLaravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HichemTab-tech%2FLangifyLaravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HichemTab-tech%2FLangifyLaravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HichemTab-tech","download_url":"https://codeload.github.com/HichemTab-tech/LangifyLaravel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251578335,"owners_count":21612018,"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":["laravel","laravel-framework","laravel-lang","laravel-language","laravel-localization","laravel-multi-language","laravel-package","laravel-php","localization","multilingual","php","php-library","translation"],"created_at":"2024-09-24T13:51:52.602Z","updated_at":"2025-04-29T20:30:56.911Z","avatar_url":"https://github.com/HichemTab-tech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LangifyLaravel\n\nLangifyLaravel is a powerful language generation library for Laravel developers. It simplifies the process of creating multilingual applications by automatically generating language files for various languages based on a single source language (e.g., 'en'). Enjoy effortless localization with LangifyLaravel.\n\n\n## Table of Contents\n\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Example](#example)\n- [Contributing](#contributing)\n- [Authors](#authors)\n- [License](#license)\n\n\n\n## Features\n\n- Generate language files for multiple languages based on a single source language.\n- Command-line tool `langs:generate` to manage language file generation easily.\n- Choose between two generation modes: complete the missing translations or force overwrite existing translations.\n- Progress bar for tracking the language generation process.\n\n## Installation\n\nTo install LangifyLaravel, use Composer:\n\n```bash\ncomposer require hichemtab-tech/langify-laravel\n```\n\n## Usage\n\nOnce installed, you can use LangifyLaravel to generate language files for your Laravel application. Here's an example of how to use it:\n\n1- Create the source language file: Start by creating the language file for your source language (e.g., 'en') with all the string resources you want to translate. This will act as the base for generating other language files.\n\n2- Generate language files: Use the generate command provided by LangifyLaravel to generate language files for other languages. For example, if your source language is 'en', you can run the following command:\n\n```bash\nphp artisan langs:generate en\n```\n\nThis will generate language files for all the languages defined in your application. By default, LangifyLaravel will complete the missing translations in the generated files based on the source language.\n\n### Command options\n\n#### overwrite existing translations\n\nForce overwrite (optional): If you want to force overwrite existing translations in the generated files, you can use the --overwrite option:\n\n```bash\nphp artisan langs:generate en --overwrite\n```\n\nThis will force overwrite existing translations with the ones from the source language.\n\n#### generate language files for specific languages\n\nCustomizing language generation: If you have some languages already created and want to generate translations only for specific languages, you can specify them as a comma-separated list:\n\n```bash\nphp artisan langs:generate en\n\u003e Which languages do you want to generate? (comma separated) fr,es,it\n```\n\nThis will generate language files only for the specified languages (in this case, 'fr', 'es', and 'it').\n\n## Example\n\nAssuming you have already set up the language files for 'en', and you want to generate language files for 'fr', 'es', and 'it', you can use the following command:\n\n```bash\nphp artisan langs:generate en\n```\n\n```bash\n\u003e Which languages do you want to generate? (comma separated) fr,it\n```\n\nYou want to generate language files for 'fr', 'es', and 'it', so you can answer :\n\n```bash\n\u003e fr,es,it\n```\n\n## Contributing\n\nContributions are always welcome!\n\nIf you have any ideas, improvements, or bug fixes, please [open an issue](https://github.com/HichemTab-tech/LangifyLaravel/issues) or [submit a pull request](https://github.com/HichemTab-tech/LangifyLaravel/pulls).\n\n## Authors\n\n- [@HichemTab-tech](https://www.github.com/HichemTab-tech)\n\n## License\n\n[MIT](https://github.com/HichemTab-tech/LangifyLaravel/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhichemtab-tech%2Flangifylaravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhichemtab-tech%2Flangifylaravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhichemtab-tech%2Flangifylaravel/lists"}