Type object
File match localazy.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/localazy-json/latest.json
Source https://raw.githubusercontent.com/localazy/cli-schema/master/localazy.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Schema definition for Localazy CLI configuration file.

Properties

$schema string

Schema definition for Localazy CLI configuration file.

Default: "https://raw.githubusercontent.com/localazy/cli-schema/master/localazy.json"
writeKey string

Your project's write key. It can be found in Settings -> Access keys.

readKey string

Your project's read key. It can be found in Settings -> Access keys.

branch string

The branch to perform the operation on. If not specified, the operation is performed on the project corresponding to write/read key.

community object

Define community settings for sharing your configuration with other users. https://localazy.com/docs/cli/community-sharing

6 nested properties
author string

The name of the author of the script.

email string

The email of the author of the script. It's not available publicly.

company string

Company name if applicable.

website string

Website name if applicable.

tags string[]

A set of tags to help other users find your script. Please tag your technology stack, framework, library, programming language, etc.

description string

The description of the script. Please describe what the script does and how it works.

transformations array | object

The transformations property allows defining rules for string transformations. Using transformations, you can, e.g., obtain locale code from its file path or build the specific path where to write translated files. https://localazy.com/docs/cli/transformations

Any of: transformations[] transformations[], transformations object
upload object

The upload section defines how to collect files that you want to upload to the Localazy platform for localization and what metadata to include. It also defines how to process uploaded data. https://localazy.com/docs/cli/upload-reference

16 nested properties
deprecateMissing boolean

Tells the server to deprecate any phrase missing in this upload batch. Deprecated phrases are still available but are not visible to translators.

Default: false
deprecate string

Tells the server to deprecate any phrase missing in this upload batch. Deprecated phrases are still available but are not visible to translators.

Default: "none"
Values: "file" "project" "none"
importAsNew boolean

Tells the server to import new phrases as unverified. Unverified phrases need to go through the review process. This option allows you to check translations using our unique review process if you are not sure of their quality. This option doesn’t apply to the source language.

Default: false
allowDuplicateKeys boolean

By default, you can have phrases with the same key in different files. For specific situations like using libraries and string overriding, it’s necessary to disable this option. You can find more on this topic in 'Modules, libraries, product flavors' article.

Default: false
skipFailedAutodetection boolean

When set to true files that use auto-detection are skipped if the auto-detection is not possible. When set to false an exception is raised.

Default: true
filterSource boolean

When set to true, strings that are the same as in the source langauge are not imported. This is important for platforms like iOS where localizable files contain the source phrase where the translation is not available. This option doesn’t apply to the source language.

forceCurrent boolean

Tells the server to promote changes in translated files as approved and current translations for phrases that are already translated. If set to false, such changes go to the review process.

Default: false
forceSource boolean

Tells the server to promote changes from uploaded source language files even if there are different versions on Localazy.

Default: false
appVersion number

Tells the server the version of the app in which the phrases where deprecated. It only makes sense with deprecateMissing switched to true. It allows for automatic versioning of deprecated phrases. This option can be provided on the command-line with -v option.

Default: 0
type string

Type of files you are about to upload. You can also define the type separately for each file. For more info about supported file formats check out the documentation.

Values: "android" "json" "arb" "ios-strings" "ios-plist" "ios-stringsdict" "xliff" "resx" "yaml" "po" "pot" "json5" "hjson" "js" "properties" "ini" "php" "qt-ts" "text" "csv" "neon" "toml" "excel" "ods" "srt" "tmx" "xcstrings" "copy" "captivate" "ispring" "framemaker"
folder string

The base folder all operations are relative to. It can be relative or absolute path.

features string | array

The list of features (eg. how to parse plurals) to enable for the given type. See the list of supported file formats in documentation for more information. https://localazy.com/docs/cli/upload-reference#supported-file-formats

Any of: features string, features[] features[]
keySeparator string

The separator used for building structured keys for includeKeys and excludeKeys. For more details: https://localazy.com/docs/cli/excluding-string-keys

Default: "."
includeKeys string[]

A list of rules for determining keys to include. For more details: https://localazy.com/docs/cli/excluding-string-keys

excludeKeys string[]

A list of rules for determining keys to exclude. For more details: https://localazy.com/docs/cli/excluding-string-keys

files string | array | object

The files contains a list of rules for collecting files for upload. You can include files by their exact path or by using standard path wildcards ? (single character), * (anything except path separator), ** (anything including path separators). You can control files that you want to upload with exclusion rules and conditions.

Any of: string string, files[] files[], subtype object
conversion object

The conversion property describes how to convert localizable files between different formats. https://localazy.com/docs/cli/format-conversions#full-configuration

3 nested properties
folder string

The base folder all operations are relative to. It can be relative or absolute path.

excludedLangs string[]

The list of languages to exclude from processing.

actions array | object

Define the conversion rules.

Any of: actions[] actions[], actions object
download object

The download property describes how to process translated files and where to write them. https://localazy.com/docs/cli/download-reference

10 nested properties
includeSourceLang boolean

By default, the source language is not downloaded. Set it to true to include source files as well.

Default: false
folder string

Base folder for the download action. It can be relative or absolute path.

metadataFileJson string

Path where JSON language metadata file should be downloaded. https://localazy.com/docs/cli/metadata-file

metadataFileJs string

Path where JavaScript language metadata file should be downloaded. https://localazy.com/docs/cli/metadata-file

metadataFileTs string

Path where TypeScript language metadata file should be downloaded. https://localazy.com/docs/cli/metadata-file

metadataVersion string

By default, export oldest metadata format. Set it to 2 to export the newest metadata format.

langAliases object

Maps languages to different ones.

langExpansions object

Adds additional languages to output; the same file will be saved several time.

excludedLangs array | string

The list of languages to exclude from processing.

Any of: string[] string[], string string
files string | array | object

The rules to apply to all translated files. It can be either array object or a pattern string.

Any of: string string, files_2[] files_2[], subtype_1 object

Definitions

transformations object
name string

The name of the newly created variable. It will be accessible as ${name}. https://localazy.com/docs/cli/variables

source string

The source of the variable. Usually, it's a string consisting of other variables. https://localazy.com/docs/cli/variables

operations string | array

The operations to perform on the source string to get the new variable. https://localazy.com/docs/cli/transformations#operations

Any of: string string, string[] string[]
features string
conditions string | array
subtype object
type string

Type of files you are about to upload. For more info about supported file formats check out the documentation. https://localazy.com/docs/cli/upload-reference

Values: "android" "json" "arb" "ios-strings" "ios-plist" "ios-stringsdict" "xliff" "resx" "yaml" "po" "pot" "json5" "hjson" "js" "properties" "ini" "php" "qt-ts" "text" "csv" "neon" "toml" "excel" "ods" "srt" "tmx" "xcstrings" "copy" "captivate" "ispring" "framemaker"
features string | array

The list of features (eg. how to parse plurals) to enable for the given type. See the list of supported file formats in documentation for more information. https://localazy.com/docs/cli/upload-reference#supported-file-formats

Any of: features string, features[] features[]
lang string

The language of the file being uploaded (format: ll-Scrp-RR). Special default value inherited from the project’s base language.

Default: "inherited"
group string

Allows to assign files to groups and run their rules separately.

buildType string

The custom build type for the file. See Modules, libraries, flavors for more details. https://localazy.com/docs/cli/modules-libraries-product-flavors#build-type

productFlavors string

The custom product flavors for the file. See Modules, libraries, flavors for more details. https://localazy.com/docs/cli/modules-libraries-product-flavors#product-flavors

module string

The module the file belongs to. See Modules, libraries, flavors for more details. https://localazy.com/docs/cli/modules-libraries-product-flavors#module

library string

The library the file belongs to. See Modules, libraries, flavors for more details. https://localazy.com/docs/cli/modules-libraries-product-flavors#library

path string

The path to be used for upload.

file string

The file name to be used for upload.

pattern string

The pattern to use for collecting files. Standard path wildcards ? (single character), * (anything except path separator), ** (anything including path separators) are supported.

excludes string[]

The list of patterns used for excluding files. Standard path wildcards ? (single character), * (anything except path separator), ** (anything including path separators) are supported.

conditions string | array

With conditions, you can introduce complex logic for processing files when they are downloaded. See documentation for options. https://localazy.com/docs/cli/conditions

Any of: string string, conditions[] conditions[]
remap object

The remap property allows you to remap the structure of the file. https://localazy.com/docs/cli/remap

5 nested properties
type string

The target type of the file to be uploaded data remapped to.

Values: "android" "json" "json-multilingual" "arb" "require-js" "json-mozzila" "ios-strings" "ios-plist" "ios-stringsdict" "resx" "yaml" "yaml-rails" "yaml-multilingual" "po" "json5" "json5-multilingual" "hjson" "hjson-multilingual" "js" "js-multilingual" "properties" "ini" "ini-multilingual" "php" "php-multilingual" "qt-ts" "csv" "csv-multilingual" "neon" "neon-multilingual" "toml" "toml-multilingual" "excel" "excel-multilingual" "ods" "ods-multilingual" "tmx" "xcstrings" "api"
flatten string

A separator to be used for flattening structured/nested keys.

nest string

A separator to be used for nesting flatten keys.

array string

A type of plural to be used for remapping plurals.

plural string

A type of arrays to be used for remapping arrays.

files string | object
actions object
group string

Allows to assign files to groups and run their rules separately.

conditions string | array

With conditions, you can introduce complex logic for processing files when they are downloaded. See documentation for options. https://localazy.com/docs/cli/conditions

Any of: string string, conditions[] conditions[]
keySeparator string

The separator used for building structured keys for includeKeys and excludeKeys. For more details: https://localazy.com/docs/cli/excluding-string-keys

Default: "."
includeKeys string[]

A list of rules for determining keys to include. For more details: https://localazy.com/docs/cli/excluding-string-keys

excludeKeys string[]

A list of rules for determining keys to exclude. For more details: https://localazy.com/docs/cli/excluding-string-keys

replacements object

Define rules for text changes and placeholder replacements.

langAliases object

Maps languages to different ones.

langExpansions object

Adds additional languages to output; the same file will be saved several time.

stop boolean

If true, no more rules are processed for the given file. Only makes sense if more output rules are defined. By default, the first matching rule stops processing for the file.

Default: false
changeExtension string

If defined, change the extension of the output file. Applied to the final output after resolving all variables.

output string

The pattern for generating output path and file. Use variables to build the pattern. https://localazy.com/docs/cli/variables

type string

The type of the conversion to be performed with files. See docs for available types and their parameters. https://localazy.com/docs/cli/format-conversions#available-conversions

Values: "android" "arb" "csv" "csv-multilingual" "excel" "excel-multilingual" "ini" "ini-multilingual" "ios-strings" "ios-stringsdict" "json" "json-mozilla" "json-multilingual" "mo" "neon" "neon-multilingual" "ods" "ods-multilingual" "php" "php-multilingual" "po" "resx" "tmx" "toml" "toml-multilingual" "xcstrings" "xliff12" "xliff20" "yaml" "yaml-multilingual" "yaml-rails"
arrayType string

If the type supports more formats for string arrays, you can select the desired one with this parameter.

Values: "array" "array_br"
pluralType string

If the type supports more formats for plurals, you can select the desired one with this parameter.

Values: "plural_postfix_br" "plural_postfix_sd" "plural_postfix_dd" "plural_postfix_us" "plural_postfix_cc" "plural_i18next" "plural_object" "plural_icu" "plural_array" "plural_br"
forceArrayType boolean

If the conversion is made between types that support the same format for string arrays, the format is retained unless you explicitly set this parameter to true to force change.

Default: false
forcePluralType boolean

If the conversion is made between types that support the same format for plurals, the format is retained unless you explicitly set this parameter to true to force change.

Default: false
filterStrings boolean

If the conversion type allows filtering, you can enable this option to filter strings out of the output file.

filterArrays boolean

If the conversion type allows filtering, you can enable this option to filter string arrays out of the output file.

filterPlurals boolean

If the conversion type allows filtering, you can enable this option to filter plurals out of the output file.

params object

Some of the conversion types support additional parameters. See documentation for details.

subtype_1 object
group string

Allows to assign files to groups and run their rules separately.

conditions string | array

With conditions, you can introduce complex logic for processing files when they are downloaded. See documentation for options. https://localazy.com/docs/cli/conditions

Any of: string string, conditions[] conditions[]
stop boolean

If true, no more rules are processed for the given file. Only makes sense if more output rules are defined. By default, the first matching rule stops processing for the file.

Default: false
output string

The pattern for generating output path and file. Use variables to build the pattern.

files_2 string | object