mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 21:16:21 +00:00
36e4cc41a9
* checkpoint * finish * docs
1 KiB
1 KiB
title |
---|
Internationalization |
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.ts
.
The locale field generally follows a certain format: {language}-{REGION}
{language}
is usually a 2-letter lowercase language code.{REGION}
is usually a 2-letter uppercase region code
[!tip] Interested in contributing? We gladly welcome translation PRs! To contribute a translation, do the following things:
- In the
quartz/i18n/locales
folder, copy theen-US.ts
file.- Rename it to
{language}-{REGION}.ts
so it matches a locale of the format shown above.- Fill in the translations!
- Add the entry under
TRANSLATIONS
inquartz/i18n/index.ts
.