Socket
Book a DemoInstallSign in
Socket

@shopify/translation-platform-utilities

Package Overview
Dependencies
Maintainers
19
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/translation-platform-utilities

[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE.md) [![npm version](https://badge.fury.io/js/%40shopify%2Ftranslation-platform-utilities.svg)](https://badge.fury.io/js/%40shopify%2Ftranslation-platform-utilities.svg)

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
3.7K
-56.28%
Maintainers
19
Weekly downloads
 
Created
Source

@shopify/translation-platform-utilities

License: MIT npm version

Utilities for working with Shopify's translation platform configuration files.

Installation

$ yarn add @shopify/translation-platform-utilities

Usage

import {loadLocales} from '@shopify/translation-platform-utilities';

const locales = await loadLocales({
  rootDirectory: this.rootPath,
});

locales.forEach((locale) => {
  console.log(locale);
});

CLI Usage

In shopify-build with parallelism enabled , sewing-kit-locale can be used to determine the locale for the current build job, e.g.:

$ yarn --silent shopify-build-locale
> en

FAQs

Package last updated on 30 Mar 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.