Skip to content
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

📚 Doc: Improve translation #2899

Merged
merged 6 commits into from
Mar 5, 2024
Merged

📚 Doc: Improve translation #2899

merged 6 commits into from
Mar 5, 2024

Conversation

emirhansirkeci
Copy link
Contributor

@emirhansirkeci emirhansirkeci commented Mar 4, 2024

Description

As a native Turkish speaker, I noticed some parts that were strange and that I could not understand when I first read them. So I made these parts easier to understand.

Changes introduced

  • Documentation Update
    • Convert first letter to uppercase in line 565 of README.md
    • Improve translation in lines 131, 145, 321 and 585 of README_tr.md

Type of change

  • Documentation update (changes to documentation)

Summary by CodeRabbit

Summary by CodeRabbit

  • Documentation
    • Renamed "Recover middleware" to "Recover Middleware" in Fiber middleware documentation.
    • Updated Go version requirement.
    • Corrected a typo in the installation instructions.
    • Refined API endpoint references.
    • Improved the description of Basic Auth middleware.

@emirhansirkeci emirhansirkeci requested a review from a team as a code owner March 4, 2024 20:19
@emirhansirkeci emirhansirkeci requested review from gaby, sixcolors, ReneWerner87 and efectn and removed request for a team March 4, 2024 20:19
Copy link

welcome bot commented Mar 4, 2024

Thanks for opening this pull request! 🎉 Please check out our contributing guidelines. If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

Copy link
Contributor

coderabbitai bot commented Mar 4, 2024

Walkthrough

The recent updates focus on enhancing the documentation and code comments for the Fiber middleware, alongside upgrading the Go version requirement. These changes include renaming a middleware for consistency, fixing typos, refining API endpoint references, and improving middleware descriptions. The effort aims to improve readability and accuracy, ensuring developers have a clearer and more reliable guide.

Changes

Files Changes
.github/README.md, .github/README_tr.md - Renamed "Recover middleware" to "Recover Middleware"
- Updated Go version requirement
- Corrected a typo in the installation instructions
- Refined API endpoint references
- Fixed a typo in a comment
- Improved the description of Basic Auth middleware

Poem

🐰✨
In the land of code and might,
A rabbit hopped into the night.
"Fix and polish," it whispered soft,
As it leaped through docs aloft.
Middleware named, typos fell,
In README lands, where letters dwell.
🌟📚

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>.
    • Generate unit-tests 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 tests 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

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.

Review Status

Actionable comments generated: 12

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 77770a9 and f729798.
Files selected for processing (2)
  • .github/README.md (1 hunks)
  • .github/README_tr.md (4 hunks)
Additional comments: 9
.github/README_tr.md (3)
  • 145-145: The update to API endpoint references enhances clarity and is a valuable addition to the documentation.
  • 321-321: The addition of a comment explaining how to use a template is helpful for users unfamiliar with the process.
  • 585-585: The enhanced description of the Basic Auth middleware provides a clearer understanding of its functionality and use cases.
.github/README.md (6)
  • 565-565: The change from "Recover middleware" to "Recover Middleware" improves consistency and clarity in the documentation. Good job on making this update.
  • 562-568: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [130-130]

The term "TechEmpower" is correctly used here as it refers to the TechEmpower Framework Benchmarks. No change is needed.

  • 562-568: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [141-141]

The command go mod init github.com/your/repo is correctly formatted for initializing a Go module. No change is needed.

  • 562-568: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [157-157]

"WebSocket" is correctly used in the context of technology and does not require a change to "Web Socket".

  • 562-568: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [174-174]

The term "net/http" is correctly used here as it refers to the Go standard library package. No change is needed.

  • 562-568: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [345-345]

The use of the unpaired symbol ‘"’ seems to be a false positive in this context, as the code snippet appears correctly formatted.

@@ -128,7 +128,7 @@ Bu testler [TechEmpower](https://www.techempower.com/benchmarks/#section=data-r1

## ⚙️ Kurulum

Go'nun `1.20` sürümü ([indir](https://go.dev/dl/)) veya daha yüksek bir sürüm gerekli.
Go'nun yüklü olduğundan emin olun ([indir](https://go.dev/dl/)). `1.20` veya veya daha yüksek bir sürüme sahip olmanız gerekmektedir.
Copy link
Contributor

Choose a reason for hiding this comment

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

The phrase "veya veya" is repeated, which seems to be a typo.

- Go'nun yüklü olduğundan emin olun ([indir](https://go.dev/dl/)). `1.20` veya veya daha yüksek bir sürüme sahip olmanız gerekmektedir.
+ Go'nun yüklü olduğundan emin olun ([indir](https://go.dev/dl/)). `1.20` veya daha yüksek bir sürüme sahip olmanız gerekmektedir.

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
Go'nun yüklü olduğundan emin olun ([indir](https://go.dev/dl/)). `1.20` veya veya daha yüksek bir sürüme sahip olmanız gerekmektedir.
Go'nun yüklü olduğundan emin olun ([indir](https://go.dev/dl/)). `1.20` veya daha yüksek bir sürüme sahip olmanız gerekmektedir.

Comment on lines 562 to 568
}
```

### Recover middleware
### Recover Middleware

📖 [Recover](https://docs.gofiber.io/api/middleware/recover)

Copy link
Contributor

Choose a reason for hiding this comment

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

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [110-110]

Consider changing "Quickstart" to "Quick start" or "Quick-start" for better readability.

- ## ⚡️ Quickstart
+ ## ⚡️ Quick Start

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [221-221]

Remove the extra space before the closing parenthesis to maintain consistency in the documentation formatting.

- app.Listen(":3000") }
+ app.Listen(":3000")}

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [273-273]

Remove the extra space before the closing parenthesis to maintain consistency in the documentation formatting.

- app.Listen(":3000")) }  ```
+ app.Listen(":3000"))}  ```

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [313-313]

Replace the double dots with a single period for correct punctuation.

- etc..
+ etc.

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [380-380]

Add a space between sentences to improve readability.

- app.Use(logger.New())      // .....
+ app.Use(logger.New())  // .....

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [405-405]

Remove the extra space before the closing parenthesis to maintain consistency in the documentation formatting.

- app.Listen(":3000")) }
+ app.Listen(":3000"))}

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [434-434]

Remove the extra space before the closing parenthesis to maintain consistency in the documentation formatting.

- app.Listen(":3000")) } ```
+ app.Listen(":3000"))} ```

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [462-462]

Remove the extra space before the closing parenthesis to maintain consistency in the documentation formatting.

- app.Listen(":3000")) } ```
+ app.Listen(":3000"))} ```

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [492-492]

Remove the extra space before the closing parenthesis to maintain consistency in the documentation formatting.

- app.Listen(":3000")) } ```
+ app.Listen(":3000"))} ```

📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [526-526]

Remove the extra space before the closing parenthesis to maintain consistency in the documentation formatting.

- app.Listen(":3000")) } ```
+ app.Listen(":3000"))} ```

.github/README.md Show resolved Hide resolved
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between f729798 and 809ed65.
Files selected for processing (1)
  • .github/README_tr.md (4 hunks)
Additional comments: 4
.github/README_tr.md (4)
  • 131-131: The update to specify the Go version requirement as 1.20 or higher is clear and relevant, ensuring users have the correct version for successful project setup.
  • 145-145: The enhancements to the documentation, including the updated list of features and middleware support, provide clearer and more detailed information for users.
  • 321-321: Including a practical example of how to use a template enhances the documentation by providing clear guidance to users.
  • 585-585: The updated description of the Basic Auth middleware offers a clearer and more comprehensive explanation, enhancing the documentation's usefulness for users.

@efectn efectn merged commit 4525458 into gofiber:main Mar 5, 2024
Copy link

welcome bot commented Mar 5, 2024

Congrats on merging your first pull request! 🎉 We here at Fiber are proud of you! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

@ReneWerner87 ReneWerner87 added this to the v3 milestone Mar 5, 2024
grivera64 pushed a commit to grivera64/fiber that referenced this pull request Mar 16, 2024
* Make the sentence more understandable

* Add the English version of the words as the Turkish version is difficult to understand.

* Improve translation

* Correct the meaningless sentence

* Convert first letter to uppercase

* Delete repeated word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants