You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered: