Skip to main content

crowdin string add


Add a new source string


crowdin string add <text> [CONFIG OPTIONS] [OPTIONS]


Set text for the new source string


Set an identifier for the new source string

Set a max. length of the translated text for the new source string

Add a context for the new source string

Specify a file path to add the new source string to. Multiple files can be specified

Attach labels to strings (multiple labels can be specified)

-b, --branch=
Specify branch name. Default: none

Specifies whether the added strings should be hidden or not

Plural form one (singular)

Plural form two (dual)

Plural form few (paucal)

Plural form many

Plural form zero

-V, --version
Display version information and exit

-h, --help
Display help message and exit

Disable progress on executed command

-v, --verbose
Provide more information about the command execution

Disable colors and styles

-c, --config=
Specify a path to the configuration file. Default: crowdin.yml or crowdin.yaml

Specify a path to user-specific credentials

Provide plain, processable output

Config Options

-T, --token=
Personal access token required for authentication

Base URL of Crowdin server for API requests execution

Path to your project directory on a local machine

-i, --project-id=
Numeric ID of the project


Add a new string with the app.home key to the src/values/strings.xml file:

crowdin string add Home --file src/values/strings.xml --identifier "app.home"

Add a new string with the key to the src/values/strings.xml file (branch main):

crowdin string add Download --file src/values/strings.xml --identifier "" --branch main

Add a new string with the app.hello key to the strings.xml file, with labels app and home:

crowdin string add "Hello world" --file strings.xml --identifier "app.hello" --label app --label home

Add a new plural string:

crowdin string add Cats --file strings.xml --identifier "ui.cats" --one "cat"

In this example, the <text> argument is used as the "other" plural form.

If your source language contains more plural forms, you can also specify them using the `--two', `--few', `--many' and `--zero' options.