Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Db sync to translation files -Enupal Translate Craft Command #61

Closed
driesbonte opened this issue Dec 1, 2022 · 2 comments
Closed

Db sync to translation files -Enupal Translate Craft Command #61

driesbonte opened this issue Dec 1, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@driesbonte
Copy link

Description

Hi, is there a reverse way to sync db to the php files?
My client has a setup where on every deploy a new server is being created.
Since the translation folder are in the gitignore the translation they don't get to the new environment.
It would be nice to generate these translate files on the basis of the db on next deploy.

Thanks

@andrelopez
Copy link
Member

Hi @driesbonte Here is the info on how to manually sync generate the translate files from the db: https://docs.enupal.com/translate/translate/sync-with-db.html#how-to-sync-translations-into-a-new-environment

For CICD if you run this line of code somewhere (like a custom plugin creating a console command) it will add the sync job to the queue

@andrelopez andrelopez self-assigned this Dec 1, 2022
@andrelopez andrelopez added the question Further information is requested label Dec 1, 2022
@andrelopez andrelopez added the enhancement New feature or request label Aug 30, 2023
andrelopez added a commit that referenced this issue Aug 30, 2023
@andrelopez
Copy link
Member

andrelopez commented Oct 27, 2023

Hi @driesbonte Enupal Translate v3.1.0 now supports the enupal-translate/translate/sync craft command

@andrelopez andrelopez changed the title Db sync to translation files Db sync to translation files -Enupal Translate Craft Command Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants