{"id":16182524,"url":"https://github.com/lorenzo/cakephp-lokalise","last_synced_at":"2025-03-19T02:30:45.443Z","repository":{"id":62519115,"uuid":"81941987","full_name":"lorenzo/cakephp-lokalise","owner":"lorenzo","description":"A CakePHP utility shell to upload translation templates to Lokalise.co and download the translated strings","archived":false,"fork":false,"pushed_at":"2017-02-14T14:03:32.000Z","size":9,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T14:06:40.173Z","etag":null,"topics":["cakephp","cakephp-plugin","cakephp3","i18n","lokalise","translations"],"latest_commit_sha":null,"homepage":null,"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/lorenzo.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":"2017-02-14T12:12:59.000Z","updated_at":"2019-11-20T20:40:56.000Z","dependencies_parsed_at":"2022-11-02T13:31:54.333Z","dependency_job_id":null,"html_url":"https://github.com/lorenzo/cakephp-lokalise","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzo%2Fcakephp-lokalise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzo%2Fcakephp-lokalise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzo%2Fcakephp-lokalise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzo%2Fcakephp-lokalise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lorenzo","download_url":"https://codeload.github.com/lorenzo/cakephp-lokalise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960449,"owners_count":20375101,"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":["cakephp","cakephp-plugin","cakephp3","i18n","lokalise","translations"],"created_at":"2024-10-10T06:33:36.640Z","updated_at":"2025-03-19T02:30:45.184Z","avatar_url":"https://github.com/lorenzo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CakePHP Plugin for Lokalise.co\n\n[Lokalise](https://lokalise.co) is a service that helps you translated your application strings and keep a track of how those translations\nchange. The idea of this plugin is that you can upload the translation strings to this services, then after\ntranslating them, download the translations and put them in the right directories for each locale.\n\n## Installation\n\nFirst add the plugin to composer\n\n```sh\ncomposer require lorenzo/lokalise\n```\n\nThen activate the plugin\n\n```\nbin/cake plugin load Lokalise\n```\n\nFinally add your project id and lokalise API token to `app.php`\n\n```php\n// config/app.php\n...\n\n'Lokalise' =\u003e [\n    'project' =\u003e 'your project id',\n    'api_token' =\u003e 'the api token as provided by lokalise'\n]\n```\n\n## Usage\n\nYou first need to run the `i18n extract` that is provided by CakePHP. This task will find all call for the\n`__()` of functions and generate at least one `.pot` file in the `src/Locale` folder\n\n\n```sh\nbin/cake i18n extract\n```\n\nOnce this process is done, you can push your translations to lokalise. You need to be explicit about the locales\nyou want to create/update in lokalise:\n\n\n```sh\nbin/cake lokalise push --locales en_US,fr_FR,pt_BR\n```\n\nYou can now go to your lokalise dashboard and translated all the strings. In order to see the tranlated strings in\nyour applicaiton, you need to download them back:\n\n\n```sh\nbin/cake lokalise pull\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florenzo%2Fcakephp-lokalise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florenzo%2Fcakephp-lokalise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florenzo%2Fcakephp-lokalise/lists"}