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

Add command to rename a key #50

Closed
Boscop opened this issue Mar 24, 2021 · 4 comments
Closed

Add command to rename a key #50

Boscop opened this issue Mar 24, 2021 · 4 comments

Comments

@Boscop
Copy link

Boscop commented Mar 24, 2021

🚀 Feature Proposal

Add command to rename a key

Motivation

When a bunch of keys should be renamed, it's not equivalent to removing the keys and adding them under a new name because then the values of the non-reference languages are deleted.
It would be useful to have a subcommand for renaming keys.
It allows bulk changes much easier.

@adrai
Copy link
Collaborator

adrai commented Mar 24, 2021

Such a feature is only possible if and when the api is extended with that functionality...
Alternatively, with the sync command you can do this, just adapt the files and sync.

@adrai
Copy link
Collaborator

adrai commented Mar 24, 2021

btw: doing first an add in the reference language and then in the target languages and afterwards doing a remove for all languages should already do what you are looking for.

@Boscop
Copy link
Author

Boscop commented Mar 24, 2021

Thanks.

Btw: Shouldn't an add in the reference language automatically add the keys to all languages?
(Just with no values for the non-reference languages.)
But so that the keys show up to translators in locize for non-reference languages.

@adrai
Copy link
Collaborator

adrai commented Mar 24, 2021

No, it does the same as in the UI...

@adrai adrai closed this as completed Mar 24, 2021
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

No branches or pull requests

2 participants