Title: Compile to FormatJS compiled format with `formatphp compile` CLI command · Issue #95 · Skillshare/formatphp · GitHub
Open Graph Title: Compile to FormatJS compiled format with `formatphp compile` CLI command · Issue #95 · Skillshare/formatphp
X Title: Compile to FormatJS compiled format with `formatphp compile` CLI command · Issue #95 · Skillshare/formatphp
Description: Compile to FormatJS compiled format with formatphp compile CLI command We already have the compilation capability built-in to FormatPHP, for validation purposes. We should expose this to users through a formatphp compile command that wor...
Open Graph Description: Compile to FormatJS compiled format with formatphp compile CLI command We already have the compilation capability built-in to FormatPHP, for validation purposes. We should expose this to users thro...
X Description: Compile to FormatJS compiled format with formatphp compile CLI command We already have the compilation capability built-in to FormatPHP, for validation purposes. We should expose this to users thro...
Opengraph URL: https://github.com/Skillshare/formatphp/issues/95
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compile to FormatJS compiled format with `formatphp compile` CLI command","articleBody":"\u003c!--- Provide a general summary of your feature request in the title above. --\u003e\r\n\r\n\u003c!-- Give your feature a short title here. --\u003e\r\n## Compile to FormatJS compiled format with `formatphp compile` CLI command\r\n\u003c!-- Provide a short and clear description of the feature. --\u003e\r\n\r\nWe already have the compilation capability built-in to FormatPHP, for validation purposes. We should expose this to users through a formatphp compile command that works similarly to the formatjs compile command.\r\n\r\nThis will enable sharing the same translation files across front-end and back-end code.\r\n\r\n## Background/problem\r\n\u003c!--\r\nProvide background details to show why this feature is necessary. Is your\r\nfeature request related to a problem? If so, please describe the problem.\r\nProvide as much detail as possible.\r\n--\u003e\r\n\r\nFormatJS has a special compilation step that helps improve performance and efficiency internally, since it's a type of AST for translation strings. You can read more about the `compile` command here:\r\n\r\n- https://formatjs.io/docs/getting-started/message-distribution\r\n- https://formatjs.io/docs/tooling/cli#compilation\r\n\r\nFormatPHP already implements the same AST compilation process in order to validate messages. We need to expose this as a `compile` command to output the AST and save to a file. With this functionality, users could merge their translation files to usethe same ones for front-end and back-end.\r\n\r\n## Proposal/solution\r\n\u003c!--\r\nProvide a short and clear description of the solution you'd like. Include code\r\nexamples, if possible. Feel free to use pseudo-code to show how you think the\r\nfeature should work.\r\n--\u003e\r\n\r\nAdd a `compile` command to the FormatPHP CLI tool that mirrors the functionality of the FormatJS command of the same name: https://formatjs.io/docs/tooling/cli#compilation\r\n","author":{"url":"https://github.com/ramsey","@type":"Person","name":"ramsey"},"datePublished":"2023-08-22T16:06:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/95/formatphp/issues/95"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b9aa15bc-1c91-1219-66a6-ee9316e07f35 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A04:2C494A:A99474:D6515B:697EFA8D |
| html-safe-nonce | cb3dad7c7ceade7283fec67da4d5b2b53f58f39db718ac6c622b839e24276027 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTA0OjJDNDk0QTpBOTk0NzQ6RDY1MTVCOjY5N0VGQThEIiwidmlzaXRvcl9pZCI6IjU4NjM3OTg5MDU0NDcwNTM5NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ae30615a6ca4c7fae45a5b1d3ef182e4fcb863c7025313a4335d0b80d851b90f |
| hovercard-subject-tag | issue:1861770666 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Skillshare/formatphp/95/issue_layout |
| twitter:image | https://opengraph.githubassets.com/282f38b66dcb6a721273f926140371fa154d51c67be5ac28cf264cbe7c20db1a/Skillshare/formatphp/issues/95 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/282f38b66dcb6a721273f926140371fa154d51c67be5ac28cf264cbe7c20db1a/Skillshare/formatphp/issues/95 |
| og:image:alt | Compile to FormatJS compiled format with formatphp compile CLI command We already have the compilation capability built-in to FormatPHP, for validation purposes. We should expose this to users thro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ramsey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/Skillshare/formatphp git https://github.com/Skillshare/formatphp.git |
| octolytics-dimension-user_id | 1062332 |
| octolytics-dimension-user_login | Skillshare |
| octolytics-dimension-repository_id | 421245799 |
| octolytics-dimension-repository_nwo | Skillshare/formatphp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 421245799 |
| octolytics-dimension-repository_network_root_nwo | Skillshare/formatphp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width