@openmrs/esm-help-menu-app 8.0.1-pre.3525 → 8.0.1-pre.3529

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-help-menu-app",
3
- "version": "8.0.1-pre.3525",
3
+ "version": "8.0.1-pre.3529",
4
4
  "license": "MPL-2.0",
5
5
  "description": " A microfrontend that provides a help menu for O3",
6
6
  "browser": "dist/openmrs-esm-help-menu-app.js",
@@ -17,7 +17,8 @@
17
17
  "build:development": "webpack --mode=development",
18
18
  "analyze": "webpack --mode=production --env analyze=true",
19
19
  "typescript": "tsc",
20
- "lint": "eslint src --ext ts,tsx"
20
+ "lint": "eslint src --ext ts,tsx",
21
+ "extract-translations": "i18next 'src/**/*.component.tsx' --config='../../../tools/i18next-parser.config.js'"
21
22
  },
22
23
  "keywords": [
23
24
  "openmrs",
@@ -46,8 +47,8 @@
46
47
  "rxjs": "6.x"
47
48
  },
48
49
  "devDependencies": {
49
- "@openmrs/esm-framework": "8.0.1-pre.3525",
50
- "@openmrs/webpack-config": "8.0.1-pre.3525",
50
+ "@openmrs/esm-framework": "8.0.1-pre.3529",
51
+ "@openmrs/webpack-config": "8.0.1-pre.3529",
51
52
  "@vitest/coverage-v8": "^4.0.7",
52
53
  "cross-env": "^7.0.3",
53
54
  "happy-dom": "^17.4.7",
package/src/index.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { getAsyncLifecycle, getSyncLifecycle } from '@openmrs/esm-framework';
2
-
3
- import ReleaseNotesComponent from './help-menu/components/release-notes.component';
4
- import DocsComponent from './help-menu/components/docs.component';
5
2
  import ContactUsComponent from './help-menu/components/contact-us.component';
6
- export const importTranslation = () => Promise.resolve();
3
+ import DocsComponent from './help-menu/components/docs.component';
4
+ import ReleaseNotesComponent from './help-menu/components/release-notes.component';
5
+
6
+ export const importTranslation = require.context('../translations', false, /.json$/, 'lazy');
7
7
 
8
8
  const options = {
9
9
  featureName: 'help-menu',
@@ -1,7 +1,6 @@
1
1
  {
2
- "releaseNotes": "Release notes",
3
2
  "communityforum": "Community forum",
4
3
  "docs": "Docs",
5
4
  "helpMenu": "Help menu",
6
- "openHelpMenu": "Open help menu"
5
+ "releaseNotes": "Release notes"
7
6
  }