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

Feature: Add option overwrite-default #54

Merged
merged 3 commits into from
Mar 24, 2020

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

Sorry, something went wrong.

@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.

None yet

2 participants