Internationalization allows users to translate text in the Quartz interface into various supported languages without needing to make extensive code changes. This can be changed via the locale configuration field in quartz.config.yaml.

The locale field generally follows a certain format: {language}-{REGION}

Quartz’s own strings (page titles of generated pages, dates, …) live in quartz/i18n/locales. Each plugin that shows text (explorer, search, graph, backlinks, …) ships its own translations in its repository, under src/i18n/locales, and picks the one matching locale. A missing locale falls back to en-US.

Interested in contributing?

We gladly welcome translation PRs! To contribute a translation, do the following things:

  1. In the quartz/i18n/locales folder, copy the en-US.ts file.
  2. Rename it to {language}-{REGION}.ts so it matches a locale of the format shown above.
  3. Fill in the translations!
  4. Add the entry under TRANSLATIONS in quartz/i18n/index.ts.

To translate a plugin’s interface, do the same in that plugin’s repository (src/i18n/locales, src/i18n/index.ts).