Features

Widget language

Set the language of the comment widget per site, or override it per page.

The widget's interface (form labels, buttons, status messages, relative dates) is available in English and French.

Site-wide setting

Set the default language under Site settings in the dashboard. This is the right place when your whole site is in one language, which is the common case.

Per-page override

The data-locale attribute on the script tag overrides the site setting:

<script async src="https://connect.hakanai.io/embed.js"
  data-key="YOUR_SITE_KEY"
  data-locale="fr"></script>

Accepted values: en, fr.

This is meant for multilingual sites. If your SSG exposes the current page language in templates, pass it through, for example in Hugo:

data-locale="{{ .Site.Language.Lang }}"

An unknown value falls back to the site setting.

What is translated

Only the widget's own interface strings. Comments are displayed exactly as written, in whatever language their authors used. Email notifications (moderation emails and reply notifications) are currently sent in English.

If you need a language that is not listed, ask. The widget's translation files are small, and adding a language is a reasonable request, not a custom development.

Hakanai • © 2026