mokey
mokey copied to clipboard
Add support for multiple languages with configurable translations. Updated README with configuration instructions
Translations
mokey supports multiple languages for its interface and email templates.
To configure translations:
- Place translation files in /etc/mokey/translations/. For example:
- english.toml for English translations
- dutch.toml for Dutch translations
- Update the configuration file /etc/mokey/mokey.toml with the following options:
#Default language for the site #Languages supported: English (english), Dutch (dutch) #Default is english default_language = "dutch"
#Directory where translations can be placed translations_dir = "/etc/mokey/translations"`
Users can translate mokey into their own language by creating a new .toml file in the translations_dir and referencing it in the default_language configuration. This allows for complete customization of the interface and email templates in the preferred language.