/mtt

iSearch MTT Psychology Experiment

Primary LanguageTypeScript

MTT App

Ionic App for MTT

Table of Contents

  1. Getting Started
  2. i18n (adding languages)

Getting Started

Follow the steps below to clone the repositry on your computer and compile the app.

  1. Clone the repository
git clone https://gitlab.com/isearch-lab/mtt
  1. Move inside the project's folder
cd mtt
  1. Install the dependences
npm i
  1. Initialize Ionic by just typing the "ionic" command
ionic
  1. Add the Android platform
ionic cordova platform add android
  1. Build and run the app on Android
ionic cordova run android

i18n

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.

Adding Languages

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.).

Changing the Language

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/

License

This software is Copyright 2017 iSearch