Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs on file download plural format supporting i18next_v4 format #108

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).")
Expand Down
4 changes: 2 additions & 2 deletions docs/lokalise2_file_download.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 "./")
Expand All @@ -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