3ru / gpt-translate

💬Translate Files into Any Languages with AI
https://g-t.vercel.app
MIT License
187 stars 34 forks source link

page-structure not inherited #20

Closed makeitr3al closed 1 year ago

makeitr3al commented 1 year ago

do you have any idea how to inherit the page-tree when translating the content?

I tried to translate the whole directory with an issue-comment but it doesn't inherit the whole path from original path.

3ru commented 1 year ago

@makeitr3al I don't understand your problem. Please tell me the command you tried to execute, the expected result, and the actual result.

makeitr3al commented 1 year ago

maybe this image helps to understand what I mean:

image

here you can see the source-file is located in "EN/01-or-core/" directory. But the output then gets stored directy i.e. in "DE/".

3ru commented 1 year ago

@makeitr3al

Understood. I see that your preference here is you want to save it in DE/01-or-core/.

Currently, directory paths cannot be inherited, so I will add a feature to allow this.

makeitr3al commented 1 year ago

@3ru yes exactly. But there's no preference, it's just an example to show you what I like to do.

Phantastic! Thanks a lot.

3ru commented 1 year ago

@makeitr3al

I have included an experimental release that allows directory inheritance. Created a PR, please try it!

makeitr3al commented 1 year ago

@3ru Thanks a lot! Will try it

makeitr3al commented 1 year ago

@3ru It seems to work well. I now delete all files that are made in the wrong directory, then all repositories are fine. Can I use the same changes in the .yml file for translation by issue-comment?

3ru commented 1 year ago

@makeitr3al Currently, the command does not allow directory inheritance. Reflecting the same changes in yml is fine, but ineffective.

makeitr3al commented 1 year ago

@3ru Sometimes when files or directories have been deleted it occurs an error because of missing files. Also when I recreate the exact same file on the exact same position I don't get the job rerunned successfully.

And a feature to translate the whole directory by an issue comment would be phantastic (for example to add a new language).

all other things are working very good! Much apreciated to have you! :)

3ru commented 1 year ago

@makeitr3al Thanks for the feedback!

It may take a little time due to my hospitalization schedule, but I will investigate and make improvements:)

makeitr3al commented 1 year ago

@3ru you're welcome!

Oh I hope nothing serious... get well soon then!