-
Notifications
You must be signed in to change notification settings - Fork 134
Localization of web pages
The web front pages are built by 'grunt'. Please check the readme in the directory for detail.
https://github.com/vitotai/BrewPiLess/tree/master/htmljs
To add localization of the pages, a translation file is necessary. The format of translation file is JSON. A simple and good way to begin is copying the english.json and starting from it.
https://github.com/vitotai/BrewPiLess/tree/master/htmljs/src/locales
It's better to make sure that everything will work before you start translating. So, you can copy the copy the english.json to another file, and run the following procedure first.
-
Put the the file, say wakanda.json, in "locales" subdirectory.
-
modify gruntfile.coffee. Find around line 167:
multi_lang_site_generator:
default:
options:
vocabs: ['english','chinese','spanish']
vocab_directory: 'src/locales'
output_directory: 'dist'
Add the language to be added, in the same name as the json file.
multi_lang_site_generator:
default:
options:
vocabs: ['english','chinese','spanish', 'wakanda']
vocab_directory: 'src/locales'
output_directory: 'dist'
- Run grunt by
grunt i18n
- if everything goes well, there will be a 'wakanda' subdirectory in "dist" path.
If you don't understand this page so far, but you can and are willing to do the translation, just translate the json file and send it to me. (Or, submit an issue with attached translated file, I guess.)
Wiki is deprecated. Check doc directory for latest document. https://github.com/vitotai/BrewPiLess/tree/master/doc
- Hardware Setup
- Localization of web frontend
- Flash layout and New Frontend
- Software Installation
- WiFi Setup
- System Setup
- Device Setup
- Using Buttons & Menu
- Temperature Logging
- Cloud Logging
- Beer Profile
- iSpindel Support
- Manual Gravity Logging
- Use with Glycol
- Auto Capping(Spunding)
- MQTT Remote Control
- Pressure Monitor and Control
-
Other URLs
- Clear WiFi setting
- Format file system
- OTA update
- Overwrite pages
-
JSON Commands
- Temperature Unit
- Sensor Calibration
- FAQ