{"id":15578371,"url":"https://github.com/ferdiunal/nova-translations","last_synced_at":"2025-04-24T02:11:37.920Z","repository":{"id":252141827,"uuid":"839551779","full_name":"ferdiunal/nova-translations","owner":"ferdiunal","description":"This package helps you manage translation keys and language files using spatie/laravel-translation-loader. It includes free tools like Google Translate, Bing Translate, and MyMemory Translate, and paid tools like DeepL Translate and NLPCloud Translate. Additional translation tools can be added as needed.","archived":false,"fork":false,"pushed_at":"2024-09-16T19:05:27.000Z","size":673,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-21T07:32:45.925Z","etag":null,"topics":["i18n","language","laravel","laravel-nova","laravel-nova-tool","laravel-translation-manager","php"],"latest_commit_sha":null,"homepage":"https://ferdiunal.tech","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/ferdiunal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["ferdiunal"],"buy_me_a_coffee":"ferdiunal"}},"created_at":"2024-08-07T21:06:07.000Z","updated_at":"2025-02-03T09:57:43.000Z","dependencies_parsed_at":"2024-09-16T09:58:40.974Z","dependency_job_id":"73058c30-c14c-456b-9498-321044e5dd2c","html_url":"https://github.com/ferdiunal/nova-translations","commit_stats":null,"previous_names":["ferdiunal/nova-translations"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferdiunal%2Fnova-translations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferdiunal%2Fnova-translations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferdiunal%2Fnova-translations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferdiunal%2Fnova-translations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ferdiunal","download_url":"https://codeload.github.com/ferdiunal/nova-translations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250546086,"owners_count":21448260,"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","language","laravel","laravel-nova","laravel-nova-tool","laravel-translation-manager","php"],"created_at":"2024-10-02T19:09:47.870Z","updated_at":"2025-04-24T02:11:37.905Z","avatar_url":"https://github.com/ferdiunal.png","language":"PHP","funding_links":["https://github.com/sponsors/ferdiunal","https://buymeacoffee.com/ferdiunal"],"categories":[],"sub_categories":[],"readme":"# Nova Translations - WIP\n\u003cimg src=\"./art/banner.png\" alt=\"ferdiunal/nova-translations\" /\u003e\n\nThis package allows you to find and manage the translation keys and language files in your project using the **[spatie/laravel-translation-loader](https://github.com/spatie/laravel-translation-loader)** package. By default, it includes free translation tools like **Google Translate**, **Bing Translate**, and **MyMemory Translate**, as well as paid tools that offer a certain amount of free usage, such as **DeepL Translate** and **NLPCloud Translate**. You can also add other translation tools as shown in the example below.\n\n## Installation\n\nTo install, run the following command in your project directory:\n\n```bash\ncomposer require ferdiunal/nova-translations\n```\n## Configuration\n\nOptionally, you can publish the migration file using this command:\n\n```bash\nphp artisan vendor:publish --tag nova-translations-migrations\n```\n\nOptionally, you can publish the configuration file using this command:\n```bash\nphp artisan vendor:publish --tag nova-translations-config\n```\n\n## Usage\n\nTo import the translation keys and language files used in your project into a table, you can run the following command. You can use the -T|--translater parameter to specify the supported translation tools for this process.\n\n```bash\nphp artisan nova-translations:import --help\nDescription:\n  Import translations from the language files\n\nUsage:\n  nova-translation:import [options]\n\nOptions:\n  -T, --translater[=TRANSLATER]  The translater to use: google,bing,deepl,mymemory,nlpcloud\n  -h, --help                     Display help for the given command. When no command is given display help for the list command\n  -q, --quiet                    Do not output any message\n  -V, --version                  Display this application version\n      --ansi|--no-ansi           Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction           Do not ask any interactive question\n      --env[=ENV]                The environment the command should run under\n  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n```\n\nThen, update the tools method in the app/NovaServiceProvider file as follows:\n\n```php \n// app/NovaServiceProvider.php\nclass NovaServiceProvider extends NovaApplicationServiceProvider\n{ \n    /**\n     * Get the tools that should be listed in the Nova sidebar.\n     *\n     * @return array\n     */\n    public function tools()\n    {\n        return [\n            ... // Other Nova Tools\n            new NovaTranslations,\n        ];\n    }\n}\n\n```\n\n## Translators\n\n### Google Translate\n\nIf you want to use Google Translate in your project, you need to add the following package:\n\n```bash\ncomposer require stichoza/google-translate-php\n```\n\n### DeepL Translate\n\nIf you want to use DeepL Translate in your project, you need to add the following package:\n\n```bash\ncomposer require deeplcom/deepl-php\n```\n\nThen, add the following key to your environment file:\n```\nDEEPL_API_KEY=xxxxxxxx...\n```\n\n### NLPCloud Translate\n\nIf you want to use NLP Translate in your project, you need to add the following package:\n\n```bash\ncomposer require nlpcloud/nlpcloud-client\n```\n\nThen, add the following key to your environment file:\n\n```\nNLPCLOUD_API_KEY=xxxxxxxx\n```\n\nFor different languages, you need to add the required language code to the config/nova-translations configuration file from [here](https://docs.nlpcloud.com/#translation).\n\n```php\nreturn [\n    ....\n    'services' =\u003e [\n        'nlpcloud' =\u003e [\n            // https://nlpcloud.com/\n            'api_key' =\u003e env('NLPCLOUD_API_KEY'),\n            'languages' =\u003e [\n                // https://docs.nlpcloud.com/#translation\n                // Add the language code you want here\n            ],\n        ],\n    ],\n];\n```\n\n## OTHER NOVA PACKAGES\n\n* [Nova Settings](https://github.com/ferdiunal/nova-settings)\n\n    This package provides an interface for Spatie's settings package in Laravel Nova. It allows you to easily manage your application's configuration settings.\n* [Laravel Nova Media Field](https://github.com/ferdiunal/laravel-nova-media-field)\n\n    This package integrates Spatie's Media Library package with Laravel Nova, allowing you to manage and organize your media files efficiently.\n* [Nova Password Confirm Modal](https://github.com/ferdiunal/nova-password-confirm-modal)\n    \n    This package provides a Nova field that controls the accessibility of encrypted data in the database and is managed by model casts. It ensures that your sensitive data is securely stored.\n\n## Contributing\n\nContributions are welcome, and any contributors must adhere to the project's code of conduct and licensing terms.\n\n## Support\n\nFor support, please open an issue in the GitHub repository.\n\n\n## Licence \n\nThis project is open-sourced software licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferdiunal%2Fnova-translations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fferdiunal%2Fnova-translations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferdiunal%2Fnova-translations/lists"}