From c2d6a79711dbacc1ace06385cced379fef3b7d5f Mon Sep 17 00:00:00 2001 From: Andrii Bodnar Date: Thu, 27 Jul 2023 16:55:00 +0300 Subject: [PATCH] docs: add examples of the 'crowdin string add' command usage --- website/mantemplates/crowdin-string-add.adoc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/website/mantemplates/crowdin-string-add.adoc b/website/mantemplates/crowdin-string-add.adoc index 555606cd5..eaf75bc7f 100644 --- a/website/mantemplates/crowdin-string-add.adoc +++ b/website/mantemplates/crowdin-string-add.adoc @@ -14,3 +14,23 @@ include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-commands] include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-options] include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-footer] + +=== Examples + +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 `app.download` key to the `src/values/strings.xml` file (branch `main`): + +---- +crowdin string add Download --file main/src/values/strings.xml --identifier "app.download" +---- + +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 +----