Hi, is it possible to disable automatic translations done by onCreatePage?
Currently, the plugin is doing a deletePage + createPage for each locale in onCreatePage, if we have pre-translated content (say a page from a headless cms) that needs to only exist on a given locale, right now we need to fake an intl object in page.context which would stop the plugin from duplicating the page.
if not, would a PR be accepted to add a flag that prevents the automatic translations? for example, by adding language to a page, the plugin could assume this page belongs to the passed-in language only and shouldn't attempt to translate?
Hi, is it possible to disable automatic translations done by
onCreatePage
?Currently, the plugin is doing a
deletePage
+createPage
for each locale inonCreatePage
, if we have pre-translated content (say a page from a headless cms) that needs to only exist on a given locale, right now we need to fake anintl
object inpage.context
which would stop the plugin from duplicating the page.is there a cleaner way to do this?
if not, would a PR be accepted to add a flag that prevents the automatic translations? for example, by adding
language
to a page, the plugin could assume this page belongs to the passed-in language only and shouldn't attempt to translate?any better ideas?