Giter Site home page Giter Site logo

Comments (4)

chriswendt1 avatar chriswendt1 commented on June 24, 2024

Passing a folder to 'doctr translate' will translate the files in the given folder. It will not recurse into the subfolders.
image

Does this match your observations?

We can treat as a feature request to recurse into the subfolders, maybe as an option. As you observed, putting the translated files or folder tree back into the original folder tree will cause confusion. I would in this case create the target folder on the same level as the source folder: ..

from documenttranslation.

mcgrovia avatar mcgrovia commented on June 24, 2024

Thank you Chris. I was getting an error that the folder was excluded due to type mismatch (the whole thing), then an error that credentials were missing (I don't get this error when running a file). Your confirmation that this should work helped me dig further. The issue may have been that the folder was copied from a mapped google drive folder (directly to a local folder). Some retained folder attribute was causing issues I think. When i copied the same files into a new folder (same local parent), passing the folder worked without issue (and no credential error). Regarding recursion, I made a workaround via batch (getting better at it now) to skip the \en folder. I also had it check for the existence of each file in \en before trying to translate a file in the parent to avoid translating something already completed (to maintain a 'current' translated folder with new files added to the structure). Thanks!

from documenttranslation.

chriswendt1 avatar chriswendt1 commented on June 24, 2024

Thanks for the update. Let me know if you need a change to the behavior of the document translation client.

from documenttranslation.

mcgrovia avatar mcgrovia commented on June 24, 2024

Thank you I will.

from documenttranslation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.