Check it out at findwic.com!
- Install Vite+
- Fork the repository and setup a local clone
- Move into your local wicit directory:
cd <yourdirectory>/wicit - Copy the
.env.distfile to a file called.env- Navigate to https://www.mapbox.com/studio/
- Click "New style"
- Select "Classic styles" → "Streets"
- Click "Customize"
- Click "Share"
- In the Production URL section, copy the "Preview only" URL and update the MAPBOX_INTEGRATION_URL parameter in the .env file.
- Setup the app using the relevant instructions above.
- Start the server:
vp dev - Try it out
WICit renders every string through a message catalog, so the app can be read in the languages
Californians actually speak. English (src/js/i18n/locales/en.json) is the source of truth;
lookups fall back to it key by key, so a partial catalog renders translated where it can and
English everywhere else.
The other twelve languages are stubs. The runtime, the switcher, and the catalogs are in place, but no strings have been translated yet.
- Pick a language from the header, or append
?lang=<code>to any URL to link straight into one. The choice is remembered, and the browser's own language is used on a first visit. - To translate, edit the catalog for the language and follow
src/js/i18n/locales/README.md. - To add a language, add an entry to
src/js/i18n/locales.jsand a matching JSON catalog. The switcher, the<html lang>/dirattributes, and number formatting all read that registry.
WICit is free software, and may be redistributed under the MIT-LICENSE.