ericalli / static-site-boilerplate

A better workflow for building modern static websites.
http://staticsiteboilerplate.com
MIT License
1.74k stars 166 forks source link

Multilingual, SEO-Friendly static website (i18n) #31

Open aviv-or opened 5 years ago

aviv-or commented 5 years ago

Disclaimer: Its probably my fault, because i'm not super familiar with Webpack and NPM. What i'm looking for is a 'easy' way of using this for a multilingual website, where each language is a different webpage / website , and not rendered on the client using a templating language.

So for example: www.domain.com (for english) and www.domain.com/de for German. Each is a different page.

This package seems to do what i was lookin for: https://www.npmjs.com/package/static-i18n

But i'm not sure how to integrate it with webpack / build process.

BenceSzalai commented 3 years ago

This should do the heavy lifting, only need to be configured: https://github.com/BenceSzalai/webpack-static-i18n-plugin