From 45466455b5149f4b169a7e403d88b84e13c72668 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 29 Apr 2022 12:45:23 +0800 Subject: [PATCH] improve help text --- packages/docusaurus/bin/docusaurus.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/docusaurus/bin/docusaurus.mjs b/packages/docusaurus/bin/docusaurus.mjs index 0344eea45b13..759aad41cc98 100755 --- a/packages/docusaurus/bin/docusaurus.mjs +++ b/packages/docusaurus/bin/docusaurus.mjs @@ -158,11 +158,11 @@ cli .description('Extract required translations of your site.') .option( '-l, --locale ', - 'the locale folder to write the translations\n"--locale fr" will write translations in ./i18n/fr folder)', + 'the locale folder to write the translations.\n"--locale fr" will write translations in the ./i18n/fr folder.', ) .option( '--override', - 'by default, we only append missing translation messages to existing translation files. This option allows to override existing translation messages. Make sure to commit or backup your existing translations, as they may be overridden', + 'By default, we only append missing translation messages to existing translation files. This option allows to override existing translation messages. Make sure to commit or backup your existing translations, as they may be overridden. (default: false)', ) .option( '--config ', @@ -170,7 +170,7 @@ cli ) .option( '--messagePrefix ', - 'allows to init new written messages with a given prefix. This might help you to highlight untranslated message to make them stand out in the UI', + 'Allows to init new written messages with a given prefix. This might help you to highlight untranslated message by making them stand out in the UI (default: "")', ) .action(async (siteDir, options) => writeTranslations(await resolveDir(siteDir), options),