Skip to content

Latest commit

 

History

History
85 lines (60 loc) · 1.58 KB

README.md

File metadata and controls

85 lines (60 loc) · 1.58 KB

@deriv/p2p

In this document

Pre-installation

  • node
  • npm

Editor helpers

Quick start

  1. Install your dependencies:

    npm ci
  2. To build publish file:

    npm run build
  3. Libary usage:

    import P2P from '@deriv/p2p';
    
    <P2P />;
  4. File Structure

src
    ├── components/
    │   ├── ads/
    │   │   ├── ads.js
    │   │   ├── ads.scss
    │   ├── orders/
    │   │   ├── orders.js
    │   │   ├── orders.scss
    │   ├── ...
    │   └── app.jsx
    ├── utils/
    │   ├── timer.js // TODO
    │   ├── ...
    ├── index.js

index.js // publish file
webpack.config.js
package.json
  1. Translations

Update translations in Crowdin and get new translations from Crowdin

Requirements:

  1. Run the script below
    sh scripts/update-translations.sh
  • Extracts new translations strings and pushes them to Crowdin
  • Fetches new translations strings from Crowdin
  1. Make a PR from the newly created branch p2p_translations to dev