{"id":14974810,"url":"https://github.com/alexstack/laravel-cms-plugin-translator","last_synced_at":"2026-03-04T11:31:32.556Z","repository":{"id":56944865,"uuid":"234808431","full_name":"AlexStack/Laravel-CMS-Plugin-Translator","owner":"AlexStack","description":"Automatically translate content online via Baidu FanYi API or Google Translate API","archived":false,"fork":false,"pushed_at":"2020-01-31T03:01:22.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T04:55:59.592Z","etag":null,"topics":["laravel","laravel6","laravelcms","translate"],"latest_commit_sha":null,"homepage":"https://www.LaravelCMS.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/AlexStack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"license.md","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-18T22:49:02.000Z","updated_at":"2021-10-29T10:49:16.000Z","dependencies_parsed_at":"2022-08-21T07:50:53.783Z","dependency_job_id":null,"html_url":"https://github.com/AlexStack/Laravel-CMS-Plugin-Translator","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2FLaravel-CMS-Plugin-Translator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2FLaravel-CMS-Plugin-Translator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2FLaravel-CMS-Plugin-Translator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2FLaravel-CMS-Plugin-Translator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexStack","download_url":"https://codeload.github.com/AlexStack/Laravel-CMS-Plugin-Translator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240988468,"owners_count":19889509,"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","laravel6","laravelcms","translate"],"created_at":"2024-09-24T13:51:06.775Z","updated_at":"2026-03-04T11:31:32.504Z","avatar_url":"https://github.com/AlexStack.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Translate content online by Baidu AI or Google AI\n\n-   This is an Amila Laravel CMS Plugin\n-   Automatically translate content online via Baidu FanYi API or Google Translate API or Google Translate Free Version\n\n## Install it via the backend\n\n-   Go to the CMS settings page -\u003e Plugin -\u003e search for remote image\n-   Find alexstack/laravel-cms-plugin-translator\n-   Click the Install button\n\n## What the plugin do for us?\n\n-   Translate content online\n-   Add the translate result to the page content\n\n## Install it via command line manually\n\n```php\ncomposer require alexstack/laravel-cms-plugin-translator\n\nphp artisan migrate --path=./vendor/alexstack/laravel-cms-plugin-translator/src/database/migrations\n\nphp artisan vendor:publish --force --tag=translator-views\n\nphp artisan laravelcms --action=clear\n\n```\n\n## How to use it?\n\n-   It's enabled after install by default. You can see a Translator tab when you edit a page.\n\n*   Note: Google translate API not support before 1.0 version.\n\n## How to change the settings?\n\n-   You can change the settings by edit plugin.page-tab-translator\n-   Change the api_provider to baidu or google\n-   Set up app_id and app_key from the baidu or google translate api page. eg.\n\n```json\n{\n    \"blade_file\": \"translator\",\n    \"tab_name\": \"\u003ci class='fas fa-language mr-1'\u003e\u003c/i\u003e__(translator)\",\n    \"php_class\": \"App\\\\LaravelCms\\\\Plugins\\\\Translator\\\\Controllers\\\\TranslatorController\",\n    \"api_provider\": \"baidu\",\n    \"app_id\": \"201911000357\",\n    \"app_key\": \"cX6xUKysHBXaH\"\n}\n```\n\n## Where can I get the app_id \u0026 app_key\n\n-   Option 1: Provider Baidu, From https://api.fanyi.baidu.com/, FREE, only 1 translate allowed per second\n\n```json\n{\n    \"api_provider\": \"Baidu\",\n    \"app_id\": \"201911000357\",\n    \"app_key\": \"cX6xUKysHBXaH\"\n}\n```\n\n-   Option 2: Provider Google, Advanced version. NOT SUPPORT YET. From https://cloud.google.com/translate/docs/, Need to pay for what you use, price is \\$20 per million characters in 2020.\n\n```json\n{\n    \"api_provider\": \"google\",\n    \"app_id\": \"AizSxUKysHBsds2\",\n    \"app_key\": \"AizSxUKysHBsds2\"\n}\n```\n\n## Use the free Google translate\n\n-   Set provider to Google_Free\n-   Option 1: Set both app_id \u0026 app_key to google_free_001, then our CMS will use package https://github.com/dejurin/php-google-translate-for-free to do the translate. (It's the default setting after install)\n\n```json\n{\n    \"api_provider\": \"Google_Free\",\n    \"app_id\": \"google_free_001\",\n    \"app_key\": \"google_free_001\"\n}\n```\n\n-   Option 2: Set both app_id \u0026 app_key to google_free_002, then our CMS will use the package https://github.com/Stichoza/google-translate-php to do the translate, YOU NEED INSTALL THE PACKAGE VIA COMMAND LINE FIRST: composer require stichoza/google-translate-php\n\n```json\n{\n    \"api_provider\": \"google_free\",\n    \"app_id\": \"google_free_002\",\n    \"app_key\": \"google_free_002\"\n}\n```\n\n-   Limitations of free Google translate: (1) Google only allows a maximum of 5000 characters to be translated at once. If you want to translate a longer text, you can split it to shorter parts, and translate them one-by-one. (2) 503,429,403 error it is most likely that Google has banned your external IP address and/or requires you to solve a CAPTCHA. This is not a bug in this package. Google has become stricter, and it seems like they keep lowering the number of allowed requests per IP per a certain amount of time. You may need to wait 12-36 hours. [More details](https://github.com/Stichoza/google-translate-php#known-limitations)\n\n## Improve this plugin \u0026 documents\n\n-   You are very welcome to improve this plugin and how to use documents\n\n## License\n\n-   This Amila Laravel CMS plugin is an open-source software licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexstack%2Flaravel-cms-plugin-translator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexstack%2Flaravel-cms-plugin-translator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexstack%2Flaravel-cms-plugin-translator/lists"}