Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tubby1981
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant