-
-
Notifications
You must be signed in to change notification settings - Fork 141
How to add languages
seriousm4x edited this page Aug 18, 2025
·
14 revisions
- Fork this repo and clone your fork
- Create your own branch named
add-i18n-LANG
. Example
git switch -c add-i18n-en
- Go to frontend/translations/ and create a new file called
LANG.json
. Example:en.json
- Do all the translations for the new language. (Take a look at existing translations and copy where needed)
- Add your new locale to the project.inlang settings.
- Open frontend/src/lib/stores/locale.ts, import your new locale at the top from date-fns and add it to the switch statement. Preferably in alphabetical order.
- Add the corresponding flag emoji in the account page
- Run format and lint:
pnpm run format
pnpm run lint
- If no warnings/errors show up, commit, push and create a pull request.