Skip to content

Translations

Flavio F Lima edited this page Nov 24, 2026 · 6 revisions

Heroic is available in several languages listed in the README. You can help by translating.

How to translate Heroic?

We use Weblate. Open an account, translate the three main components (Global, Login, GamePage) and commit your changes.

Rules:

  1. New languages require 100% coverage to be accepted.
  2. Languages below 90% coverage are removed until updated to 100%.

Link to Weblate

How to add new translatable strings?

Heroic uses i18next and i18next-parser.

Add the string in your code

import { useTranslation } from 'react-i18next';

const SomeComponent = () => {
  const { t } = useTranslation();
  const myTranslatedString = t('some_key.my_key', 'My Default Value');
};

Guidelines:

  • Check public/locales for existing key groups.
  • Use _ to separate multi-word keys (snake_case).
  • Do not edit translations manually; use the next step.

Extract the keys

Run pnpm i18next (or yarn i18next). The parser updates all language files listed in i18next-parser.config.js.

Clone this wiki locally