vi.react.dev icon indicating copy to clipboard operation
vi.react.dev copied to clipboard

feat(i18n): src/content/learn/you-might-not-need-an-effect.md from English to Vietnamese

Open KotonoSora opened this issue 7 months ago • 2 comments

🇻🇳 Vietnamese Translation: You Might Not Need an Effect

Hi! I'm contributing as a volunteer translator for vi.react.dev, and this PR adds the Vietnamese translation for the "You Might Not Need an Effect" lesson.

What's included

  • Vietnamese translation of you-might-not-need-an-effect.md
  • Preserved all code examples and markdown formatting
  • Kept terminology consistent with existing translations

Changes

  • ✅ Fully translated the guide covering how to identify and remove unnecessary Effects from React components
  • ✅ Maintained code blocks, links, Sandpack components and Challenge/Solution sections
  • ✅ Verified all internal links and formatting render correctly

Looking forward to contributing more translations to the project! 🚀


Tóm tắt những gì đã được dịch:

Tiêu đề và phần Intro: "You Might Not Need an Effect" → "Bạn có thể không cần Effect"

Các phần chính:

  • "How to remove unnecessary Effects" → "Cách loại bỏ những Effect không cần thiết"
  • "Updating state based on props or state" → "Cập nhật state dựa trên props hoặc state"
  • "Caching expensive calculations" → "Cache những phép tính đắt đỏ"
  • "Resetting all state when a prop changes" → "Reset tất cả state khi một prop thay đổi"
  • "Adjusting some state when a prop changes" → "Điều chỉnh một số state khi một prop thay đổi"
  • "Sharing logic between event handlers" → "Chia sẻ logic giữa các event handler"
  • "Sending a POST request" → "Gửi POST request"
  • "Chains of computations" → "Chuỗi các phép tính"
  • "Initializing the application" → "Khởi tạo ứng dụng"
  • "Notifying parent components about state changes" → "Thông báo cho component cha về những thay đổi state"
  • "Passing data to the parent" → "Truyền dữ liệu cho cha"
  • "Subscribing to an external store" → "Subscribe vào external store"
  • "Fetching data" → "Fetch dữ liệu"

Phần Challenges:

  • "Extract non-event logic out of event handlers" → "Trích xuất logic không phải sự kiện ra khỏi event handler"
  • "Fix a variable that doesn't update" → "Sửa một biến không cập nhật"
  • "Fix a freezing chat input" → "Sửa input chat bị đóng băng"
  • "Fix a connection switch" → "Sửa chuyển đổi kết nối"
  • "Populate a chain of select boxes" → "Điền vào chuỗi select box"

KotonoSora avatar Jun 17 '25 00:06 KotonoSora