sanity-io / sanity-plugin-google-translate

Translate your content with Google Translate directly from your Sanity Studio!
MIT License
8 stars 5 forks source link

Add format option. #11

Open aadgrant opened 2 years ago

aadgrant commented 2 years ago

I found I needed to set the format of the translation string to preserve line breaks in the text (my clients can't write html!).

So I've added it in as an option inside the configuration - but it could also be done as an option on the text field itself.

SimeonGriggs commented 1 year ago

Hey @aadgrant, thanks for this PR and sorry I never picked it up for the Studio v2 version of the plugin.

I'm working on releasing the Studio v3 version now. If you'd like to submit again for that version we can merge it in!