Added the function getLanguage() which detects the language of the browser
on line 49 was necessary to replace - with _ because some browser define the language using -
Added a dictionary with the translation from de to en
Added the function translate() which translates the page
Tested:
[X] Chrome
[X] Brave
[X] Firefox
[ ] Safari
[ ] Edge
[ ] Opera
To-fix:
[ ] On Chrome there is little graphic glitch that shows the metrics when the page is loaded
Issue: #4
Modified the file
index.js
getLanguage()
which detects the language of the browser on line49
was necessary to replace-
with_
because some browser define the language using-
de
toen
translate()
which translates the pageTested:
To-fix: