Docs
Cli
CLIlocalesy init

localesy init

Scan a repository for translation files and connect it to a Localesy project.

Synopsis

localesy init [--path <dir>] [--env <name>]

Description

Scans your repository for existing translation files and creates the configuration that future commands use. init looks for your JSON, YAML and PO files, infers their path patterns and locales, and connects the directory to a Localesy project.

The resulting configuration is stored in a .localesy.json file (or the global per-directory config). See Configuration for details on where it lives.

Options

OptionDescription
--path <dir>Scan a specific directory instead of the current one.
--env <name>Run against a specific Localesy environment.

Examples

localesy init
localesy init --path ./locales

See also

Was this helpful?
Docs
Copyright © Localesy. All rights reserved.