Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating translations in given path #6

Open
juanPabloMiceli opened this issue Oct 18, 2021 · 5 comments
Open

Creating translations in given path #6

juanPabloMiceli opened this issue Oct 18, 2021 · 5 comments

Comments

@juanPabloMiceli
Copy link

Is there any way of throwing the translations in a path described in the yml file? In my opinion having all these readmes in the root folder is a bit untidy.

@Minionguyjpro
Copy link

Minionguyjpro commented Jan 23, 2022

Try something like this:

      - name: Adding README  - German
        uses: dephraiim/translate-readme@main
        working-directory: ./img
        with:
          LANG: de

This will set the working directory to a folder called "img". If you place an README.md in your directory, i think it translates that one.
If you have a directory in a directory and so on you can do this:

      - name: Adding README  - German
        uses: dephraiim/translate-readme@main
        working-directory: ./img/png
        with:
          LANG: de

@glenn-jocher
Copy link

@Minionguyjpro what if I have README.md in my root directory but I want to keep all translated versions in a subdirectory, i.e.:

- README.md
- subdir
  - README.zh.md
  - README.de.md
  - README.es.md

Is there a way to handle this in the YAML?

@ephraimduncan
Copy link
Owner

Subdirectories are not supported yet.

It keeps translated version in the same directory as the main file

@glenn-jocher
Copy link

@dephraiim ok got it, thank you!

@namitad
Copy link

namitad commented Sep 22, 2023

@dephraiim has this enhancement been added?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants