-
Notifications
You must be signed in to change notification settings - Fork 801
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Translate to Portuguese_BR #225
base: gh-pages
Are you sure you want to change the base?
Conversation
tip-number: 00 | ||
tip-username: loverajoel | ||
tip-username-profile: https://github.com/loverajoel | ||
tip-tldr: Inserir um item em um array existente é muito comum diariamente. Você pode adicionar elementos no final de um array usando push, no começo usando unshift ou no meio usando splice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about "Inserir um item em um array é uma tarefa muito comum"?
|
||
- You can create your own unique id. Be sure that the method is fast and attach it to your object. | ||
- When the number of children is large or contains expensive components, use keys to improve performance. | ||
- [You must provide the key attribute for all children of ReactCSSTransitionGroup.](http://docs.reactjs-china.com/react/docs/animation.html) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one was not translated?
Overall good translation, waiting to see merged 👏 |
@FagnerMartinsBrack Thanks for the suggestions, it was a great help! Feel free to help with the other tips. 😄 |
Angular avalia cada observador quando um evento é disparado. Esse é o ciclo conhecido como `$digest`. Algumas vezes você precisa forçar a execução de um novo ciclo manualmente e deve escolher a opção correta pois esta fase é uma das que mais influencia em termos de performance. | ||
|
||
### `$apply` | ||
Este método do core permite você iniciar o ciclo digest explicitamente. Isso significa que todos os observadores são verificados; toda a aplicação inicia o `$digest loop`. Internamente, depois de executar um parâmetro de função opcional, ele chama `$rootScope.$digest();`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have never heard a programmer talking "observadores" in pt_BR, usually ppl use "watchers". Would "watchers" be better in this context, or maybe something like "watchers (observadores)"?
I'd like to help translating the rest, but I have no idea where to start :P Should I wait for this pull to be merged or should I just fork the repository and start translating the other files and then submit my own pull request? |
@souljacker, your help would be great! You can help me in this pull request. I've created a repository "dicas-js" on my Github account, just fork it and send a pull request there with the translation. Start from newer tips to older, I'm translating from older to newer. Send me a email if you have doubt: heverton@hotmail.com.br |
@hevertoncastro @souljacker Thank you for your work, let us know when you're done. |
@loverajoel
Files added:
_posts/pt_BR/
images/flags/pt_BR.png
pt_BR/about.md
pt_BR/index.html
CONTRIBUTING_pt_BR.md
Edit edited:
_config.yml
I already translate three tips, soon I will do the others.
Best