Thank you Rafael, but I am already using angular translate for the static language variables. Now, I want to use variable in the markup.
MAF on the move! On May 25, 2014 1:56 AM, "Rafael Bernard Rodrigues Araujo" < [email protected]> wrote: > 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 a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/WP1FU0HQlGQ/unsubscribe. > To unsubscribe from this group and all its topics, 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.
