Skip to content

Conversation

@testower
Copy link
Contributor

@testower testower commented Oct 4, 2019

What:
Added cli option --overwrite-default, which has default value true.

Why:
Issue #6: If you re-reun extract-messages and output to files that have already been translated, it will overwrite existing translations for the default locale. This option provides an opt-out, so that existing translations are not overwritten.

How:
Added a cli option, which, if set to false, will handle the merging of the messages for the default locale in the same way as the merging of non-default locale messages. I.e. it will only add new keys, not overwrite existing keys.

Checklist:

  • Documentation
  • Tests N/A
  • Ready to be merged
  • Added myself to contributors table

@testower testower force-pushed the feature/opt-out-overwrite branch from 79b4374 to fd67919 Compare October 4, 2019 05:24
@akameco
Copy link
Owner

akameco commented Oct 7, 2019

@testower nice! Please add a test.

@testower
Copy link
Contributor Author

Sorry for the delay. This file does not seem to have a test already, do you have any hint to get started?

@akameco akameco force-pushed the feature/opt-out-overwrite branch from c322a7a to 5c62d8f Compare March 24, 2020 07:24
@akameco akameco merged commit 63c0e11 into akameco:master Mar 24, 2020
@akameco
Copy link
Owner

akameco commented Mar 24, 2020

@testower Thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants