Coder Social home page Coder Social logo

joanluc / apertium-html-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apertium/apertium-html-tools

0.0 0.0 0.0 14.42 MB

Web application providing a fully localised interface for text/website/document translation, analysis and generation powered by Apertium.

Home Page: http://wiki.apertium.org/wiki/Apertium-html-tools

License: GNU General Public License v3.0

Shell 0.33% Python 3.10% TypeScript 91.74% CSS 4.25% Makefile 0.13% HTML 0.34% Dockerfile 0.11%

apertium-html-tools's Introduction

Apertium Html-tools

Build Status Coverage Status

Apertium Html-tools is a web application providing a fully localised interface for text/document/website translation, analysis, and generation powered by Apertium. Html-tools relies on an Apertium HTTP API such as Apertium-apy or ScaleMT (to a lesser extent). More information along with instructions for localization is available on the Apertium Wiki.

Configuration

Configure the build by editing config.ts.

Dependencies

Development

Our sources are written in TypeScript.

Development requires installing Node.js and Yarn. After installing both, use yarn install --dev to install JavaScript packages. We use ESLint & Stylelint for linting, Prettier for code formatting and Jest as a test runner.

Runtime

We use a variety of JS libraries at runtime:

To avoid distributing hundreds of JS files, we use esbuild to bundle sources into browser-ready JS.

Building

First, follow the development instructions. Then, running yarn build will output built bundles to dist/. Use --prod to minify bundles. Any web server capable of serving static assets can be pointed directly to dist/.

Alternatively, if you'd like to avoid polluting your host system with build dependencies, use Docker:

docker build -t apertium-html-tools .
docker run --rm -v $(pwd)/dist:/root/dist apertium-html-tools

Contributing

  • Use yarn build --watch to keep dist/ up-to-date with new bundles.
  • Use yarn serve to run a simple Python server which serves dist/ on localhost:8000.
  • Use yarn verify to run the typechecker, linters and tests. See package.json for more granular scripts.

To analyze the bundle size, run a prod build and upload the resulting meta.json file to Bundle Buddy.

We use GitHub Actions to run tests, linting, typechecking, etc. on each commit.

apertium-html-tools's People

Contributors

sushain97 avatar unhammer avatar jonorthwash avatar ftyers avatar share-with-me avatar svineet avatar dependabot[bot] avatar jpjpjpopop avatar shardulc avatar tinodidriksen avatar kira-d avatar androbin avatar xavivars avatar juanpabl avatar ryanachi avatar myfrom avatar mortenivar avatar mlforcada avatar maathavanjkr avatar hectoralos avatar satti-hari-krishna-reddy avatar diogoscf avatar roybaer avatar sograce avatar mpqadir avatar havet avatar gramirez-prompsit avatar aditya-prayaga avatar khannatanmai avatar prasanta-hembram 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.