Making translatable field not translatable

keevitaja - 3 months ago

In a module i have a field which is translatable. How can i make it not translatable? Is there a migration for it perhaps?

Answer

- 3 months ago

Currently - because of the table structure there is only removing the field and re-adding it as non (or translated if starting as non).

The way I plan on tackling this in core is stashing the values - making the migration - then reapplying the values.

ryanthompson - 3 months ago

Currently - because of the table structure there is only removing the field and re-adding it as non (or translated if starting as non).

The way I plan on tackling this in core is stashing the values - making the migration - then reapplying the values.

keevitaja - 3 months ago

OK tnx. Is there a migration for the field removal?

ryanthompson - 3 months ago

You can use the fields repository / assignments repository to do it programmatically within a migration.