Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
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.
@localazy/cdn-client
Advanced tools
Node.js module that allows you to easily interact with the Localazy CDN.
@localazy/cdn-client
Documentation | Getting Started | Live Demo | API Reference
Node.js module that allows you to easily interact with the Localazy CDN.
npm install @localazy/cdn-client
# or use your favourite package manager
import { CdnClient } from '@localazy/cdn-client';
const cdn = await CdnClient.create({
// use your own metafile
metafile: 'https://delivery.localazy.com/_a855374211039568660198b39c31/_e0.v2.json',
});
const result = await cdn.fetch({
// select files from metafile
files: cdn.metafile.files[0],
// select locales
locales: ['en', 'de'],
});
const result = {
en: {
cdn_info: 'With the CDN you can deliver the translation files instantly',
cdn_testing: "We're testing the CDN",
hello_localazy: 'Hello Localazy!',
using_javascript: 'In this project we decided to use JavaScript',
},
de: {
cdn_info: 'Mit dem CDN können Sie die Übersetzungsdateien sofort liefern',
cdn_testing: 'Wir testen das CDN',
hello_localazy: 'Hallo Localazy!',
using_javascript: 'In diesem Projekt haben wir uns für JavaScript entschieden',
},
};
For more information, visit Installation guide.
Check out all npm packages from Localazy:
Package | Description |
---|---|
@localazy/cli | Localazy CLI tool for app and software localization and translation. |
@localazy/api-client | Node.js module that allows you to easily interact with the Localazy API. |
@localazy/cdn-client | Node.js module that allows you to easily interact with the Localazy CDN. |
@localazy/languages | Available Localazy Languages |
@localazy/strapi-plugin | The official Strapi Plugin by Localazy. |
@localazy/directus-extension-localazy | The official Localazy module extension for Directus |
Discover all available integration options and localization examples.
Code released under the MIT license.
FAQs
Node.js module that allows you to easily interact with the Localazy CDN.
We found that @localazy/cdn-client demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.