Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@americanexpress/one-app-locale-bundler

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@americanexpress/one-app-locale-bundler

A command line interface(CLI) tool for bundling the locale files.

  • 6.5.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-80.49%
Maintainers
4
Weekly downloads
 
Created
Source

@americanexpress/one-app-locale-bundler

npm

A command line interface (CLI) tool for bundling a module's locale files for use within the One App ecosystem. This is used internally by one-app-bundler and its bundle-module script.

📖 Table of Contents

  • Usage

🤹‍ Usage

Add files and format them using either options shown below within your one app module.

- locale
  - en-US
    - links
      - integration.json
      - qa.json
      - production.json
     copy.json

or

- locale
  - en-US.json
  - es-ES.json

Installation

npm i -D @americanexpress/one-app-locale-bundler

There are two ways to use this:

1. Usage with a build script

Use bundle-module-locale in your build script and one-app-locale-bundler as a development dependency.

{
  "scripts": {
    "build": "bundle-module-locale"
  },
  "devDependencies": {
    "@americanexpress/one-app-locale-bundler": "^2.3.0"
  }
}

2. Invocation using a function

The other option is to require @americanexpress/one-app-locale-bundler and invoke the function for bundling.

Within the package.json file.

{
  "devDependencies": {
    "@americanexpress/one-app-locale-bundler": "^2.3.0"
  }
}

In your JS module.

const localeBundler = require('@americanexpress/one-app-locale-bundler');

localeBundler();

Once the npm script npm run build is run or the function is invoked the locales are bundled and added to the build folders below. The json files contain content for development, qa and production environments.

- build
  - 1.0.0
    - en-us
      - module-name.json
      - integration.json
      - qa.json

Keywords

FAQs

Package last updated on 03 May 2023

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc