Git Product home page Git Product logo

translation-assistant's Introduction

Translation Assistant

CI codecov

Provides functions that analyze and suggest translations for similar strings based on an existing translation. Powers the Smart Translations feature in Khan Translation Editor.

Auto-Translation of Math Notation

The Translation Assistant also auto-translates certain math notations, per specifications in this Google Sheet this document.

A backup of that document is kept in this repo in MathNotationByLanguage.tsv.

When a new team starts translations, they need to update the document with their math notations, and the rules must be added to MATH_RULES_LOCALES in src/math_translator.js.

The math auto-translation code is also utilized in the Khan Academy Dots browser plugin.

For Devs

Deploying to webapp

This repository is deployed to webapp by referencing a specific Git commit in webapp/package.json.

To test the webapp build, use:

yarn run build:webpack-prod-local

To test the integration with the Translation Editor, use:

yarn test javascript/manticore-package/

Deploying to Khan Academy Dots plugin

If you update the math auto-translation functionality in src/math-translator.js, you should also publish a new version of the Khan Academy Dots plugin, which uses this repository as a Git submodule. Please follow the guidelines in the repo README.

Tests and test coverage

To run the tests:

npm run build && npm run test

To run the tests with test coverage, and report the results as text:

npm run build:coverage && npm run test:coverage

Git blame

To ignore eslint style-guide commits in blame history, use:

git blame --ignore-revs-file .git-blame-ignore-revs

or to do it automatically:

git config blame.ignoreRevsFile .git-blame-ignore-revs

translation-assistant's People

Contributors

danielhollas avatar gonadarian avatar kevinbarabash avatar mpolyak avatar

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.