How to translate a webpage with JavaScript and cookie [on hold]

61
February 13, 2019, at 00:10 AM

I want to add a cookie to my JavaScript translation function, so that the language is stored in a session each time the user changes it.

My JSFiddle: https://jsfiddle.net/e7skfjqj/

Has anyone an approach for this?

I tried to combine with this cookie solution, but it failed due to the JS generation of the selection menu.

READ ALSO
how can I take user permission once and use it throughout the electron app?

how can I take user permission once and use it throughout the electron app?

I am creating an electron app where I need to scan and update files which need root permissionI know I can run such commands using sudo

64
Browser accepts “classic” js script-tag, but not ES6 modules — MIME error w/ Node http server

Browser accepts “classic” js script-tag, but not ES6 modules — MIME error w/ Node http server

I want to play with ES6 modules, so I decided on using Node as a simple web server to avoid all CORS related errors I first encountered when doing it locallyNow I get MIME type related errors in the browser which I can't quite grasp

69