mokey icon indicating copy to clipboard operation
mokey copied to clipboard

Add support for multiple languages with configurable translations. Updated README with configuration instructions

Open tubby1981 opened this issue 11 months ago • 0 comments

Translations

mokey supports multiple languages for its interface and email templates.

To configure translations:

  1. Place translation files in /etc/mokey/translations/. For example:
  • english.toml for English translations
  • dutch.toml for Dutch translations
  1. 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.

tubby1981 avatar Jan 06 '25 19:01 tubby1981