Giter Site home page Giter Site logo

Comments (5)

mikebarkmin avatar mikebarkmin commented on August 19, 2024 1

Maybe the initial language could be the one of the browser.

from lesbar.club.

mikebarkmin avatar mikebarkmin commented on August 19, 2024 1
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.

Abelarm avatar Abelarm commented on August 19, 2024

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.

mikebarkmin avatar mikebarkmin commented on August 19, 2024

Thanks for help 👍

I think that I was not very clear. The change of language should result in two different things.

  1. 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.
  2. 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 in 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.

from lesbar.club.

Abelarm avatar Abelarm commented on August 19, 2024
  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 :(

from lesbar.club.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.