Skip to content

Don't modify files that have no new/changed translations #344

Open
@gnat42

Description

@gnat42
Q A
Bundle version N/A
Symfony version N/A
PHP version N/A

Expected behavior

If I run translation:extract and no changes have occurred the translation files should have been left alone.

Actual behavior

Existing translation files (XLIFF in particular) have an updated timestamp.

When you have multiple domains and locales this becomes a bit annoying to manage in git. We have a project with 3 domains and 6 languages. So get 18 files changed even if only one domain received an update. Not a big deal but kinda annoying. I looked into the updater class and don't see an clear and easy way to exclude them. There is a method to get a changeset but it isn't immediately obvious for me how to remove the domains from the catalogue that don't need to be touched. So I filed a bug to track the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions