Skip to content

Latest commit

 

History

History
81 lines (59 loc) · 1.54 KB

README.md

File metadata and controls

81 lines (59 loc) · 1.54 KB

@deriv/p2p

Index

  • General - Contains general philosophy and overview of this package
  • Modules docs - Contains implementation guides (i.e., scaffolding, code usage)

Requirements

  • 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:

  • Crowdin CLI
  • P2P_CROWDIN_API_KEY
  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