@sap-ux/ui5-application-inquirer 0.7.4 → 0.7.6

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.
package/dist/i18n.js CHANGED
@@ -8,6 +8,7 @@ exports.initI18nUi5AppInquirer = initI18nUi5AppInquirer;
8
8
  exports.t = t;
9
9
  const i18next_1 = __importDefault(require("i18next"));
10
10
  const ui5_application_inquirer_i18n_json_1 = __importDefault(require("./translations/ui5-application-inquirer.i18n.json"));
11
+ const inquirer_common_1 = require("@sap-ux/inquirer-common");
11
12
  const ui5AppInquirerNamespace = 'ui5-application-inquirer';
12
13
  exports.defaultProjectNumber = 1;
13
14
  /**
@@ -22,7 +23,10 @@ async function initI18nUi5AppInquirer() {
22
23
  defaultProjectNumber: exports.defaultProjectNumber
23
24
  }
24
25
  }
25
- }, () => i18next_1.default.addResourceBundle('en', ui5AppInquirerNamespace, ui5_application_inquirer_i18n_json_1.default));
26
+ });
27
+ i18next_1.default.addResourceBundle('en', ui5AppInquirerNamespace, ui5_application_inquirer_i18n_json_1.default);
28
+ // add the inquirer common i18n resource bundle to ensure all translations are available
29
+ (0, inquirer_common_1.addi18nResourceBundle)();
26
30
  }
27
31
  /**
28
32
  * Helper function facading the call to i18next. Unless a namespace option is provided the local namespace will be used.
@@ -260,9 +260,7 @@ function getAddDeployConfigPrompt(targetDir, addDeployConfigOptions, isCapProjec
260
260
  function getUI5VersionPrompt(ui5Versions = [], ui5VersionPromptOptions) {
261
261
  // Set the default to be closest to the passed value or the default as defined by ui5 version service
262
262
  const defaultChoice = (0, inquirer_common_1.getDefaultUI5VersionChoice)(ui5Versions, ui5VersionPromptOptions?.defaultChoice);
263
- const ui5VersionChoices = (0, inquirer_common_1.ui5VersionsGrouped)(ui5Versions, ui5VersionPromptOptions?.includeSeparators
264
- // defaultChoice - this is added to support systemn versions however currently the middleware preview does not support this
265
- );
263
+ const ui5VersionChoices = (0, inquirer_common_1.ui5VersionsGrouped)(ui5Versions, ui5VersionPromptOptions?.includeSeparators, defaultChoice);
266
264
  return {
267
265
  when: () => !!ui5VersionChoices,
268
266
  type: ui5VersionPromptOptions?.useAutocomplete ? 'autocomplete' : 'list',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/ui5-application-inquirer",
3
3
  "description": "Prompts module that can prompt users for inputs required for UI5 application writing",
4
- "version": "0.7.4",
4
+ "version": "0.7.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -23,7 +23,7 @@
23
23
  "inquirer-autocomplete-prompt": "2.0.1",
24
24
  "lodash": "4.17.21",
25
25
  "semver": "7.5.4",
26
- "@sap-ux/inquirer-common": "0.4.6",
26
+ "@sap-ux/inquirer-common": "0.4.8",
27
27
  "@sap-ux/project-access": "1.28.2",
28
28
  "@sap-ux/project-input-validator": "0.3.3",
29
29
  "@sap-ux/ui5-info": "0.8.1"