This repository has been archived on 2023-04-23. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Korbs a7043e08d8
2021-10-24 18:40:38 -04:00
src Update french.css 2021-10-24 18:40:01 -04:00 Update 2021-10-24 18:40:38 -04:00
index.html Update index.html 2021-10-24 18:39:40 -04:00

Multi Language with CSS

This example shows how to change to a different language easily and also saving it like a setting (localStorage.getItem). The script that saves the settting is thanks to Divano's light and dark mode repo.

As for the CSS files, this uses <text> and the id set to the text that'll be used on your website/app. CSS will add text by using content: "" with ::before.

Example: HTML

<text id="welcome-home"></text>


text#welcome-home::before {content: "Welcome Home!"}