Screenshot of Eleventy Multilingual

Introduction

Eleventy-multilingual starter is a project template designed for creating multilingual websites using Eleventy, a static site generator. This starter is based on Jérôme Coupé's blog post about building multilingual sites with Eleventy. It includes a language switcher and an index page that detects the user's browser language to display an appropriate "enter website" message.

Main Features

  • Multilingual support built-in
  • Language switcher functionality
  • Browser language detection for initial page load
  • Raw CSS file included (no preprocessor or methodology applied)
  • Pre-configured to work with Forestry, a Git-based CMS
  • Easy to customize and extend

Installation Steps

  1. Clone the repository:

    git clone git@github.com:lea37/eleventy-multilingual.git
    
  2. Navigate to the project directory:

    cd eleventy-multilingual
    
  3. Install dependencies:

    npm install
    
  4. Start the development server:

    npm run serve
    

Usage Instructions

  1. Customize content:

    • Edit files in the src directory to modify pages and layouts
    • Add new languages by creating corresponding directories and files
  2. Modify styles:

    • Edit the raw CSS file to adjust the appearance of your site
  3. Configure Forestry CMS (optional):

    • Import your repository into Forestry for content management
    • Make changes through the Forestry interface, which will be committed back to the repository
  4. Build for production:

    • Run the build command (not specified in the README, likely npm run build)
    • Deploy the generated static files to your hosting platform

Important Notes

  1. The project uses a simple approach to multilingual support, making it easy to understand and modify.

  2. The included CSS is intentionally left as a raw file, allowing developers to implement their preferred styling methodology.

  3. Browser language detection on the index page helps provide a better user experience for international visitors.

  4. The starter is pre-configured for use with Forestry CMS, but this integration is optional.

  5. While the starter provides a solid foundation, developers may need to extend its functionality for more complex multilingual requirements.

  6. Regular updates to Eleventy and other dependencies may be necessary to maintain security and access new features.

  7. Contributors are welcome to improve the starter, as indicated by the open-source nature of the project on GitHub.

  8. For more Eleventy starter examples, users are encouraged to check the list of repositories mentioned in the README.

Eleventy Multilingual

A multilingual eleventy starter based on this post (https://www.webstoemp.com/blog/multilingual-sites-eleventy/)

Theme Information:

Stars : github star36
Forks : github fork2
Updated : 30 Mar, 2020
Published : 18 Mar, 2020
Types :
Eleventy Icon
lea37
Created bylea37