Skip to content

Docs: Add file paths to the new language guide#7454

Merged
sriramveeraghanta merged 2 commits intomakeplane:previewfrom
merrime-n:patch-1
Jul 24, 2025
Merged

Docs: Add file paths to the new language guide#7454
sriramveeraghanta merged 2 commits intomakeplane:previewfrom
merrime-n:patch-1

Conversation

@merrime-n
Copy link
Contributor

@merrime-n merrime-n commented Jul 22, 2025

Description

The documentation on Adding new languages references language definition and configuration files without showing their full paths. This can be confusing for contributors, who then have to search the repository to find the correct files, adding unnecessary friction to the process.

Solution

This change adds the full, project-relative paths as comments directly within the code blocks. This provides immediate context and helps contributors locate the files quickly and without ambiguity.

Before:
// types/language.ts
export type TLanguage = "en" | "fr" | "your-lang";
After:
// packages/i18n/src/types/language.ts
export type TLanguage = "en" | "fr" | "your-lang";

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

12

Test Scenarios

References

Summary by CodeRabbit

  • Documentation
    • Improved the clarity and formatting of instructions for adding a new language.
    • Corrected step numbering and updated file paths in code examples.
    • Standardized code block formatting and language annotations.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 22, 2025

Walkthrough

The CONTRIBUTING.md documentation was updated to standardize step numbering, correct code block annotations, update file path references, and improve formatting consistency. No changes were made to the actual instructions or project logic.

Changes

File(s) Change Summary
CONTRIBUTING.md Standardized step numbering, updated code block language from typescript to ts, corrected file paths, and improved formatting.

Estimated code review effort

1 (~2 minutes)

Poem

A nibble here, a tidy there,
The docs now shine with ordered care.
Paths are true, the steps are neat,
Code blocks trimmed for a tidy seat.
With every hop, the guide’s more clear—
A rabbit’s touch brings cheer! 🐇✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@merrime-n
Copy link
Contributor Author

✅ Improve clarity of file paths for new language guide
✅ Fix the typescript code blocks' appearance

@merrime-n merrime-n marked this pull request as ready for review July 22, 2025 11:16
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
CONTRIBUTING.md (2)

196-201: Add a trailing comma to future-proof the snippet.
A trailing comma after the last object literal ({ label: "Your Language", value: "your-lang" },) minimises diff noise when more languages are appended.

-  { label: "Your Language", value: "your-lang" }
+  { label: "Your Language", value: "your-lang" },

214-221: Consider documenting a dynamic import pattern to reduce switch-case churn.
For growing language lists, the switch statement quickly becomes verbose. Mentioning an alternative keeps the guide future-proof:

private importLanguageFile(language: TLanguage) {
  return import(`../locales/${language}/translations.json`);
}

Even if you keep the current example, a short note about this pattern can steer contributors toward a scalable solution.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5c22a6c and df021e9.

📒 Files selected for processing (1)
  • CONTRIBUTING.md (1 hunks)
🧠 Learnings (1)
CONTRIBUTING.md (1)

Learnt from: janreges
PR: #6743
File: packages/i18n/src/store/index.ts:160-161
Timestamp: 2025-03-11T19:42:41.769Z
Learning: In the Plane project, the file 'packages/i18n/src/store/index.ts' already includes support for Polish language translations with the case "pl".

🧰 Additional context used
🧠 Learnings (1)
CONTRIBUTING.md (1)

Learnt from: janreges
PR: #6743
File: packages/i18n/src/store/index.ts:160-161
Timestamp: 2025-03-11T19:42:41.769Z
Learning: In the Plane project, the file 'packages/i18n/src/store/index.ts' already includes support for Polish language translations with the case "pl".

🔇 Additional comments (1)
CONTRIBUTING.md (1)

189-192: File-path annotation is a welcome clarity boost – looks good.
The inline comment with the full path removes any ambiguity for first-time contributors.

@sriramveeraghanta sriramveeraghanta merged commit 56e4d2c into makeplane:preview Jul 24, 2025
2 of 3 checks passed
lifeiscontent pushed a commit that referenced this pull request Aug 18, 2025
* improve the comprehensiblity of translation contribution docs

* Update CONTRIBUTING.md to fix the code blocks appeareance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants