mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-11-22 17:15:05 +00:00
14
How to add languages
seriousm4x edited this page 2025-08-18 15:32:11 +02:00
- 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.