From a12323e8e1444b3d8e6464ec933bf8924e5eb5d9 Mon Sep 17 00:00:00 2001 From: Petro Silenius Date: Tue, 17 Jan 2023 23:48:01 +0200 Subject: [PATCH] Update docs on file download plural format supporting i18next_v4 format --- cmd/file.go | 2 +- docs/lokalise2_file_download.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/file.go b/cmd/file.go index 2804a3f..08147a6 100644 --- a/cmd/file.go +++ b/cmd/file.go @@ -283,7 +283,7 @@ func init() { fs.StringSliceVar(&downloadOpts.FilterRepositories, "filter-repositories", []string{}, "Pull requests will be created only for listed repositories (organization/repository format). Leave empty array to process all configured integrations by platform only.") fs.BoolVar(&downloadOptsReplaceBreaks, "replace-breaks", true, "Enable to replace line breaks in exported translations with \\n (default true). Use --replace-breaks=false to disable.") fs.BoolVar(&downloadOpts.DisableReferences, "disable-references", false, "Enable to skip automatic replace of key reference placeholders (e.g. [%key:hello_world%]) with their corresponding translations. In case you have this disabled and are still getting references, make sure the permissions of the projects are configured right.") - fs.StringVar(&downloadOpts.PluralFormat, "plural-format", "", "Override the default plural format for the file type. Allowed values are json_string, icu, array, generic, symfony, i18next.") + fs.StringVar(&downloadOpts.PluralFormat, "plural-format", "", "Override the default plural format for the file type. Allowed values are json_string, icu, array, generic, symfony, i18next, i18next_v4.") fs.StringVar(&downloadOpts.PlaceholderFormat, "placeholder-format", "", "Override the default placeholder format for the file type. Allowed values are printf, ios, icu, net, symfony, i18n, raw.") fs.StringVar(&downloadOpts.WebhookURL, "webhook-url", "", "Once the export is complete, sends a HTTP POST with the generated bundle URL to the specified URL.") fs.StringVar(&downloadOptsLangMapping, "language-mapping", "", "List of languages to override default iso codes for this export (JSON, see https://lokalise.com/api2docs/curl/#transition-download-files-post).") diff --git a/docs/lokalise2_file_download.md b/docs/lokalise2_file_download.md index 411eba5..e31170b 100644 --- a/docs/lokalise2_file_download.md +++ b/docs/lokalise2_file_download.md @@ -45,7 +45,7 @@ lokalise2 file download [flags] --language-mapping string List of languages to override default iso codes for this export (JSON, see https://lokalise.com/api2docs/curl/#transition-download-files-post). --original-filenames Enable to use original filenames/formats. If set to false (--original-filenames=false) all keys will be export to a single file per language (default true). (default true) --placeholder-format string Override the default placeholder format for the file type. Allowed values are printf, ios, icu, net, symfony, i18n, raw. - --plural-format string Override the default plural format for the file type. Allowed values are json_string, icu, array, generic, symfony, i18next. + --plural-format string Override the default plural format for the file type. Allowed values are json_string, icu, array, generic, symfony, i18next, i18next_v4. --replace-breaks Enable to replace line breaks in exported translations with \n (default true). Use --replace-breaks=false to disable. (default true) --triggers strings Trigger integration exports (must be enabled in project settings). Allowed values are amazons3, gcs, github, github-enterprise, gitlab, bitbucket, bitbucket-enterprise. --unzip-to string Unzip to this folder. (default "./") @@ -65,4 +65,4 @@ lokalise2 file download [flags] * [lokalise2 file](lokalise2_file.md) - Upload and download files -###### Auto generated by spf13/cobra on 21-Oct-2021 +###### Auto generated by spf13/cobra on 17-Jan-2023