-
-
Notifications
You must be signed in to change notification settings - Fork 3k
feat: add Dhivehi (Thaana) language support with RTL and Faruma font (@raslaan-dev) #7368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
raslaan-dev
wants to merge
10
commits into
monkeytypegame:master
Choose a base branch
from
raslaan-dev:main
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
23972a7
feat: add Dhivehi (Thaana) language support with RTL and Faruma font
raslaan-dev e81010a
Merge branch 'master' into main
raslaan-dev efecffb
Update frontend/static/languages/dhivehi.json
raslaan-dev a86d9a0
Update frontend/vite.config.ts
raslaan-dev b74fe0c
Update backend/.npmrc
raslaan-dev 1a78685
Update frontend/.npmrc
raslaan-dev 6e6f10f
Update frontend/src/ts/utils/strings.ts
raslaan-dev cf263dd
Update packages/schemas/src/languages.ts
raslaan-dev 6ab6caa
fix: remove dhivehi_1k and dhivehi_30k, keep only dhivehi (200 words)
raslaan-dev caa4e7c
Merge branch 'master' into main
raslaan-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| # Monkeytype Local Setup Guide | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - **Node.js 24.11.0** (or 22.21.0) - Install from https://nodejs.org/ or use nvm | ||
| - **PNPM 9.6.0** - Run: `npm install -g pnpm@9.6.0` | ||
| - **Docker Desktop** - Install from https://www.docker.com/get-started/ | ||
| - **Git** - Install from https://git-scm.com/ | ||
|
|
||
| ## Setup Steps | ||
|
|
||
| ### Step 1: Clone the Repository | ||
|
|
||
| ```bash | ||
| git clone https://github.com/monkeytypegame/monkeytype.git | ||
| cd monkeytype | ||
| ``` | ||
|
|
||
| ### Step 2: Install Dependencies | ||
|
|
||
| ```bash | ||
| pnpm install | ||
| ``` | ||
|
|
||
| _Note: If you get Node version errors, create `.npmrc` files with `engine-strict=false` in root, backend, and frontend directories._ | ||
|
|
||
| ### Step 3: Configure Backend | ||
|
|
||
| ```bash | ||
| # Copy environment file | ||
| copy backend\example.env backend\.env | ||
|
|
||
| # The .env file already has MODE=dev set, which is what you need | ||
| ``` | ||
|
|
||
| ### Step 4: Create Firebase Config (Optional) | ||
|
|
||
| Create `frontend/src/ts/constants/firebase-config.ts`: | ||
|
|
||
| ```typescript | ||
| export const firebaseConfig = { | ||
| apiKey: "", | ||
| authDomain: "", | ||
| projectId: "", | ||
| storageBucket: "", | ||
| messagingSenderId: "", | ||
| appId: "", | ||
| }; | ||
| ``` | ||
|
|
||
| _Leave empty for development without authentication features._ | ||
|
|
||
| ### Step 5: Start Databases | ||
|
|
||
| ```bash | ||
| cd backend | ||
| npm run docker-db-only | ||
| ``` | ||
|
|
||
| _This starts MongoDB (port 27017) and Redis (port 6379) in Docker containers._ | ||
|
|
||
| ### Step 6: Start Backend Server | ||
|
|
||
| Open a new terminal: | ||
|
|
||
| ```bash | ||
| cd backend | ||
| npm run dev | ||
| ``` | ||
|
|
||
| _Backend will run on http://localhost:5005_ | ||
|
|
||
| ### Step 7: Start Frontend | ||
|
|
||
| Open another new terminal: | ||
|
|
||
| ```bash | ||
| npm run dev-fe | ||
| ``` | ||
|
|
||
| _Frontend will run on http://localhost:3000_ | ||
|
|
||
| ### Step 8: Open Application | ||
|
|
||
| Visit **http://localhost:3000** in your browser! | ||
|
|
||
| ## Quick Start Commands | ||
|
|
||
| After initial setup, you only need: | ||
|
|
||
| 1. `cd backend && npm run docker-db-only` (start databases) | ||
| 2. `cd backend && npm run dev` (start backend) | ||
| 3. `npm run dev-fe` (start frontend) | ||
|
|
||
| ## Troubleshooting | ||
|
|
||
| **Node version error?** | ||
|
|
||
| - Use `nvm use 24.11.0` or create `.npmrc` files with `engine-strict=false` | ||
|
|
||
| **Backend won't connect to database?** | ||
|
|
||
| - Ensure Docker Desktop is running | ||
| - Check databases are running: `docker ps` | ||
|
|
||
| **Firebase error on frontend?** | ||
|
|
||
| - This is normal if you haven't set up Firebase | ||
| - You can still use all typing features without authentication | ||
|
|
||
| **Port already in use?** | ||
|
|
||
| - Stop other processes using ports 3000, 5005, 27017, or 6379 | ||
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.