Closed mikebarkmin closed 4 years ago
Maybe the initial language could be the one of the browser.
Hi,
I would like to work on this.
I'll start with getting the language from browser.
(does the UI automatically change if, for example en_GB
is selected?
Thanks for help :+1:
I think that I was not very clear. The change of language should result in two different things.
index.js
.
2.2 Server-Side: Use Flasks template engine to translate strings. After a different language is selected we need to refresh the page and send the language information to flask. Therefore, we have to do most of the work in index.html
and __init__.py
I do not prefer one solution over the other. So it is up to you. But I will of course help you, if you are stuck or need some advice.
1) I will select the language based on the browser. Default will be German.
2) I think, since right now, there are only two language involved and the amount of text is really small (I count just 9 strings) the client-side option can be a good choice.
In both case I need a translation of the strings, since I don't speak German :(
de | en |
---|---|
Text | Text |
Überprüfen | Check |
Gib den zu prüfenden Text hier ein... | Enter the text to be checked here... |
Zeichen | Characters |
Buchstaben | Letters |
Silben | Syllables |
Sätze | Sentences |
Wörter | Words |
Flesch-Reading-Ease, Wienersachtext-Formel-4 and Lesbarkeitsindex are names of the metrics. So need to translate them.
Allow to select a different language. The backend supports at the moment english and german. The supported languages should be fetch from the backend.