Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 1.86 KB

File metadata and controls

68 lines (50 loc) · 1.86 KB

Contributing to Typing Genius SDK

Thank you for your interest in contributing! This SDK is designed to be a global repository for typing content in any language.

🔗 Useful Links

🚀 Getting Started

  1. Fork and Clone:

    git clone https://github.com/Typing-Genius/typing-genius-sdk.git
    cd typing-genius-sdk
    npm install # or pnpm install / yarn install / bun install
  2. Validate Content:

    npm run validate # or pnpm validate / yarn validate / bun validate

✏️ Adding Content

We welcome content contributions for all languages.

Adding Quotes

Open content/{lang_code}/quotes.json and add your quote:

{
  "text": "Quote text in the target language.",
  "author": "Author Name",
  "source": "Optional Source"
}

Adding Words

Open content/{lang_code}/words/{difficulty}.json and add to the list:

{
  "language": "xx",
  "difficulty": "easy",
  "words": ["word1", "word2"]
}

🌍 Adding a New Language

  1. Create Directory: content/{iso_code}/
  2. Add Metadata: Create _meta.json with language details (name, code, contributors).
  3. Add Content: Create quotes.json and words/*.json files.
  4. Register: Add the language to src/languages.ts.

📏 Guidelines

  • Quotes: Inspirational or educational, diverse lengths, proper attribution.
  • Words: Real words, standard spelling. "Easy" (3-4 chars), "Medium" (5-6 chars), "Hard" (7+ chars).
  • Global: We accept content in any language and script.

📤 Submitting

  1. Create a branch: git checkout -b add-lang-{code}
  2. Commit and Push.
  3. Open a Pull Request.

Thank you for contributing! 🎉