Skip to content

Node.js module that allows you to easily interact with the Localazy CDN.

License

Notifications You must be signed in to change notification settings

localazy/cdn-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2f7a6e5 ยท May 1, 2024

History

40 Commits
May 1, 2024
May 1, 2024
May 1, 2024
Mar 17, 2024
May 1, 2024
Mar 13, 2024
Mar 17, 2024
Feb 1, 2024
Mar 13, 2024
Mar 13, 2024
May 1, 2024
May 1, 2024
May 1, 2024
Mar 13, 2024
May 1, 2024
May 1, 2024
May 1, 2024
Mar 17, 2024
Mar 17, 2024
Mar 17, 2024
Mar 17, 2024
Mar 17, 2024

Repository files navigation

Localazy

๐Ÿ“ฆ @localazy/cdn-client

Documentation  |  Getting Started  |  Live Demo  |  API Reference

Node.js module that allows you to easily interact with the Localazy CDN.

npm maintainer license
coverage size

๐Ÿš€ Quick Start

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'],
});
example result
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.

๐Ÿ›Ÿ Support

๐Ÿ’™ Localazy Packages

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.

๐Ÿ“œ License

Code released under the MIT license.