Comments (5)
Maybe the initial language could be the one of the browser.
from lesbar.club.
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.
from lesbar.club.
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?
from lesbar.club.
Thanks for help 👍
I think that I was not very clear. The change of language should result in two different things.
- The backend should receive that a text is written in a different language. Therefore, we must make the language key of the json which will be send to the server dynamic.
- Translate the UI. At the moment there is nothing implemented to translate the ui. There are two possible ways to implement that.
2.1. Client-Side: Use Javascript to store the different locales and translate everything on the client. After a different language is selected we would change the strings with Javascript and no reload would be necessary. Therefore, we have to do most of the work inindex.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 inindex.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.
from lesbar.club.
-
I will select the language based on the browser. Default will be German.
-
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 :(
from lesbar.club.
Related Issues (12)
- Metrics are displayed for a short time HOT 1
- User selected language
- Propose language of input to user HOT 11
- Send only selected readability metrics HOT 1
- Hyphenation of "einen"
- WSTF1 is used, but WSTF4 is expected HOT 1
- Add README
- Visualize Readability HOT 1
- Add Web Extension
- Improve SEO
- Add Hints HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lesbar.club.