From 619a41c7aaa89367af10a7450e3d415727730400 Mon Sep 17 00:00:00 2001 From: Andrii Bodnar Date: Thu, 27 Jul 2023 17:01:33 +0300 Subject: [PATCH] docs: add examples of the 'crowdin string add' command usage (#616) --- 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 +----