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

Translate conditional-rendering.md #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rammba
Copy link
Collaborator

@rammba rammba commented Nov 18, 2024

Closes #96

Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

}
};
const drinks = [
{name: 'čaj', part: 'list', caffeine: '15–70 mg/šolja', age: '4,000+ godina'},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In order to properly translate drink name, I needed to introduce new field, name. I've also created PR on the main react repo in order to simplify translation of object property values for others as well: reactjs/react.dev#7296

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.

Conditional Rendering
1 participant