2023-07, you can use the new field
TranslatableContent to get the type of the translatable content.
type field gives more information about the underlying translatable content which enables the ability to conditionally render UI elements such as input fields.
Learn more about the
LocalizableContentType object on Shopify.dev