This is a hybrid app using Apache Cordova. This app is published on play store. Check it out from here.
Note: This project is not organised and it is very hard understand the project structure. I'll try to make it clear as possible.
src
(directory) contains all raw codeswww
(directory) contains public documents, built javascript and css files, language files and HTML filesutils
(directory) contains the cli tool to manipulate or add string to all languages easily
To add new language, create a new file with language code for android (eg. en-us for english) in www/lang/
direcotry. After adding new laguage also add it to src/constants.js -> langList
.
Here are few utility tools to add, remove or search a string in all added languages.
yarn lang add
yarn lang remove
yarn lang search
yarn lang update
In order to build the app you must have Nodejs, NPM and Apache Cordova installed on your device. Use Cordova CLI to build application.
First run npm install
to install all dependencies, then run webpack
to build src and then run cordova build android
.
If you have installed yarn you can simply run yarn build-run
to build the apk and run on connect android device or emulator.
make up
make clean
make build