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

Support "entity:save" command for multilingual websites #6123

Open
joshirohit100 opened this issue Sep 30, 2024 · 1 comment
Open

Support "entity:save" command for multilingual websites #6123

joshirohit100 opened this issue Sep 30, 2024 · 1 comment

Comments

@joshirohit100
Copy link

We have multilingual app

For some requirement we had to change the url alias pattern of a content type. For this, we used entity:save command to just load and save the node and aliases updated fine. But we noticed that aliased didn;t update for other translations of the node.

Normally url_alias alias field shouldn't be translated and hence updating the entity in one language (any language) will update other languages. But in our case, for some reasons, url alias is translated field, means, different languages can have different alias for same node.

Thus something to support in entity (if say pass some language option to handle this)

@weitzman
Copy link
Member

weitzman commented Oct 6, 2024

Assuming you are using pathauto, you could bulk update aliases with drush pathauto:aliases-generate all all.

If anyone wants to take this on, I think we would need to add a --language option and use its value when loading entities.

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

No branches or pull requests

2 participants