You can contribute in many ways to this project via pull requests.
All translations are key-based and hosted in JSON file named after the ISO 639-1 code under the i18n folder.
Directory structure is associated with the respective section.
i18n
|-- admin
| |-- en.json
| `-- it.json
|-- frontend
| |-- en.json
| `-- it.json
|-- manual
| |-- en.json
| `-- it.json
`-- wizard
|-- en.json
`-- it.json
To add a new translation:
- Add a new ISO 639-1 file to each directory inside
i18ncopying a file likeen.jsonand changing the keys. - Edit
config.jsonand add a new language code, e.g.{"code": "ja", "name": "日本語"} - Create a pull request
Frontend theme is based on Foundation.
Here an example to how to change css in themes/ folders:
- On development environment, go to theme directory
- Change theme files (e.g. app.sass)
- ./build.sh
- Theme is changed accordingly to sass
You can also add a new theme copying the directory inside themes/ and changing .mustache template accordingly.
Icon list can be selected between those available on Semantic UI and saved on /public/js/icons.json.
However, list of icons can be generated visiting the Icon section of Semantic UI and using this code on browser console:
var src = jQuery(".main").find(".icon");
var myt = [];
jQuery.each(src, function (icoindex) {
myt.push(jQuery(this).attr("class").replace(' icon', ''));
});
var uniquet = Array.from(new Set(myt.sort()));
var myels = [];
for (u of uniquet) {
myels.push({
title: u + '<i class="' + u + ' icon"></i>'
});
}
JSON.stringify(myels, null, ' ');
Then expand and copy object to get a JSON array.
Semantic UI Icons are available on wizard searching by class name.
These steps are useful when the Semantic UI version is changed.