Skip to content

chore: add translation contribution docs - #1379

Merged
Mythie merged 1 commit into
mainfrom
chore/translation-contribution-docs
Oct 8, 2024
Merged

Mythie merged 1 commit into
mainfrom
chore/translation-contribution-docs

Conversation

@dguyen

@dguyen dguyen commented Oct 3, 2024 •

Copy link
Copy Markdown
Collaborator

Description

Add documentation for contributing translations.

Summary by CodeRabbit

  • New Features

    • Introduced a new documentation page for "Contributing Translations" to guide users on contributing translations.
    • Added a new metadata file to enhance the documentation structure.
  • Improvements

    • Updated the "Contributing Guide" to "Getting Started" for better clarity and engagement, with reorganized content for easier navigation.

@vercel

vercel Bot commented Oct 3, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
prd-app 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 5:15am
prd-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 5:15am
prd-marketing 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 5:15am
stg-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 5:15am
stg-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 5:15am
stg-marketing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 5:15am

@coderabbitai

coderabbitai Bot commented Oct 3, 2024 •

Copy link
Copy Markdown
Contributor

Walkthrough

This pull request introduces a new JSON metadata file for documentation and adds a new page focused on contributing translations to the Documenso project. The existing "Contributing Guide" is restructured and retitled to "Getting Started," enhancing clarity about the contribution process. The changes aim to provide better guidance for users interested in contributing translations, including detailed instructions and resources.

Changes

File Path Change Summary
apps/documentation/pages/developers/contributing/_meta.json New JSON file created with metadata for documentation, including "Getting Started" and "Contributing Translations."
apps/documentation/pages/developers/contributing/contributing-translations.mdx New documentation page added to guide users on contributing translations, detailing the process and file structure.
apps/documentation/pages/developers/contributing/index.mdx Title changed from "Contributing Guide" to "Getting Started"; description updated and content reorganized for clarity.

Possibly related PRs

  • chore: add translations #1327: The changes in this PR involve adding translations, which directly relates to the new documentation page on contributing translations introduced in the main PR.

Poem

🐇 In the garden of code, we hop and play,
With translations blooming, come join the fray!
From guides to steps, we’ll show you the way,
Together we’ll build, make Documenso sway!
So grab your tools, let your voice be heard,
In this vibrant community, spread the word! 🌼


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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 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.

@github-actions

github-actions Bot commented Oct 3, 2024 •

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions for pull request titles! 💚🚀

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (5)
apps/documentation/pages/developers/contributing/contributing-translations.mdx (2)

1-12: LGTM! Consider a minor grammatical improvement.

The frontmatter and introduction provide clear and concise information about contributing translations. The use of the Callout component enhances readability.

Consider adding a comma after "Currently" on line 10 for improved readability:

-We are always open for help with translations! Currently we utilise AI to generate the initial translations for new languages, which are then improved over time by our awesome community.
+We are always open for help with translations! Currently, we utilise AI to generate the initial translations for new languages, which are then improved over time by our awesome community.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~10-~10: A comma may be missing after the conjunctive/linking adverb ‘Currently’.
Context: ...always open for help with translations! Currently we utilise AI to generate the initial t...

(SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA)


44-63: Clear contribution guidelines. Consider adding a note about translation quality.

The How to Contribute section provides clear instructions for both updating existing translations and adding new languages. The process is well-defined and easy to follow.

Consider adding a note about the importance of translation quality, especially when refining AI-generated translations. This could encourage contributors to pay attention to nuances and context. For example:

<Callout type="info">
  When refining AI-generated translations, pay close attention to context, idiomatic expressions, and cultural nuances to ensure high-quality, natural-sounding translations.
</Callout>
🧰 Tools
🪛 LanguageTool

[style] ~57-~57: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...est. ### Adding a New Language If you want to add translations for a language that do...

(REP_WANT_TO_VB)

apps/documentation/pages/developers/contributing/index.mdx (3)

Line range hint 13-33: Excellent restructuring of the "Before Getting Started" section!

The use of the <Steps> component greatly improves readability and provides a clear sequence of actions for new contributors. The additional steps offer more comprehensive guidance, and the inclusion of the Contributor License Agreement step is crucial for legal compliance.

Consider adding a brief explanation of why accepting the Contributor License Agreement is important. This could help contributors understand its significance in the open-source contribution process.


Line range hint 52-93: Excellent restructuring of the "Developing" section!

The use of the <Steps> component greatly improves the clarity of the development process. The detailed steps provide comprehensive guidance for contributors, and the branch naming convention example is particularly helpful for maintaining consistency.

Consider adding a note about the importance of keeping commits small and focused, with clear and descriptive commit messages. This practice can greatly facilitate the review process and maintain a clean project history.


Line range hint 95-110: Great addition of the "Building" section!

Emphasizing the importance of successful production builds before pushing code or creating pull requests is crucial for maintaining project quality. The inclusion of the build command is helpful for new contributors, and the reminder about tests and checks reinforces the importance of code quality.

Consider adding a brief mention of any specific tests or checks that are particularly important for this project. This could include running linters, type checks, or specific test suites. For example:

Before finalizing your changes, make sure to:
1. Run the linter: `npm run lint`
2. Check types: `npm run type-check`
3. Run the test suite: `npm run test`

This addition would provide more specific guidance to contributors and help maintain consistent code quality across the project.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between f05b670 and 522b0e2.

📒 Files selected for processing (3)
  • apps/documentation/pages/developers/contributing/_meta.json (1 hunks)
  • apps/documentation/pages/developers/contributing/contributing-translations.mdx (1 hunks)
  • apps/documentation/pages/developers/contributing/index.mdx (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • apps/documentation/pages/developers/contributing/_meta.json
🧰 Additional context used
🪛 LanguageTool
apps/documentation/pages/developers/contributing/contributing-translations.mdx

[uncategorized] ~10-~10: A comma may be missing after the conjunctive/linking adverb ‘Currently’.
Context: ...always open for help with translations! Currently we utilise AI to generate the initial t...

(SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA)


[style] ~23-~23: In American English, abbreviations like “etc.” require a period.
Context: ...des (en for English, de for German, etc). Each language folder contains three P...

(ETC_PERIOD)


[uncategorized] ~25-~25: Loose punctuation mark.
Context: ...er contains three PO files: 1. web.po: Translations for the web application 2....

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~37-~37: Loose punctuation mark.
Context: ...rüfen Sie Documenso.</0>" ``` - msgid: The original text in English (never edi...

(UNLIKELY_OPENING_PUNCTUATION)


[style] ~57-~57: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...est. ### Adding a New Language If you want to add translations for a language that do...

(REP_WANT_TO_VB)

🔇 Additional comments (6)
apps/documentation/pages/developers/contributing/contributing-translations.mdx (4)

19-42: Excellent overview of the translation file structure!

The Overview section provides a clear and comprehensive explanation of how translation files are organized and structured. The inclusion of an example PO file content and the warning about HTML tags are particularly helpful for contributors.

🧰 Tools
🪛 LanguageTool

[style] ~23-~23: In American English, abbreviations like “etc.” require a period.
Context: ...des (en for English, de for German, etc). Each language folder contains three P...

(ETC_PERIOD)


[uncategorized] ~25-~25: Loose punctuation mark.
Context: ...er contains three PO files: 1. web.po: Translations for the web application 2....

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~37-~37: Loose punctuation mark.
Context: ...rüfen Sie Documenso.</0>" ``` - msgid: The original text in English (never edi...

(UNLIKELY_OPENING_PUNCTUATION)


63-67: Great addition of support information!

The inclusion of a direct link to the Discord channel provides an excellent resource for contributors who may need assistance. The use of the Callout component effectively highlights this information.


69-69: Excellent closing statement!

The closing statement effectively expresses gratitude and reinforces the importance of contributors' efforts in making Documenso more accessible globally.


1-69: Excellent documentation for contributing translations!

This new documentation page effectively achieves the PR objective of adding guidance for contributing translations to the Documenso project. The content is well-structured, comprehensive, and uses MDX components to enhance readability. It covers all necessary aspects including an overview of the translation system, detailed contribution processes, and support information.

The document aligns perfectly with the goal of facilitating community involvement in the translation process, making Documenso more accessible globally. The inclusion of information about AI-generated initial translations and the emphasis on community refinement is particularly noteworthy.

Great job on creating this valuable resource for contributors!

🧰 Tools
🪛 LanguageTool

[uncategorized] ~10-~10: A comma may be missing after the conjunctive/linking adverb ‘Currently’.
Context: ...always open for help with translations! Currently we utilise AI to generate the initial t...

(SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA)


[style] ~23-~23: In American English, abbreviations like “etc.” require a period.
Context: ...des (en for English, de for German, etc). Each language folder contains three P...

(ETC_PERIOD)


[uncategorized] ~25-~25: Loose punctuation mark.
Context: ...er contains three PO files: 1. web.po: Translations for the web application 2....

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~37-~37: Loose punctuation mark.
Context: ...rüfen Sie Documenso.</0>" ``` - msgid: The original text in English (never edi...

(UNLIKELY_OPENING_PUNCTUATION)


[style] ~57-~57: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...est. ### Adding a New Language If you want to add translations for a language that do...

(REP_WANT_TO_VB)

apps/documentation/pages/developers/contributing/index.mdx (2)

2-3: Great improvements to the frontmatter!

The updated title "Getting started" is more welcoming and less intimidating for new contributors. The revised description clearly states the purpose of the document and encourages community participation. These changes should help attract and engage potential contributors more effectively.


Line range hint 35-50: Well-structured "Taking Issues" section!

The clear criteria for taking on issues will help prevent conflicts and ensure efficient issue allocation. I appreciate the emphasis on communication and the encouragement to ask for help, as this fosters a supportive community environment.

@Mythie
Mythie merged commit 64ea4a6 into main Oct 8, 2024
@Mythie
Mythie deleted the chore/translation-contribution-docs branch October 8, 2024 03:05

This branch was successfully deployed

4 active deployments
Preview – stg-docs — 522b0e27 Deployed Oct 3, 2024 by vercel[bot]
Preview – stg-marketing — 522b0e27 Deployed Oct 3, 2024 by vercel[bot]
Preview – prd-docs — 522b0e27 Deployed Oct 3, 2024 by vercel[bot]
Preview – stg-app — 522b0e27 Deployed Oct 3, 2024 by vercel[bot]
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