matheushjs / mjsaldanha.com

Source code of my webpage.
Other
2 stars 0 forks source link

Find a way to localize pages statically (by preprocessing) #213

Open matheushjs opened 4 years ago

matheushjs commented 4 years ago

Nunjucks has an option to change the tags {{}}.

We could use different tags for translation strings, and preprocess using these tags only.

matheushjs commented 4 years ago

I'm leaning towards using python's beautifulsoup to parse files and translate

We could mark elements to translate with a class elf-translate

    <div class="elf-translate ...">
         ...
    </div>