Documentation hub for Spark development.
Note This document is intended for people interested in helping the Spark development effort. If you just want to use Spark or integrate it with your system, refer to the Spark usage guide.
If you want to update the documentation, have a look here:
If you want to contribute code you should review the following documents as well:
Additional documents:
- database - installation / setup / usage notes
- Setting your IDE for Spark development
- Spark architecture
- Releases and deployment
- Users roles and permissions
- Drupal Profiles syetm
We use the i18next internationalization library for multi-language support.
The strings are stored in the /locales
folder. The file name is the language code.
- Try to make the Hebrew text gender neutral. If you need to differentiate between genders, use the
_male
or_female
suffixes. - Use variables in the text if needed, don't concatenate strings.
- i18next supports many string operations including formatting, single/plural forms and more. Take a look at i18next documentation.
We use Jade template engine, a language that compiles to HTML, to seperate logic from markup. No more angle brackets!
Read more about Jade Syntax Documentation
Greate Jade to HTML converter Here
You can use i18n in Jade templates. To set an HTML element with a translatable data the general syntax is:
HTML_ELEMENT=t('KEY')
Example:
h1=t('welcome_spark')
Text injection inside attributes:
#{t('KEY')}
Example:
input( data-error="#{t('bad_email')}" )
Spark emails by default are not being sent. If you wish the emails from Spark to go through, set the enable
property in your local config file.
"mail": {
"enabled": true,
},