I'm looking to make my HTML, CSS, and JavaScript website multilingual, but I want to do it without relying on any third-party libraries or APIs. Is there a straightforward method to achieve this?
1 Answer
You can create a folder named "locales" and place separate JSON files for each language inside it, like "en.json". Each JSON file should have the same keys but different values for the respective languages. This way, you can use the text from the JSON files instead of hardcoding the content.

Just remember that if you want to improve SEO and user experience, you'll need some sort of templating to generate different HTML for each language.