Created
July 11, 2024 09:37
-
-
Save JohnRSim/f9fa5dff543494cd350be41d250d29a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Retrieve translations from local storage or use default | |
const storedTranslations = localStorage.getItem('translations'); | |
const translations = storedTranslations ? JSON.parse(storedTranslations) : { | |
"Hello, world!": "Hola, mundo!", | |
"This is a test.": "Esto es una prueba.", | |
// Add more default translations as needed | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment