Skip to main content

Contributing

Contributions are welcome. Here are the ways you can help.

Ways to Contribute

TypeDescription
TranslationsAdd a new language — see guide below
Bug ReportsOpen an issue with reproduction steps
Feature RequestsShare ideas via GitHub Issues
Pull RequestsFix bugs or implement new features

Contribution Guidelines

# 1. Fork and clone
git clone https://github.com/<your-fork>/keycloak-2fa-email-authenticator.git

# 2. Create a feature branch
git checkout -b feature/my-improvement

# 3. Commit
git commit -m 'Add my improvement'

# 4. Push and open a PR
git push origin feature/my-improvement

Code standards:

  • Follow existing code style and conventions
  • Add comments only for non-obvious logic
  • Update docs when changing behavior
  • Test your changes before submitting

Adding a Translation

  1. Copy the English file:

    cd src/main/resources/theme-resources/messages/
    cp messages_en.properties messages_<lang>.properties
  2. Translate all values — do not change the keys:

    # German example
    resendCode=Code erneut senden
    emailOtpForm=Bitte geben Sie den {0}-stelligen Code ein, der an Ihre E-Mail-Adresse gesendet wurde.
  3. Build and verify:

    mvn clean package

    Deploy to Keycloak, switch browser language, confirm all messages display correctly.

  4. Create a PR with branch name add-<lang>-translation.

Existing Translations

LanguageCodeFile
Englishenmessages_en.properties
Turkishtrmessages_tr.properties
Frenchfrmessages_fr.properties
Italianitmessages_it.properties
Spanishesmessages_es.properties
Danishdamessages_da.properties
Germandemessages_de.properties
Russianrumessages_ru.properties
Azerbaijaniazmessages_az.properties
Arabicarmessages_ar.properties
Chinese (Traditional)zh_TWmessages_zh_TW.properties

Resources