Documentation section

Format Conversions

Learn how to convert localizable files between different formats easily with Localazy CLI.

You can convert translated files between different formats by including conversion section in your localazy.json file. You can also filter content, change how plurals and string arrays are stored, convert files to multilingual ones, etc. The conversion section behaves similarly to the download section and you can use the same variables.

Running conversions πŸ”—

Conversions are processed along with downloading when localazy download is invoked. If you only need to perform conversions, you can omit the download section in your configuration file. Also, you can use groups to process download/conversions separately.

Full configuration πŸ”—

{
  "conversion": {
    "folder": ".",
    "excludedLangs": ["cs", "de"],
    "actions": {
      "group": "conversion",
      "stop": false,
      "conditions": [ ... ],
      "changeExtension": "xml",
      "output": "path/${lang}/${file}",
      "type": "json",
      "keySeparator": ".",
      "includeKeys": ["REGEX:key_.*"],
      "excludeKeys": ["REGEX:private_.*"],   
      "replacements": {
        "%d": "{{placeholder}}",
        "REGEX:\\(([a-Z]+))": "{{(%1%)}}"
      },
      "langAliases": {
        "zh-Hant-TW": "zh-TW"
      },
      "langExpansions": {
        "de": ["de-DE", "de-CH"]
      },            
      "arrayType": "array_br",
      "pluralType": "plural_icu",
      "forceArrayType": false,
      "forcePluralType": true,
      "filterStrings": false,
      "filterArrays": false,
      "filterPlurals": false,      
      "params": {
        "variable": "COUNT"
      }
    }
  }
}
Field Default Description
folder . The base folder all operations are relative to. It can be a relative or absolute path.
excludedLangs [] The list of languages to exclude from processing.
actions.group β€” Allows to filter rules using groups. See groups for more information.
actions.stop false If true, no more rules are processed for the given file. Only makes sense if more output rules are defined. By default, all rules are processed (contrary to the download section).
actions.conditions [] Allows for more complex filtering of rules. See conditions for more details.
actions.changeExtension β€” If defined, change the extension of the output file. Applied to the final output after resolving all variables.
actions.output β€” The pattern for generating output path and file. Use variables to build the pattern.
actions.type required The type of the conversion to be performed with files. See below for available types and their parameters.
actions.keySeparator . The separator used for building structured keys for includeKeys and excludeKeys. See excluding string keys for more details.
actions.includeKeys [] A list of rules for determining keys to include. See excluding string keys for more details.
actions.excludeKeys [] A list of rules for determining keys to exclude. See excluding string keys for more details.
actions.replacements {} Define rules for text changes and placeholder replacements. Please see the dedicated chapter below.
actions.langAliases β€” Maps languages to different codes.
actions.langExpansions β€” Adds additional languages to output; the same file will be saved several times.
actions.arrayType β€” If the type supports more formats for string arrays, you can select the desired one with this parameter. See the Array types section for each format below.
actions.pluralType β€” If the type supports more formats for plurals, you can select the desired one with this parameter. See the Plural types section for each format below.
actions.forceArrayType false 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.
actions.forcePluralType false 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.
actions.filterStrings null If the conversion type allows filtering, you can enable this option to filter strings out of the output file.
actions.filterArrays null If the conversion type allows filtering, you can enable this option to filter string arrays out of the output file.
actions.filterPlurals null If the conversion type allows filtering, you can enable this option to filter plurals out of the output file.
actions.params {} Additional parameters for the conversion type, plural and array formats. See the Parameters section for each format below.

Multiple conversion rules πŸ”—

You can use an array for actions to provide more conversion rules.

{
  "conversion": {
    "actions": [
      {
        "type": "android",
        "output": "path/to/android/files/${lang}/${file}"
      },
      {
        "type": "ios-strings",
        "output": "path/to/ios/files/${lang}/${file}"
      }
    ]
  }
}

When more rules are defined, each of the files goes through all of them.

You can store all or some of the converted files in multiple locations. When using more rules, conditions and stop are useful concepts.

How conversion works πŸ”—

  • Your files are downloaded from our servers.
  • Each of the files goes through all the conversion rules.
  • Rules with conditions evaluated to false are skipped.
  • When the rule is valid (conditions are evaluated to true) and stop is true, no more rules are processed.
  • If the rule is valid, converted file is requested from the server and stored to the desired location.

Example conversion πŸ”—

{
  "conversion": {
    "actions": {
      "group": "convert-files",
      "output": "converted/${file}",
      "conditions": "startWith: ios_, ${file}",
      "changeExtension": "json",
      "type": "json-multilingual",
      "pluralType": "plural_icu",
      "forcePluralType": true,
      "filterArray": true,
      "params": {
        "variable": "COUNT"
      }
    }
  }
}
  • The example code above is executed only when localazy download convert-files command is invoked.
  • It applies only to files with name starting with ios_.
  • Files are converted to multilingual JSON and stored to converted/${file}.
  • The extension for such files is changed to json, so e.q. ios_main_menu.xml is stored as ios_main_menu.json.
  • All plurals are forced to be in plural_icu format with the variable being COUNT (specified by params).
  • All string arrays are filtered out.

Text changes & placeholder replacements πŸ”—

Using actions.replacements, you can replace text while converting your files. It’s a convenient way how to adapt, e.q., placeholders and platform-specific texts.

All the replacement rules are applied to all texts.

There are two different ways how to define rules:

Simple replacements πŸ”—

"replacements": {
  "source": "target"
}

Replace substrings source to target. The replacement is case-sensitive.

Regex replacements πŸ”—

"replacements": {
  "REGEX:pre-(.*)-fix": "target: (%1%)"
}

Replace substrings matching regex pattern pre-(.*)-fix with target: (%1%) where (%1%) is special placeholder that references matched group from the regex.

You can use (%1%), (%2%), … to use matched groups in the replacement. You can use (%0%) to use the whole matching substring.

Important note πŸ”—

Stored files overwrite any of existing files. Be careful!

Test before storing πŸ”—

Run the Localazy CLI with parameter -s to output the list of files that are about to be written. This way, you are sure everything is stored correctly, and you are not about to mess your project.

The parameter -s switches CLI to the simulation mode – everything is processed as usual, but the output files are not written to disk.

Available conversions πŸ”—

  • android - Convert to Android XML
  • arb - Convert to Flutter ARB
  • csv - Convert to CSV/TSV
  • csv-multilingual - Convert to multilingual CSV/TSV
  • excel - Convert to Excel (.xls/.xlsx)
  • excel-multilingual - Convert to multilingual Excel (.xls/.xlsx)
  • ini - Convert to INI
  • ini-multilingual - Convert to multilingual INI
  • ios-strings - Convert to iOS’s .strings
  • ios-stringsdict - Convert to iOS’s .stringsdict
  • json - Convert to JSON
  • json-mozilla - Convert to Mozilla i18n JSON
  • json-multilingual - Convert to multilingual JSON
  • neon - Convert to Nette Neon
  • neon-multilingual - Convert to multilingual Nette Neon
  • ods - Convert to OpenOffice (.ods)
  • ods-multilingual - Convert to multilingual OpenOffice (.ods)
  • php - Convert to PHP
  • php-multilingual - Convert to multilingual PHP
  • toml - Convert to TOML
  • toml-multilingual - Convert to multilingual TOML
  • yaml - Convert to YAML
  • yaml-multilingual - Convert to multilingual YAML
  • yaml-rails - Convert to Rails i18n YAML

Detailed information πŸ”—

android | Convert to Android XML πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

arb | Convert to Flutter ARB πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • flatten_keys - Flattening structured keys
    • no - Don’t flatten structured keys
    • dot [default] - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • arb_locale - Generating @@locale key
    • none - Don’t generate @@locale
    • lang - Generate @@locale with language code only
    • full [default] - Generate @@locale with full locale

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Array types

  • array [default] - Output string-array as array
  • array_br - Output plurals as keys suffixed by [index]

Plural types

  • plural_postfix_br - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc [default] - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_object - Output plurals as structured object
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)

csv | Convert to CSV/TSV πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases.
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • flatten_keys - Flattening structured keys
    • dot [default] - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • encoding - Output file encoding
    • auto [default] - Automatic
    • utf8 - UTF-8
    • utf16 - UTF-16
    • utf16le - UTF-16LE
    • utf16be - UTF-16BE
    • ansi - ANSI ASCII
  • delimiter - Column delimiter
    • comma [default] - Use COMMA as as delimiter
    • semicolon - Use SEMICOLON as a delimiter
    • tab - Use TAB as a delimiter
  • quotes - Quotes
    • double [default] - Use double quotes
    • single - Use single quotes
    • backslash - Use backslashes
  • force_quotes - Force quotes
    • true - Force quotes for all values
    • false [default] - Only quote values if necessary

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)

csv-multilingual | Convert to multilingual CSV/TSV πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases.
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • flatten_keys - Flattening structured keys
    • dot [default] - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • encoding - Output file encoding
    • auto [default] - Automatic
    • utf8 - UTF-8
    • utf16 - UTF-16
    • utf16le - UTF-16LE
    • utf16be - UTF-16BE
    • ansi - ANSI ASCII
  • delimiter - Column delimiter
    • comma [default] - Use COMMA as as delimiter
    • semicolon - Use SEMICOLON as a delimiter
    • tab - Use TAB as a delimiter
  • quotes - Quotes
    • double [default] - Use double quotes
    • single - Use single quotes
    • backslash - Use backslashes
  • force_quotes - Force quotes
    • true - Force quotes for all values
    • false [default] - Only quote values if necessary
  • lang_format - Format of the locale used for multilingual keys
    • ll-rr-scrp [default] - LL, LL-RR, LL-SCRP, LL-RR-SCRP
    • ll-rr#scrp - LL, LL-RR, LL#SCRP, LL-RR#SCRP
    • ll_scrp_rr - LL, LL_RR, LL_SCRP, LL_SCRP_RR
    • ll_rr_scrp - LL, LL_RR, LL_SCRP, LL_RR_SCRP
    • ll+rr+scrp - LL, LL+RR, LL+SCRP, LL+RR+SCRP
    • ll+scrp+rr - LL, LL+RR, LL+SCRP, LL+SCRP+RR
    • ll-scrp_rr - LL, LL_RR, LL-SCRP, LL-SCRP_RR
    • locale_name - Locale name (English, German, …)
    • bcp - b+LL, b+LL+RR, b+LL+SCRP, b+LL+SCRP+RR
    • android_noscript - LL, LL-rRR, LL, LL-rRR
    • android - LL, LL-rRR, b+LL+SCRP, b+LL+SCRP+RR

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)

excel | Convert to Excel (.xls/.xlsx) πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases.
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • flatten_keys - Flattening structured keys
    • dot [default] - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)

excel-multilingual | Convert to multilingual Excel (.xls/.xlsx) πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases.
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • flatten_keys - Flattening structured keys
    • dot [default] - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • lang_format - Format of the locale used for multilingual keys
    • ll-rr-scrp [default] - LL, LL-RR, LL-SCRP, LL-RR-SCRP
    • ll-rr#scrp - LL, LL-RR, LL#SCRP, LL-RR#SCRP
    • ll_scrp_rr - LL, LL_RR, LL_SCRP, LL_SCRP_RR
    • ll_rr_scrp - LL, LL_RR, LL_SCRP, LL_RR_SCRP
    • ll+rr+scrp - LL, LL+RR, LL+SCRP, LL+RR+SCRP
    • ll+scrp+rr - LL, LL+RR, LL+SCRP, LL+SCRP+RR
    • ll-scrp_rr - LL, LL_RR, LL-SCRP, LL-SCRP_RR
    • locale_name - Locale name (English, German, …)
    • bcp - b+LL, b+LL+RR, b+LL+SCRP, b+LL+SCRP+RR
    • android_noscript - LL, LL-rRR, LL, LL-rRR
    • android - LL, LL-rRR, b+LL+SCRP, b+LL+SCRP+RR
  • excel_type - Excel file format
    • xlsx [default] - New OpenDocument XML format (Excel 2007+)
    • xls - Old XLS format (Excel 2003 and below)

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)

ini | Convert to INI πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases.
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • force_escaping - Forcing aggressive escaping.
    • true - Force escaping
    • false [default] - Don’t force unnecessary escaping
  • flatten_keys - Flattening structured keys
    • dot [default] - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • encoding - Output file encoding
    • auto [default] - Automatic
    • utf8 - UTF-8
    • utf16 - UTF-16
    • utf16le - UTF-16LE
    • utf16be - UTF-16BE
    • ansi - ANSI ASCII

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)

ini-multilingual | Convert to multilingual INI πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases.
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • force_escaping - Forcing aggressive escaping.
    • true - Force escaping
    • false [default] - Don’t force unnecessary escaping
  • flatten_keys - Flattening structured keys
    • dot [default] - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • encoding - Output file encoding
    • auto [default] - Automatic
    • utf8 - UTF-8
    • utf16 - UTF-16
    • utf16le - UTF-16LE
    • utf16be - UTF-16BE
    • ansi - ANSI ASCII
  • lang_format - Format of the locale used for multilingual keys
    • ll-rr-scrp [default] - LL, LL-RR, LL-SCRP, LL-RR-SCRP
    • ll-rr#scrp - LL, LL-RR, LL#SCRP, LL-RR#SCRP
    • ll_scrp_rr - LL, LL_RR, LL_SCRP, LL_SCRP_RR
    • ll_rr_scrp - LL, LL_RR, LL_SCRP, LL_RR_SCRP
    • ll+rr+scrp - LL, LL+RR, LL+SCRP, LL+RR+SCRP
    • ll+scrp+rr - LL, LL+RR, LL+SCRP, LL+SCRP+RR
    • ll-scrp_rr - LL, LL_RR, LL-SCRP, LL-SCRP_RR
    • locale_name - Locale name (English, German, …)
    • bcp - b+LL, b+LL+RR, b+LL+SCRP, b+LL+SCRP+RR
    • android_noscript - LL, LL-rRR, LL, LL-rRR
    • android - LL, LL-rRR, b+LL+SCRP, b+LL+SCRP+RR

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)

ios-strings | Convert to iOS’s .strings πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • flatten_keys - Flattening structured keys
    • dot [default] - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • encoding - Output file encoding
    • auto [default] - Automatic
    • utf8 - UTF-8
    • utf16 - UTF-16
    • utf16le - UTF-16LE
    • utf16be - UTF-16BE

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

ios-stringsdict | Convert to iOS’s .stringsdict πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases.
    • true - Filter untranslated phrases out of the file.
    • false [default] - Use the source language translation for the untranslated phrases.
  • flatten_keys - Flattening structured keys
    • dot [default] - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -

Filtering options

  • strings are filtered out
  • arrays are filtered out

Required parameters

  • variable - Variable name for plural structure (VARIABLE, COUNT, …)

json | Convert to JSON πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • clear_params - Clearing additional phrases metadata.
    • true - Clear all additional phrase metadata
    • false [default] - Keep additional phrase metadata, except for those changed for plurals/arrays
  • flatten_keys - Flattening structured keys
    • no [default] - Don’t flatten structured keys
    • dot - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Array types

  • array [default] - Output string-array as array
  • array_br - Output plurals as keys suffixed by [index]

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_object - Output plurals as structured object
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)
  • plural_array - Output plurals as array of objects
    • Required param: type - Key used for storing the plural type
    • Required param: content - Key used for storing the translation

json-mozilla | Convert to Mozilla i18n JSON πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • flatten_keys - Flattening structured keys
    • no [default] - Don’t flatten structured keys
    • dot - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)

json-multilingual | Convert to multilingual JSON πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • clear_params - Clearing additional phrases metadata.
    • true - Clear all additional phrase metadata
    • false [default] - Keep additional phrase metadata, except for those changed for plurals/arrays
  • flatten_keys - Flattening structured keys
    • no [default] - Don’t flatten structured keys
    • dot - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • lang_format - Format of the locale used for multilingual keys
    • ll-rr-scrp [default] - LL, LL-RR, LL-SCRP, LL-RR-SCRP
    • ll-rr#scrp - LL, LL-RR, LL#SCRP, LL-RR#SCRP
    • ll_scrp_rr - LL, LL_RR, LL_SCRP, LL_SCRP_RR
    • ll_rr_scrp - LL, LL_RR, LL_SCRP, LL_RR_SCRP
    • ll+rr+scrp - LL, LL+RR, LL+SCRP, LL+RR+SCRP
    • ll+scrp+rr - LL, LL+RR, LL+SCRP, LL+SCRP+RR
    • ll-scrp_rr - LL, LL_RR, LL-SCRP, LL-SCRP_RR
    • locale_name - Locale name (English, German, …)
    • bcp - b+LL, b+LL+RR, b+LL+SCRP, b+LL+SCRP+RR
    • android_noscript - LL, LL-rRR, LL, LL-rRR
    • android - LL, LL-rRR, b+LL+SCRP, b+LL+SCRP+RR

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Array types

  • array [default] - Output string-array as array
  • array_br - Output plurals as keys suffixed by [index]

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_object - Output plurals as structured object
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)
  • plural_array - Output plurals as array of objects
    • Required param: type - Key used for storing the plural type
    • Required param: content - Key used for storing the translation

neon | Convert to Nette Neon πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • clear_params - Clearing additional phrases metadata.
    • true - Clear all additional phrase metadata
    • false [default] - Keep additional phrase metadata, except for those changed for plurals/arrays
  • flatten_keys - Flattening structured keys
    • no [default] - Don’t flatten structured keys
    • dot - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Array types

  • array [default] - Output string-array as array
  • array_br - Output plurals as keys suffixed by [index]

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_object - Output plurals as structured object
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)
  • plural_array - Output plurals as array of objects
    • Required param: type - Key used for storing the plural type
    • Required param: content - Key used for storing the translation

neon-multilingual | Convert to multilingual Nette Neon πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • clear_params - Clearing additional phrases metadata.
    • true - Clear all additional phrase metadata
    • false [default] - Keep additional phrase metadata, except for those changed for plurals/arrays
  • flatten_keys - Flattening structured keys
    • no [default] - Don’t flatten structured keys
    • dot - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • lang_format - Format of the locale used for multilingual keys
    • ll-rr-scrp [default] - LL, LL-RR, LL-SCRP, LL-RR-SCRP
    • ll-rr#scrp - LL, LL-RR, LL#SCRP, LL-RR#SCRP
    • ll_scrp_rr - LL, LL_RR, LL_SCRP, LL_SCRP_RR
    • ll_rr_scrp - LL, LL_RR, LL_SCRP, LL_RR_SCRP
    • ll+rr+scrp - LL, LL+RR, LL+SCRP, LL+RR+SCRP
    • ll+scrp+rr - LL, LL+RR, LL+SCRP, LL+SCRP+RR
    • ll-scrp_rr - LL, LL_RR, LL-SCRP, LL-SCRP_RR
    • locale_name - Locale name (English, German, …)
    • bcp - b+LL, b+LL+RR, b+LL+SCRP, b+LL+SCRP+RR
    • android_noscript - LL, LL-rRR, LL, LL-rRR
    • android - LL, LL-rRR, b+LL+SCRP, b+LL+SCRP+RR

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Array types

  • array [default] - Output string-array as array
  • array_br - Output plurals as keys suffixed by [index]

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_object - Output plurals as structured object
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)
  • plural_array - Output plurals as array of objects
    • Required param: type - Key used for storing the plural type
    • Required param: content - Key used for storing the translation

ods | Convert to OpenOffice (.ods) πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases.
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • flatten_keys - Flattening structured keys
    • dot [default] - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)

ods-multilingual | Convert to multilingual OpenOffice (.ods) πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases.
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • flatten_keys - Flattening structured keys
    • dot [default] - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • lang_format - Format of the locale used for multilingual keys
    • ll-rr-scrp [default] - LL, LL-RR, LL-SCRP, LL-RR-SCRP
    • ll-rr#scrp - LL, LL-RR, LL#SCRP, LL-RR#SCRP
    • ll_scrp_rr - LL, LL_RR, LL_SCRP, LL_SCRP_RR
    • ll_rr_scrp - LL, LL_RR, LL_SCRP, LL_RR_SCRP
    • ll+rr+scrp - LL, LL+RR, LL+SCRP, LL+RR+SCRP
    • ll+scrp+rr - LL, LL+RR, LL+SCRP, LL+SCRP+RR
    • ll-scrp_rr - LL, LL_RR, LL-SCRP, LL-SCRP_RR
    • locale_name - Locale name (English, German, …)
    • bcp - b+LL, b+LL+RR, b+LL+SCRP, b+LL+SCRP+RR
    • android_noscript - LL, LL-rRR, LL, LL-rRR
    • android - LL, LL-rRR, b+LL+SCRP, b+LL+SCRP+RR

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)

php | Convert to PHP πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • clear_params - Clearing additional phrases metadata.
    • true - Clear all additional phrase metadata
    • false [default] - Keep additional phrase metadata, except for those changed for plurals/arrays
  • flatten_keys - Flattening structured keys
    • no [default] - Don’t flatten structured keys
    • dot - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Array types

  • array [default] - Output string-array as array
  • array_br - Output plurals as keys suffixed by [index]

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_object - Output plurals as structured object
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)
  • plural_array - Output plurals as array of objects
    • Required param: type - Key used for storing the plural type
    • Required param: content - Key used for storing the translation

php-multilingual | Convert to multilingual PHP πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • clear_params - Clearing additional phrases metadata.
    • true - Clear all additional phrase metadata
    • false [default] - Keep additional phrase metadata, except for those changed for plurals/arrays
  • flatten_keys - Flattening structured keys
    • no [default] - Don’t flatten structured keys
    • dot - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • lang_format - Format of the locale used for multilingual keys
    • ll-rr-scrp [default] - LL, LL-RR, LL-SCRP, LL-RR-SCRP
    • ll-rr#scrp - LL, LL-RR, LL#SCRP, LL-RR#SCRP
    • ll_scrp_rr - LL, LL_RR, LL_SCRP, LL_SCRP_RR
    • ll_rr_scrp - LL, LL_RR, LL_SCRP, LL_RR_SCRP
    • ll+rr+scrp - LL, LL+RR, LL+SCRP, LL+RR+SCRP
    • ll+scrp+rr - LL, LL+RR, LL+SCRP, LL+SCRP+RR
    • ll-scrp_rr - LL, LL_RR, LL-SCRP, LL-SCRP_RR
    • locale_name - Locale name (English, German, …)
    • bcp - b+LL, b+LL+RR, b+LL+SCRP, b+LL+SCRP+RR
    • android_noscript - LL, LL-rRR, LL, LL-rRR
    • android - LL, LL-rRR, b+LL+SCRP, b+LL+SCRP+RR

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Array types

  • array [default] - Output string-array as array
  • array_br - Output plurals as keys suffixed by [index]

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_object - Output plurals as structured object
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)
  • plural_array - Output plurals as array of objects
    • Required param: type - Key used for storing the plural type
    • Required param: content - Key used for storing the translation

toml | Convert to TOML πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • clear_params - Clearing additional phrases metadata.
    • true - Clear all additional phrase metadata
    • false [default] - Keep additional phrase metadata, except for those changed for plurals/arrays
  • flatten_keys - Flattening structured keys
    • no [default] - Don’t flatten structured keys
    • dot - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Array types

  • array [default] - Output string-array as array
  • array_br - Output plurals as keys suffixed by [index]

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_object - Output plurals as structured object
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)
  • plural_array - Output plurals as array of objects
    • Required param: type - Key used for storing the plural type
    • Required param: content - Key used for storing the translation

toml-multilingual | Convert to multilingual TOML πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • clear_params - Clearing additional phrases metadata.
    • true - Clear all additional phrase metadata
    • false [default] - Keep additional phrase metadata, except for those changed for plurals/arrays
  • flatten_keys - Flattening structured keys
    • no [default] - Don’t flatten structured keys
    • dot - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • lang_format - Format of the locale used for multilingual keys
    • ll-rr-scrp [default] - LL, LL-RR, LL-SCRP, LL-RR-SCRP
    • ll-rr#scrp - LL, LL-RR, LL#SCRP, LL-RR#SCRP
    • ll_scrp_rr - LL, LL_RR, LL_SCRP, LL_SCRP_RR
    • ll_rr_scrp - LL, LL_RR, LL_SCRP, LL_RR_SCRP
    • ll+rr+scrp - LL, LL+RR, LL+SCRP, LL+RR+SCRP
    • ll+scrp+rr - LL, LL+RR, LL+SCRP, LL+SCRP+RR
    • ll-scrp_rr - LL, LL_RR, LL-SCRP, LL-SCRP_RR
    • locale_name - Locale name (English, German, …)
    • bcp - b+LL, b+LL+RR, b+LL+SCRP, b+LL+SCRP+RR
    • android_noscript - LL, LL-rRR, LL, LL-rRR
    • android - LL, LL-rRR, b+LL+SCRP, b+LL+SCRP+RR

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Array types

  • array [default] - Output string-array as array
  • array_br - Output plurals as keys suffixed by [index]

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_object - Output plurals as structured object
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)
  • plural_array - Output plurals as array of objects
    • Required param: type - Key used for storing the plural type
    • Required param: content - Key used for storing the translation

yaml | Convert to YAML πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • clear_params - Clearing additional phrases metadata.
    • true - Clear all additional phrase metadata
    • false [default] - Keep additional phrase metadata, except for those changed for plurals/arrays
  • flatten_keys - Flattening structured keys
    • no [default] - Don’t flatten structured keys
    • dot - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Array types

  • array [default] - Output string-array as array
  • array_br - Output plurals as keys suffixed by [index]

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_object - Output plurals as structured object
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)
  • plural_array - Output plurals as array of objects
    • Required param: type - Key used for storing the plural type
    • Required param: content - Key used for storing the translation

yaml-multilingual | Convert to multilingual YAML πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • clear_params - Clearing additional phrases metadata.
    • true - Clear all additional phrase metadata
    • false [default] - Keep additional phrase metadata, except for those changed for plurals/arrays
  • flatten_keys - Flattening structured keys
    • no [default] - Don’t flatten structured keys
    • dot - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -
  • lang_format - Format of the locale used for multilingual keys
    • ll-rr-scrp [default] - LL, LL-RR, LL-SCRP, LL-RR-SCRP
    • ll-rr#scrp - LL, LL-RR, LL#SCRP, LL-RR#SCRP
    • ll_scrp_rr - LL, LL_RR, LL_SCRP, LL_SCRP_RR
    • ll_rr_scrp - LL, LL_RR, LL_SCRP, LL_RR_SCRP
    • ll+rr+scrp - LL, LL+RR, LL+SCRP, LL+RR+SCRP
    • ll+scrp+rr - LL, LL+RR, LL+SCRP, LL+SCRP+RR
    • ll-scrp_rr - LL, LL_RR, LL-SCRP, LL-SCRP_RR
    • locale_name - Locale name (English, German, …)
    • bcp - b+LL, b+LL+RR, b+LL+SCRP, b+LL+SCRP+RR
    • android_noscript - LL, LL-rRR, LL, LL-rRR
    • android - LL, LL-rRR, b+LL+SCRP, b+LL+SCRP+RR

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Array types

  • array [default] - Output string-array as array
  • array_br - Output plurals as keys suffixed by [index]

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_object - Output plurals as structured object
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)
  • plural_array - Output plurals as array of objects
    • Required param: type - Key used for storing the plural type
    • Required param: content - Key used for storing the translation

yaml-rails | Convert to Rails i18n YAML πŸ”—

Supported input formats

android, arb, csv, excel, hjson, ini, ios-plist, ios-strings, ios-stringsdict, js, json, json5, neon, ods, php, po, properties, qt-ts, resx, text, toml, yaml

Parameters

  • filter_untranslated - Filtering of untranslated phrases
    • true - Filter untranslated phrases out of the file
    • false [default] - Use the source language translation for the untranslated phrases
  • clear_params - Clearing additional phrases metadata.
    • true - Clear all additional phrase metadata
    • false [default] - Keep additional phrase metadata, except for those changed for plurals/arrays
  • flatten_keys - Flattening structured keys
    • no [default] - Don’t flatten structured keys
    • dot - Flatten structured keys with .
    • underscore - Flatten structured keys with _
    • dash - Flatten structured keys with -

Filtering options

  • filterStrings is available
  • filterArrays is available
  • filterPlurals is available

Array types

  • array [default] - Output string-array as array
  • array_br - Output plurals as keys suffixed by [index]

Plural types

  • plural_postfix_br [default] - Output plurals as keys suffixed by [pluralForm]
  • plural_postfix_sd - Output plurals as keys suffixed by .pluralForm
  • plural_postfix_dd - Output plurals as keys suffixed by :pluralForm
  • plural_postfix_us - Output plurals as keys suffixed by _pluralForm
  • plural_postfix_cc - Output plurals as keys suffixed by PluralForm
  • plural_i18next - Output plurals in i18Next format
  • plural_object - Output plurals as structured object
  • plural_icu - Output plurals in ICU message format
    • Required param: variable - Variable name for ICU message (count, variable, etc.)
  • plural_array - Output plurals as array of objects
    • Required param: type - Key used for storing the plural type
    • Required param: content - Key used for storing the translation