
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@lokalise/connector-adapter-common
Advanced tools
Lokalise content exchange apps facilitate the exchange of translatable content between Lokalise and third party content platforms. Users interact with them to connect both systems, select the content they want to translate, transfer it to Lokalise, see the translation status, and send the translations back to the content platform.
You can build and publish your own content exchange app by building a connector for the Lokalise content engine. The content engine will take care of the UI and handle the standard install, config and content management flows, while the connector will act as a bridge between the content platform and Lokalise content engine.
------------------ ------------------------- ----------------
| Your content app | = | Lokalise content engine | + | Your connector |
------------------ ------------------------- ----------------
In this repository you will find TypeScript code that you can use as a template for your Lokalise content exchange connector.
To start development of a new connector:
Copy this repository code to your repository
Replace all entries template with yourConnectorName and Template with YourConnectorName
Start implementing your connector specific logic replacing TODOs. Note that field values in cacheItemStructure of envResponseBody should be in the following format:
In response all DateTime fields from cacheItem should be
converted in format yyyy-mm-dd
.
fields: {updatedAt: "15.06.2022"}
fields: {updatedAt: "2022-06-15"}
Remove current section from README
Add .env file to your project root directory based on .env.default.
For development, run the dev script:
npm install
npm run start:dev
The app is available at: http://localhost:3000/ (If HOST_APP_PORT
was not changed)
Run tests:
npm run test
Run formatting:
npm run lint:fix
Run linter:
npm run lint
Openapi docs are available at connector-openapi
This library is licensed under the Apache 2.0 license.
Copyright (c) Lokalise.
FAQs
Common interfaces for Composed Connector adapters
We found that @lokalise/connector-adapter-common demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 20 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.