Skip to content

Add i18n #1

Draft
jumana-s wants to merge 1 commit into
masterfrom
add-i18n-
Draft

Add i18n #1
jumana-s wants to merge 1 commit into
masterfrom
add-i18n-

Conversation

@jumana-s

Copy link
Copy Markdown

No description provided.

@jumana-s jumana-s requested a review from wg102 July 16, 2021 20:38

@wg102 wg102 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quite nice, I have a few things and then general comments. Some comments happen more than once.

  • -> how do those work for i18n? Do they also have keys? How are changed in the string handled? etc
  • Possibly using plural in a standard form

I did not look at the few French translation spelling.

Comment thread portal-ui/src/screens/Console/Common/TableWrapper/TableWrapper.tsx Outdated
Comment thread portal-ui/src/screens/Console/Common/TableWrapper/TableWrapper.tsx Outdated
Comment thread portal-ui/src/locales/en/common.json Outdated
Comment thread portal-ui/src/locales/fr/common.json Outdated
Comment thread portal-ui/src/i18n.ts
Comment on lines +43 to +110
const resources = {
en: {
accounts: enAccounts,
bucketsDetails: enBucketDetails,
listBuckets: enListBuckets,
common: enCommon,
configurations: enConfigurations,
dashboard: enDashboard,
directCSI: enDirectCSI,
groups: enGroups,
heal: enHeal,
healthInfo: enHealthInfo,
license: enLicense,
logs: enLogs,
menu: enMenu,
storage: enStorage,
tenants: enTenants,
trace: enTrace,
users: enUsers,
},
fr: {
accounts: frAccounts,
bucketsDetails: frBucketDetails,
listBuckets: frListBuckets,
common: frCommon,
configurations: frConfigurations,
dashboard: frDashboard,
directCSI: frDirectCSI,
groups: frGroups,
heal: frHeal,
healthInfo: frHealthInfo,
license: frLicense,
logs: frLogs,
menu: frMenu,
storage: frStorage,
tenants: frTenants,
trace: frTrace,
users: frUsers,
}
};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there another way to handle this? It seems strange

Comment thread portal-ui/src/screens/Console/Tenants/ListTenants/ListTenants.tsx Outdated
Comment thread portal-ui/src/screens/Console/Tenants/TenantDetails/UpdateTenantModal.tsx Outdated
Comment thread portal-ui/src/screens/Console/Tenants/TenantDetails/UpdateTenantModal.tsx Outdated
Comment thread portal-ui/src/screens/Console/Tenants/TenantDetails/pods/PodDetails.tsx Outdated
@Nancy-Badran Nancy-Badran self-requested a review July 20, 2021 18:16
Comment thread portal-ui/src/locales/en/notificationEndpoints.json
Comment thread portal-ui/src/screens/Console/ObjectBrowser/BrowserBreadcrumbs.tsx Outdated
Comment thread portal-ui/src/screens/Console/ObjectBrowser/reducers.ts
Comment thread portal-ui/src/screens/Console/Policies/DeletePolicy.tsx
Comment thread portal-ui/src/common/utils.ts
Comment thread portal-ui/src/utils/validationFunctions.ts
@jumana-s jumana-s force-pushed the add-i18n- branch 4 times, most recently from 1d4e99c to 14ed5f6 Compare July 28, 2021 22:11
@jumana-s jumana-s force-pushed the add-i18n- branch 3 times, most recently from a787168 to 7705467 Compare August 6, 2021 20:11
@jumana-s jumana-s force-pushed the add-i18n- branch 2 times, most recently from eeb5339 to 0945562 Compare August 17, 2021 17:53
@jumana-s jumana-s force-pushed the add-i18n- branch 2 times, most recently from 7b6367e to 202f8b9 Compare September 1, 2021 21:50

@wg102 wg102 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks pretty neat. I would maybe update or add a Readme for details on how to 'keep the i18n updated'. Including when/how to use the get-errors.sh script and what its purpose is. Things like that to help future contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants