GithubHelp home page GithubHelp logo

multilingual javascript about ml4a.github.io HOT 1 OPEN

ml4a avatar ml4a commented on July 2, 2024
multilingual javascript

from ml4a.github.io.

Comments (1)

micuat avatar micuat commented on July 2, 2024

@genekogan in this branch I added i18next library for multilingual javascript (only for simple forward pass demo with en/fr by google translate): master...micuat:js-multilng

One observation is that, in the branch above I naively moved all the variables to be input to i18next

set_text_panel(parent.description_panel_div,
	i18next.t('segment7', {in0: y_correct, in1: y_correct.toFixed(2), in2: acts[2][0].toFixed(2), in3: error.toFixed(3)}),
	true);

but maybe latex equations should be formatted before passing to i18next like this

set_text_panel(parent.description_panel_div,
	i18next.t('segment7', {in0: y_correct, in1: '\\begin{aligned} \
	\\text{mse} &= ('+y_correct.toFixed(2)+' - '+acts[2][0].toFixed(2)+')^2 \\\\ \
	\\text{mse} &= '+error.toFixed(3)+' \
	\\end{aligned}'}),
	true);

from ml4a.github.io.

Related Issues (20)

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.