Ionic App for MTT
- Getting Started
- i18n (adding languages)
Follow the steps below to clone the repositry on your computer and compile the app.
- Clone the repository
git clone https://gitlab.com/isearch-lab/mtt
- Move inside the project's folder
cd mtt
- Install the dependences
npm i
- Initialize Ionic by just typing the "ionic" command
ionic
- Add the Android platform
ionic cordova platform add android
- Build and run the app on Android
ionic cordova run android
The app comes with internationalization (i18n) out of the box with ngx-translate. This makes it easy to change the text used in the app by modifying only one file.
To add new languages, add new files to the src/assets/i18n
directory,
following the pattern of LANGCODE.json where LANGCODE is the language/locale
code (ex: en/gb/de/es/etc.).
To change the language of the app, edit src/app/app.component.ts
and modify
translate.use('en')
to use the LANGCODE from src/assets/i18n/
This software is Copyright 2017 iSearch