{"id":20930086,"url":"https://github.com/level-level/clarkson-wp-cli-twig-translations","last_synced_at":"2025-05-13T18:32:42.695Z","repository":{"id":56605678,"uuid":"97126370","full_name":"level-level/clarkson-wp-cli-twig-translations","owner":"level-level","description":"Smart WP-CLI command to cache the Twig templates so they can be read by PoEdit","archived":true,"fork":false,"pushed_at":"2025-03-17T12:03:13.000Z","size":1117,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T21:48:30.372Z","etag":null,"topics":[],"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/level-level.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-13T13:36:18.000Z","updated_at":"2025-03-17T12:03:31.000Z","dependencies_parsed_at":"2024-05-03T12:58:04.867Z","dependency_job_id":"7e8dbea7-53b8-469d-a0cc-b969e42ffdcc","html_url":"https://github.com/level-level/clarkson-wp-cli-twig-translations","commit_stats":{"total_commits":21,"total_committers":4,"mean_commits":5.25,"dds":"0.19047619047619047","last_synced_commit":"6f6512e2b517458433ded0b4850fb0a3d4b79d7f"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level-level%2Fclarkson-wp-cli-twig-translations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level-level%2Fclarkson-wp-cli-twig-translations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level-level%2Fclarkson-wp-cli-twig-translations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level-level%2Fclarkson-wp-cli-twig-translations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/level-level","download_url":"https://codeload.github.com/level-level/clarkson-wp-cli-twig-translations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254003431,"owners_count":21997887,"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":[],"created_at":"2024-11-18T21:28:53.900Z","updated_at":"2025-05-13T18:32:42.674Z","avatar_url":"https://github.com/level-level.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clarkson WP-CLI Twig Translation commando\n\n## ⚠️ Abandoned\n\nThis package is abandoned due to incompatibility with Twig version 3.12+.\nYou may use `timber/wp-i18n-twig` instead.\n\n### Replacement instructions\n\n1. `composer remove level-level/clarkson-wp-cli-twig-translations`\n2. `composer require timber/wp-i18n-twig`\n3. If in your composer.json file you have commands set up to run this package, remove every line that starts with `wp clarkson-twig-translations`\n4. If in your composer.json file you have commands set up to run the WP-CLI`wp i18n make-pot` command, change the `wp` prefix to `./vendor/wp-cli/wp-cli/bin/wp`\n5. `composer update --lock`\n\n## What \nParses all Twig files in your current themes `templates` directory to `.php` files. \n\n## How \n\n1. Install package via `composer require level-level/clarkson-wp-cli-twig-translations`.\n\n1. Run `wp clarkson-twig-translations prepare-files` which dumps rendered `.php` files in a `dist` directory in your current active theme.\n\n1. Make sure your PoEdit `.pot` or `.po` file configuration loads this `dist` folder when it updates from source like   `\"X-Poedit-SearchPath-1: dist/rendered-templates\\n\"`\n\n## Why\nFree PoEdit doesn't scans Twig files. If you do want PoEdit to do this, buy the Pro version.\n\n\n## Filters\n\n- `clarkson_twig_translations_cache_path` alters the location where to parse to. \n- `clarkson_twig_translations_templates_path` alters the location where the `templates` are located in.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevel-level%2Fclarkson-wp-cli-twig-translations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevel-level%2Fclarkson-wp-cli-twig-translations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevel-level%2Fclarkson-wp-cli-twig-translations/lists"}