torarnehave1 / slowyouio

0 stars 0 forks source link

Language support #20

Open torarnehave1 opened 3 months ago

torarnehave1 commented 3 months ago

//how would you have solved it to have several languages? on the server side or on the client side? //I would have solved it on the client side, by adding a button that changes the language of the page.
//I would have created a JSON file for each language, and I would have added the translations in each file. //I would have created a function that changes the language of the page when the button is clicked. //I would have used the function to change the text of the page to the corresponding language.