Script to translate a quarto doc and output to a new language #10585
                  
                    
                      DOH-FAA3303
                    
                  
                
                  started this conversation in
                Show and Tell
              
            Replies: 1 comment
-
| woops! i made this from the wrong github account and cant recreate the post :( if you want to collaborate or have a question, this is my personal github account. feel free to message! | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm sure someone else has done this, but if not, here's a workflow for translating the language of your quarto doc. I loved what @maelle created here and I was hoping this workflow could work in conjunction with the babelquarto package to do the actual translating and creation of the language qmd files.
here is the blog post summarizing everything
summary
lightparserpackage to parse a qmdlightparserdoes the work convert the translated dataframe back into a new qmd filethe qmd on the left gets translated to spanish on the right - 🔥
edit- i'm aware that babeldown can do the translating for you, but it requires a DeepL api. I wasn't able to utilize their free api without creating an account and adding a credit card. Plus, they have limits to their free api. I wanted to try and simplify things by using hugging face transformers and avoiding any credit card hassle.
Beta Was this translation helpful? Give feedback.
All reactions