Frontend client for Check's similarity search APIs.
Make sure to have node.js v15+ installed.
# clone repository
$ git clone git@github.com:meedan/check-search.git
$ cd check-search/
# Run setup script. This will install dependencies, and copy and set your configuration
$ bin/setup.sh
# run the dev server
$ npm start
The frontend should now be available at http://localhost:8001
Make sure Docker and docker-compose
are installed.
# clone repository
$ git clone git@github.com:meedan/check-search.git
$ docker-compose up
# the frontend should now be available at http://localhost:8001
Localization is done on Transifex. You must have the tx
client installed on your computer and configured to communicate with the Transifex server.
To create a new English string to localize, simply add it as a <FormattedMessage id="new.id" defaultMessage="My new string"/>
component in the React application. Running npm run transifex:extract
will automatically create the following field in localization/transifex/source.json
:
{
"new.id": {
"string": "My new string"
}
}
You can run npm run transifex:upload
to send the source.json
file to the Transifex server. Translation happens on the Transifex app. To download new translations, run npm run transifex:download
.