GithubHelp home page GithubHelp logo

tallguysfreeadmin / mlab-speedtest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from m-lab/mlab-speedtest

0.0 0.0 0.0 1.88 MB

[Alpha] Repository of the Interface and Project for speed.measurementlab.net

Home Page: https://speed.measurementlab.net

License: Apache License 2.0

HTML 24.75% JavaScript 34.02% CSS 41.23%

mlab-speedtest's Introduction

speed.measurementlab.net source code

mlab-speedtest is an Angular.js application providing the website https://speed.measurementlab.net. The app code currently uses gulp to integrate language localizations prior to deployment.

Setting up Local Development Environment

Install Build Dependencies

  • Install website build dependencies for your operating system and environment
    • Node >= v10.15.1 - Using NVM: nvm install v10.15.1
    • Bower - npm install -g bower
    • Gulp -
    • Firebase tools - npm install -g firebase-tools

Adding new languages

Translations for this site are managed in the Open Technology Fund's Localization Lab Transifex site. Contributing translators may choose to translate and/or review translations there. Completed translations are then imported for use within this application and published by M-Lab staff.

How to add a new localization

  • Download a completed language translation file
    • Visit the Transifex site and locate a completed language
    • Click Interface Language Strings and then Download for use to download the completed language .po file
    • Save it in the folder: /translations/source/ using the file name pattern: .po
  • Create new language template & update language string references
    • Create a copy of an existing translation folder and index.html file, and make some edits to support the new language
      • Copy the folder and index file: cp -r app/nl app/es
      • Edit the index file to change the language it references. In app/es/index.html:
        • change: const INTERFACE_LANGUAGE = 'nl'; to const INTERFACE_LANGUAGE = 'es';
        • change: <script src="/assets/translations/it.js"></script>
      • to: <script src="/assets/translations/es.js"></script>
    • Regenerate the supported language strings:
      • gulp inject

Previewing site locally

To preview the site locally, we recommend using the Python Simple HTTP Server. Navigate to the /app directory and run:

  • python -m http.server 8000 (Python 3.x)
  • python -m SimpleHTTPServer (older versions)

If you are a user on the M-Lab Firebase project, you can also preview the site locally using the firebase-cli: firebase serve --only hosting:mlab-speedtest

mlab-speedtest's People

Contributors

collina avatar nkinkade avatar tallguysfreeadmin 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.