Mahmoud, I think you can use angular i18n for this.
https://docs.angularjs.org/guide/i18n
http://angular-translate.github.io/
--
Rafael Bernard Rodrigues Araújo
about.me/rafaelbernard
[image: Rafael Bernard Rodrigues Araújo on about.me]
<http://about.me/rafaelbernard> Analista de Tecnologia | Hospedagem de
sites - http://oservidor.com
On Sat, May 24, 2014 at 8:41 PM, Mahmoud Abdel-Fattah <
[email protected]> wrote:
> I'm working on a bilingual app, and want to call the markup depends on
> current language.
>
> So, I have a variable called "lang", now how can I call {{name+lang}}? it
> should be either {{name_en}} or {{name_ar}
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.