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.
nvm install v10.15.1
yarn
gulp copy_libs
npm install -g firebase-tools
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.
.po
file/translations/source/
using the file name pattern: cp -r app/nl app/es
app/es/index.html
:
const INTERFACE_LANGUAGE = 'nl';
to const INTERFACE_LANGUAGE = 'es';
<script src="https://github.com/m-lab/mlab-speedtest/raw/main/assets/translations/it.js"></script>
<script src="https://github.com/m-lab/mlab-speedtest/raw/main/assets/translations/es.js"></script>
gulp inject
To preview the site locally, we recommend using the Python Simple HTTP Server.
/app
directory and run: python3 -m http.server 8000
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