Skip to content

Commit

Permalink
fix(odata-service-inquirer): i18n bundles not loading (#2592)
Browse files Browse the repository at this point in the history
* Fix for i18n bundles not loading

* Adds cset

* Cset not detected

* Adds cset again

* Delete .changeset/old-eyes-bathe.md
  • Loading branch information
IainSAP authored Nov 19, 2024
1 parent 7426781 commit 481e6b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-candles-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sap-ux/odata-service-inquirer': patch
---

Fix for i18n not loading
3 changes: 3 additions & 0 deletions packages/odata-service-inquirer/src/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { addi18nResourceBundle as addInquirerCommoni18nResourceBundle } from '@sap-ux/inquirer-common';
import type { TOptions } from 'i18next';
import i18next from 'i18next';
import translations from './translations/odata-service-inquirer.i18n.json';
Expand Down Expand Up @@ -28,6 +29,8 @@ export async function initI18nOdataServiceInquirer(): Promise<void> {
}
});
i18next.addResourceBundle('en', odataServiceInquirerNamespace, translations);
// add the inquirer common i18n resource bundle to ensure all translations are available
addInquirerCommoni18nResourceBundle();
}

/**
Expand Down

0 comments on commit 481e6b4

Please sign in to comment.