src/assets/i18n
language assetses.json
file:src/app/app.component.html
we need to add the following line so our ionic app can change the direction of the app depending on the selected language direction (RTL or LTR). Default is LTR.src/app/app.component.ts
you will find a setLanguage()
method which takes care about initializing the TranslateService with the default language of our app.src/app/user/profile
). Once the user clicks the vertical dots next to the MESSAGE button the following modal will open:assets/i18n/es.json
file.TranslateService
, the TranslatePipe
or the TranslateDirective
to get your translation values.src/app/user/profile/user-profile.page.ts
to use inside the Modal.src/app/user/profile/user-profile.page.html