# Multi language supported Application

**URL:** <https://forum.ionicframework.com/t/multi-language-supported-application/6840>\
**Category:** ionic-v1\
**Created:** [July 15, 2014, 4:52am UTC](https://forum.ionicframework.com/t/multi-language-supported-application/6840 "2014-07-15T04:52:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashikant](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@shashikant](https://forum.ionicframework.com/u/shashikant)\
**Post date:** [July 15, 2014, 4:52am UTC](https://forum.ionicframework.com/t/multi-language-supported-application/6840/1 "2014-07-15T04:52:09Z")

</div>

Hi All,

I want to implement **language translation** in app.

If user change language from give list. language should reflect through out the application content.

Is any one has implemented this functionality ? . How can i implement??

---

<div class="post-metadata">

**Author:** ![Auro](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Auro](https://forum.ionicframework.com/u/Auro)\
**Post date:** [July 15, 2014, 5:51am UTC](https://forum.ionicframework.com/t/multi-language-supported-application/6840/2 "2014-07-15T05:51:05Z")

</div>

im using [http://angular-translate.github.io/](http://angular-translate.github.io/)

I have a action sheet in my setting for switching the language.  
and for each language i have a file that contains my translations (Json style)

in html it looks like this:

```
{{ 'Setting.share' | translate }}  

```

and via Javascript:

```
$filter('translate')('Ui.close')

```

dont forget you have to include $filter in a controller to use via javascript

for a implemented version you can look here:

> **[Siloist/Silo\_app](https://github.com/Siloist/Silo_app)**
>
> Silo\_app - a Cordova mobile app built with Ionic framework & AngularJS (dedicated to the humanist writer and thinker Mario Rodriguez Cobos, aka "Silo")

---

<div class="post-metadata">

**Author:** ![shashikant](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@shashikant](https://forum.ionicframework.com/u/shashikant)\
**Post date:** [July 15, 2014, 6:18am UTC](https://forum.ionicframework.com/t/multi-language-supported-application/6840/3 "2014-07-15T06:18:45Z")

</div>

Thanks for @Auro,

1)I am facing issue with translating html data.  
I have html data in controller **(Including HTML tag)**. How can render html data in multiple language.

2)I have list of item which i getting from service. Then How can render data from service in multiple language.

---

<div class="post-metadata">

**Author:** ![Auro](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Auro](https://forum.ionicframework.com/u/Auro)\
**Post date:** [July 15, 2014, 6:47am UTC](https://forum.ionicframework.com/t/multi-language-supported-application/6840/4 "2014-07-15T06:47:12Z")

</div>

1. 

do you mean something like this:

```
var confirmPopup = $ionicPopup.confirm({
                title: $filter('translate')('Setting.upgrade'),
                template: '<span >{{ "Setting.upgradeText" | translate }}</span>',
                okText: $filter('translate')('Ui.update') + (IAP.price || ''),
                okType: 'button-clear button-positive',
                cancelText: $filter('translate')('Ui.close'),
                cancelType: 'button-clear button-assertive'
            });

```

this is a popup as you can see the template is the same as normal html.

1. it depends on what data you get?  
normally the service should return the desired language.  
something like this: \<call\_to\_service\>/lang/en

if not then it gets harder to achieve this. Did you develop the service?

the only thing i get in mind is parsing the data and replace the text with the current lag text

---

<div class="post-metadata">

**Author:** ![shashikant](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@shashikant](https://forum.ionicframework.com/u/shashikant)\
**Post date:** [July 15, 2014, 7:20am UTC](https://forum.ionicframework.com/t/multi-language-supported-application/6840/5 "2014-07-15T07:20:51Z")

</div>

I am not understanding please help me.

i uploaded code on GitHub…

> **[shashikantkumar88/Multi-language-supported-Ionic-App](https://github.com/shashikantkumar88/Multi-language-supported-Ionic-App)**
>
> Multi-language-supported-Ionic-App - I created Multiple Language Supported App.

There is a service file

> <https://github.com/shashikantkumar88/Multi-language-supported-Ionic-App/blob/master/www/js/services.js>

Service data, i am displaying on

> <https://github.com/shashikantkumar88/Multi-language-supported-Ionic-App/blob/master/www/templates/tab-friends.html>

i want to display data in different language.

For different language, i created json file. you can see in side json folder.

Thanks

---

<div class="post-metadata">

**Author:** ![Auro](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Auro](https://forum.ionicframework.com/u/Auro)\
**Post date:** [July 15, 2014, 7:34am UTC](https://forum.ionicframework.com/t/multi-language-supported-application/6840/6 "2014-07-15T07:34:19Z")

</div>

ah sorry i misunderstand 😃  
Can you make a example how how you want it to be rendred?  
because i dont see data that needs to be translated.  
(if you mean name property of friends explain why you want to translate this)

---

<div class="post-metadata">

**Author:** ![shashikant](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@shashikant](https://forum.ionicframework.com/u/shashikant)\
**Post date:** [July 15, 2014, 7:50am UTC](https://forum.ionicframework.com/t/multi-language-supported-application/6840/7 "2014-07-15T07:50:01Z")

</div>

Actually, i want to display data like list and list description. List description come from service as per list item.

So, list and list description should display as per the selected language.

---

<div class="post-metadata">

**Author:** ![MuneemHabib](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@MuneemHabib](https://forum.ionicframework.com/u/MuneemHabib)\
**Post date:** [August 8, 2017, 2:05pm UTC](https://forum.ionicframework.com/t/multi-language-supported-application/6840/8 "2017-08-08T14:05:45Z")

</div>

This service only gets and sets translation accordingly. We have to do all stylings manually
