Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,23 @@ Understand how joins work by interacting and see it visually
* `cd Visual-JOIN`
* `npm install`
* `npm run dev`



## Adding a new language

To add a new language:

1. Create a file under `src/i18n/locales/` (see `pt.ts` as an example).

2. Implement all required keys from the `Translations` type.

3. Register the locale in `src/i18n/types.ts`:

```ts
export const SUPPORTED_LOCALES = ['en', 'es', 'fr', 'de', 'sv', 'pt'] as const

export const LOCALES = {
...
pt: 'Português',
}