@tolgee/cli 2.4.1 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,6 +76,7 @@ const syncHandler = (config) => async function () {
|
|
76
76
|
translations: key.defaultValue
|
77
77
|
? { [baseLanguage.tag]: key.defaultValue }
|
78
78
|
: {},
|
79
|
+
tags: opts.tagNewKeys,
|
79
80
|
}));
|
80
81
|
const loadable = await loading('Creating missing keys...', opts.client.POST('/v2/projects/{projectId}/keys/import', {
|
81
82
|
params: { path: { projectId: opts.client.getProjectId() } },
|
@@ -116,4 +117,5 @@ export default (config) => new Command()
|
|
116
117
|
.option('--continue-on-warning', 'Set this flag to continue the sync if warnings are detected during string extraction. By default, as warnings may indicate an invalid extraction, the CLI will abort the sync.')
|
117
118
|
.option('-Y, --yes', 'Skip prompts and automatically say yes to them. You will not be asked for confirmation before creating/deleting keys.')
|
118
119
|
.option('--remove-unused', 'Also delete unused keys from the Tolgee project.')
|
120
|
+
.option('--tag-new-keys <tags...>', 'Specify tags that will be added to newly created keys.')
|
119
121
|
.action(syncHandler(config));
|