-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Translation] [Loco] Generate id parameter instead of letting Loco do it #43990
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
Conversation
b9a3310
to
18cfc68
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍🏻
Is there anything "breaking" if the user now switch to the "new" logic? |
As it's already broken for all projects without the asset alias "name", I don't think so. And for all others projects with this asset alias, I made the check of the prefix key to check if the key starts with the domain name or not. To be sure, I will made a test project with and without assay alias and process some tests, I'll let you know. |
93d0550
to
06a9ff1
Compare
06a9ff1
to
1a44526
Compare
Thank you @welcoMattic. |
With this PR we get rid of the auto generated id from Loco (which generate id with dash notation). The counterpart is that we have to iterate over the fetched catalogues to transform the received translation keys, I'm not 100% sure about the performance impact on very large catalogues.