Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@localazy/ts-api
Advanced tools
This is a Typescript library facilitating usage of Localazy's API.
This is a Typescript library facilitating usage of Localazy's API. To better understand this library, it is recommended to study the API documentation first.
To install this library, run the following command
npm i @localazy/ts-api
Afterwards, import the library and initialize it.
import LocalazyApi from '@localazy/ts-api';
const api = LocalazyApi({
projectToken: "your-project-token"
// ...additional options
})
In order to access anything from Localazy, you need to sign up and create a project.
Then, you'll be able to generate a project token here.
See documentation for more information.
Optional baseUrl
parameter. Add prefix for all api calls. Useful for proxying requests.
List projects related to the project token.
async listProjects(options: ListProjects = {}, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/projects#list-projects
Import content into Localazy.
async import(options: Import, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/import
Retrieve list of available file formats and related options.
async listFormats(config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/import#retrieve-a-list-of-available-file-types
List Localazy files.
async listFiles(options: ListFiles, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/files
Returns the given file contents.
async getFileContents(options: DownloadFile, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/files
This is the main method for retrieving translated content from given project and localazy file for given language.
async listKeysInFileForLanguage(options: ListKeysInFile, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/files#retrieve-a-list-of-keys-and-translations-from-file
Returns the webhooks configuration for the given project.
async listWebhooks(options: ListWebhooks, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/webhooks-api#list-webhooks-configuration
Store a new webhooks configuration for the project.
async postWebhooks(options: PostWebhooks, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/webhooks-api#update-webhooks-configuration
List all screenshots for the given project.
async listScreenshots(options: ListScreenshots, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/screenshots
List all existing tags for screenshots.
async listScreenshotsTags(options: ListScreenshotsTags, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/screenshots
Upload a new screenshot.
async postScreenshots(options: PostScreenshots, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/screenshots
Change image data of existing screenshot.
async postScreenshot(options: PostScreenshot, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/screenshots
Change existing screenshot.
async putScreenshot(options: PutScreenshot, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/screenshots
async deleteScreenshot(options: DeleteScreenshot, config: CommonConfig = {})
Documentation: https://localazy.com/docs/api/screenshots
It's possible as the API is still actively developed and it might take us some time to update all related projects. Feel free to create a new issue or pull request for this.
Yes. We publish type definitions for arguments of all the methods to NPM. They reside in @localazy/ts-api/dist/models
, e.g.
import ListProjects from "@localazy/ts-api/dist/models/arguments/list-projects";
FAQs
This is a Typescript library facilitating usage of Localazy's API.
The npm package @localazy/ts-api receives a total of 380 weekly downloads. As such, @localazy/ts-api popularity was classified as not popular.
We found that @localazy/ts-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.