serge icon indicating copy to clipboard operation
serge copied to clipboard

[Question] Are there any examples (e.g. GitLab CI)?

Open matzeeable opened this issue 3 years ago • 0 comments

Hey!

We want to introduce Continuous Localization to our project, and I stumbled over this promising tool. I think I have understood the main concepts:

  • Serge for Translation Management and syncing with VCS (in our case GIT)
  • Zing for UI

Now, I would be happy to hear some thoughts how we can implement this to our existing GIT repository (GitLab) and implement it within our CI/CD. We have multiple .po files inside it (not in .gitignore, they should be synced, correct?). My initial thoughts are as this:

  • In our CI/CD we have a job to build our application (build)
  • We want to add a job that extracts strings to .pot,.po,.mo (for this, we are using wp i18n make-pot)
  • We need to somehow tell Serge to obtain the new strings? Or do we need to push the newly created .pot files to our VCS? Does this not often lead to merge conflicts?
  • We are doing some translation via Zing
  • Serge pushes back the .pot,.po,.mo files to our GIT repository
  • The next time the build runs, it uses the new translations

Do you have any example how this could work with a CI/CD? Unfortunately I did not find anything in your documentation.

Regards, Matthew 😊

matzeeable avatar Jun 11 '21 10:06 matzeeable