Internationalisation i18n

Question about internationalisation.
There are good instruction how to make the app's UI side of internalization.

But I have some texts provided by scope functions. How do I use the internalization at the controller (scope) side?

For example:

$scope.calculateDiscount = function () {
if ($ {
return Apperyio.get("$translate").use("en"); // HOW PROVIDE TRANSLATED TEXT??????
} else {
return Apperyio.get("$translate").use("de"); // HOW PROVIDE TRANSLATED TEXT
1 person has
this question