Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@goodforonefare/translation-platform-utilities

0.0.10 • Public • Published

@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

Keywords

none

Install

npm i @goodforonefare/translation-platform-utilities

DownloadsWeekly Downloads

0

Version

0.0.10

License

MIT

Unpacked Size

7.77 kB

Total Files

14

Last publish

Collaborators

  • avatar