New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lxn

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lxn

An lxn implementation for JavaScript

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

lxn-js

lxn-go is an lxn client library for the Javascript programming language.

Translating Text

To translate text, a catalog has to be loaded:

function readCatalog(buf: BufferSource): Translator

This function reads a binary catalog from buf, which could either be an ArrayBuffer or an ArrayBufferView, and returns its translator function. Once a translator function of type

type Translator = (key: string, ctx: Context) => string;

is obtained, it can be used to convert a key and a context into a message. The key specifies the message key within the catalog preceded by its section, i.e. section.message-key (or simply message-key if the message has no section). The context contains all the necessary variables to render this message correctly. For each variable in the catalog there has to be a value of the corresponding type.

Keywords

lxn

FAQs

Package last updated on 25 Dec 2018

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