Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix(docs): fix typo in $translateChangeSuccess
Browse files Browse the repository at this point in the history
fix typo in event name in EN FR RU UK docs
- if incorrectly copied the code did not work
  • Loading branch information
kvetis authored and knalli committed Jun 1, 2015
1 parent 8616dca commit 89e2569
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/content/guide/en/03_using-translate-service.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ However, this doesn't mean that it knows when a languages has been changed. And
of that, translations translated through a directive `$translate` call, don't get
updated when changing the language at runtime.

You can fix that by simply wrapping your `$translate` call into a `$translateChangeSucces`
You can fix that by simply wrapping your `$translate` call into a `$translateChangeSuccess`
callback on `$rootScope`, which gets fired every time a translation change was successful.
Once it's changed, you can simply re-execute the code, that gives you your needed translations.

Expand Down
2 changes: 1 addition & 1 deletion docs/content/guide/fr/03_using-translate-service.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Toutefois, cela ne veut pas dire qu'il sait quand une langue a été modifiée.
les traductions traduites par un appel de `$translate` dans une directive, ne se mettent pas à jour
en cas de changement de la langue lors de l'exécution.

Vous pouvez résoudre ce problème en enveloppant simplement votre appel `$translate` dans un callback `$translateChangeSucces`
Vous pouvez résoudre ce problème en enveloppant simplement votre appel `$translate` dans un callback `$translateChangeSuccess`
sur `$rootScope`, qui se déclenchera à chaque fois qu'un changement de traductiona été fait avec succès.
Une fois qu'elle a changé, il vous suffit de ré-exécuter le code, qui vous donne vos traductions nécessaires.

Expand Down
2 changes: 1 addition & 1 deletion docs/content/guide/ru/03_using-translate-service.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ app.controller('Ctrl', ['$scope', '$translate', function ($scope, $translate) {
Тем не менее, это не означает, что он знает о смене языка. Поэтому, переводы сделанные при помощи
прямого вызова `$translate` не обновляются при смене языка во время выполнения.

Вы можете это исправить просто обернув ваш вызов `$translate` в `$translateChangeSucces` колбек
Вы можете это исправить просто обернув ваш вызов `$translate` в `$translateChangeSuccess` колбек
`$rootScope`а, который вызывается каждый раз при успешной смене языка. Как только он изменится, вы
легко можете повторно выполнить код, ответственный за необходимые вам переводы.

Expand Down
2 changes: 1 addition & 1 deletion docs/content/guide/uk/03_using-translate-service.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ app.controller('Ctrl', ['$scope', '$translate', function ($scope, $translate) {
Тим не менше, це не означає, що він знає про зміну мови. Тому, переклади виконані за допомогою
прямого виклику `$translate` не оновлюються при зміні мови під час виконання.

Ви можете виправити це просто обгорнувши ваш виклик сервісу `$translate` у `$translateChangeSucces`
Ви можете виправити це просто обгорнувши ваш виклик сервісу `$translate` у `$translateChangeSuccess`
колбек `$rootScope`а. Він викликається кожного разу, коли зміна мови пройшла успішно. Як тільки вона
зміниться, ви легко можете повторно виконати код, що відповідає за необхідні вам переклади.

Expand Down

0 comments on commit 89e2569

Please sign in to comment.