Skip to content

I try to ignore the <svg> code but no luck. #21

@marcwales

Description

@marcwales

Hi,

I'm using google sheet to translate my shopify csv files but i'm facing different issues :
1 - The html code is counted as a character even if it's not translated. Exemple : <a href:"http://websiteurl.com" target:"_blank">Hi is counted as 40+ characters instead of 2.
2 - When translating to german, all the decimal (.) are translated to commas (,). Even in code like "<path d="M111.4 295.9c-3.5" it becomes
"<path d="M111,4 295,9c-3,5" which messes up everything.

Here is what i've tried :

  • <path translate="no" this does not stop the word count or the comma problem.
  • =DeepLTranslate(H2;"en";D2;{"tag_handling", "xml"; "ignore_tags", "svg"}) this gives me an error.

If i can add this ignore parameter directly in the scrip i've copied from your doc that would be awesome but i don't know how. I can see this param inside the code :

  • @param {cell range} options Optional. Range of additional options to send with API translation
  • request. May also be specified inline e.g. '{"tag_handling", "xml"; "ignore_tags", "ignore"}'

Hope you can help me.

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions