Skip to content

Latest commit

 

History

40 Commits

Folders and files

Repository files navigation

Tactility Web Installer

This is the website front-end to for flashing ESP32 devices with Tactility.

Development

Before you can build the project, make sure you:

  • Installed NodeJS
  • Run npm install

Continuous building with local web server:

npm run start -- --port 3000

Building static files into dist/:

npm run build

Hiding devices

To keep devices off the website, add their identifiers to src/hidden-devices.json:

["lilygo-tdeck", "m5stack-cores3"]

Hidden devices don't show up for any version, and links like #lilygo-tdeck won't select them.

Translations

The installer is available in English, German, Spanish, French, Japanese, Korean, Simplified Chinese and Traditional Chinese. All texts are in src/i18n.js, the language names and page metadata in src/languages.json.

tactilityproject.org has no French or Korean pages yet, so those languages link to its English pages ("website": false in languages.json).

English is at the root, the other languages have their own path, e.g. https://install.tactilityproject.org/de/#lilygo-tdeck. The language is picked in this order:

  1. The path, e.g. /de/. The root is English only when nothing below asks for another language.
  2. The lang query parameter, e.g. https://install.tactilityproject.org/?lang=de#lilygo-tdeck. The translated pages of tactilityproject.org link with it.
  3. The language picked in the language menu (remembered in the browser).
  4. The browser's preferred languages. Chinese for Taiwan, Hong Kong and Macau (zh-TW, zh-HK, zh-MO) and zh-Hant get Traditional Chinese (/zh-tw/), other Chinese gets Simplified Chinese (/zh/).
  5. English.

The address then changes to the path of that language, e.g. /?lang=de becomes /de/.

Device warnings and notes come from the firmware index on the CDN and are not translated.

Deployment

Pushing to main builds the site and deploys it to GitHub Pages with the Deploy workflow.

License

GNU General Public License Version 3

Releases

Packages

Used by

Contributors

Languages