Skip to content

Does upload_translations avoid overwriting newer translations? #1

@henrik

Description

@henrik

We currently do something we call "the WTI dance" where we are very careful about not removing translations from WTI that we do not yet have locally.

We like the idea of replacing our current routine with this action, but it's not clear to me from the docs what risks it has in this respect. Could you clarify?

Here is an example scenario:

  • Source locale in EN, targets are SV and DE
  • Locally, a dev adds a new key "bar" with both EN and SV translations, but not DE
  • Now, if we would just blindly wti push and then wti push -t, we risk uploading a file that removes or rolls back some translations (say "foo") that were made between our last wti pull and the time that we wti push -t
  • To avoid this, we currently wti pull just before pushing to check that there's nothing new, and we make sure to commit those changes if there is something new.

Does this action handle this kind of scenario robustly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions