Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@localazy/ts-api

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@localazy/ts-api

This is a Typescript library facilitating usage of Localazy's API.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
474
increased by11.53%
Maintainers
3
Weekly downloads
 
Created
Source

@localazy/ts-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.

Installation and usage

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
})

Project token

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.

Methods overview

listProjects

List projects related to the project token.

async listProjects(options: ListProjects = {}, config: CommonConfig = {});

Documentation: https://localazy.com/docs/api/list-projects

import

Import content into Localazy.

async import(options: Import, config: CommonConfig = {})

Documentation: https://localazy.com/docs/api/import

listFormats

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

listFiles

List Localazy files.

async listFiles(options: ListFiles, config: CommonConfig = {})

Documentation: https://localazy.com/docs/api/files

listKeysInFileForLanguage

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

Keywords

FAQs

Package last updated on 03 Jan 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc