Skip to content

Commit

Permalink
(chore) Add missing translations for header menu tooltips (#1219)
Browse files Browse the repository at this point in the history
* chore: app menu label translation

* fix:  add .button extension to i18next extract
  • Loading branch information
usamaidrsk authored Dec 3, 2024
1 parent f4c9b6c commit e377756
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/apps/esm-implementer-tools-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"analyze": "webpack --mode=production --env analyze=true",
"typescript": "tsc",
"lint": "eslint src --ext ts,tsx",
"extract-translations": "i18next 'src/**/*.component.tsx' 'src/**/*.extension.tsx' 'src/**/*.modal.tsx' --config='../../../tools/i18next-parser.config.js'"
"extract-translations": "i18next 'src/**/*.component.tsx' 'src/**/*.button.tsx' 'src/**/*.extension.tsx' 'src/**/*.modal.tsx' --config='../../../tools/i18next-parser.config.js'"
},
"keywords": [
"openmrs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"featureFlag": "Feature flag",
"featureFlags": "Feature flags",
"frontendModules": "Frontend modules",
"implementerTools": "Implementer Tools",
"installedVersion": "Installed version",
"itemDescriptionSourceDefaultText": "The current value is the default.",
"jsonEditor": "JSON editor",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const HeaderItems: React.FC = () => {
)}
{showAppMenu && (
<HeaderGlobalAction
aria-label="App Menu"
aria-label={t('AppMenuTooltip', 'App Menu')}
aria-labelledby="App Menu"
className={classNames({
[styles.headerGlobalBarButton]: isActivePanel('appMenu'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"AppMenuTooltip": "App Menu",
"cancel": "Cancel",
"change": "Change",
"changeLanguage": "Change language",
Expand Down

0 comments on commit e377756

Please sign in to comment.