Skip to content

HPHX-15373 Localization for Hikes Catalog#138

Open
honlamso wants to merge 73 commits intoHCL-TECH-SOFTWARE:masterfrom
honlamso:l10n
Open

HPHX-15373 Localization for Hikes Catalog#138
honlamso wants to merge 73 commits intoHCL-TECH-SOFTWARE:masterfrom
honlamso:l10n

Conversation

@honlamso
Copy link
Copy Markdown

@honlamso honlamso commented Mar 4, 2022

Description

This PR enables i18n for Hikes Catalog
Note that the hike zip files have not been converted to localizable format yet

Technical documentations can be found here:
https://hclo365.sharepoint.com/:w:/s/PMO-GCG-All-Hikesdevelopment/ESGYIZdAP6ZGt2UvYlXIHH0BZKtXUClL8zLVWOoJJhU7FQ?e=AeFmb4

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

yanji-hcl and others added 30 commits May 26, 2021 14:24
…nabelment

enable catalog server localization
# Conflicts:
#	.github/workflows/intergrate.yml
#	next.config.js
#	pages/hikes.js
#	pages/tour.js
#	public/contents/1-volt-mx-changes/tours.json
#	public/contents/1-volt-mx-changes/zips/voltmxirisintro.zip
#	public/contents/2-build-your-first-mobile-app/tours.json
#	public/contents/2-build-your-first-mobile-app/zips/addcreatemob_v9.zip
#	public/contents/2-build-your-first-mobile-app/zips/addloginservicemob_v9.zip
#	public/contents/2-build-your-first-mobile-app/zips/connectappuitodatamob_v9.zip
#	public/contents/2-build-your-first-mobile-app/zips/createdetailsnative_v9.zip
#	public/contents/2-build-your-first-mobile-app/zips/createservices_v9.zip
#	public/contents/2-build-your-first-mobile-app/zips/createuifromcollectionsmob_v9.zip
#	public/contents/2-build-your-first-mobile-app/zips/editpayeemobile_v9.zip
#	public/contents/2-build-your-first-mobile-app/zips/launchyourfirstmobileappv92.zip
#	public/contents/2-build-your-first-mobile-app/zips/pubishappenterprisestorev9.zip
#	public/contents/2-build-your-first-mobile-app/zips/shareandpreviewappmobilev9.zip
#	public/contents/2-build-your-first-mobile-app/zips/usingtestrecorder_v9.zip
#	public/contents/3-build-your-first-web-app/tours.json
#	public/contents/3-build-your-first-web-app/zips/addauthenticationtoyourapp_v9.zip
#	public/contents/3-build-your-first-web-app/zips/addcreatepayeeweb_v9.zip
#	public/contents/3-build-your-first-web-app/zips/connecttheappuitodata-webv9.zip
#	public/contents/3-build-your-first-web-app/zips/createdetailsscreen_v9.zip
#	public/contents/3-build-your-first-web-app/zips/createservicesweb_v9.zip
#	public/contents/3-build-your-first-web-app/zips/createuifromcollections-web.zip
#	public/contents/3-build-your-first-web-app/zips/editpayeeweb_v9.zip
#	public/contents/3-build-your-first-web-app/zips/launchyourrwapp92.zip
#	public/contents/3-build-your-first-web-app/zips/responsivewebbreakpointsv9.zip
#	public/contents/4-develop-the-front-end/tours.json
#	public/contents/4-develop-the-front-end/zips/assigndatatothesegmentv9.zip
#	public/contents/4-develop-the-front-end/zips/createemailidcomponentv9.zip
#	public/contents/4-develop-the-front-end/zips/flexpropertiesv9.zip
#	public/contents/4-develop-the-front-end/zips/internationalizationwithlayout92.zip
#	public/contents/4-develop-the-front-end/zips/introductiontoactioneditorv9.zip
#	public/contents/4-develop-the-front-end/zips/introductiontointernationalization92.zip
#	public/contents/4-develop-the-front-end/zips/introductiontokonyjavascriptv9.zip
#	public/contents/4-develop-the-front-end/zips/introductiontosegmenttemplatesv9.zip
#	public/contents/4-develop-the-front-end/zips/introductiontosegmentv9.zip
#	public/contents/4-develop-the-front-end/zips/introflexlayoutv9.zip
#	public/contents/4-develop-the-front-end/zips/konyquantumorientationv9.zip
#	public/contents/4-develop-the-front-end/zips/understandingapplicationchannelsv9.zip
#	public/contents/5-manage-back-end-services/tours.json
#	public/contents/5-manage-back-end-services/zips/addasalesforceservicev9.zip
#	public/contents/5-manage-back-end-services/zips/understandidentityservicesv9.zip
#	public/contents/5-manage-back-end-services/zips/userrepositoryauthenticationv9.zip
#	public/contents/5-manage-back-end-services/zips/usesampleservicesv9.zip
#	public/contents/5-manage-back-end-services/zips/usestorageservicev9.zip
#	public/contents/6-advanced-concepts/tours.json
#	public/contents/6-advanced-concepts/zips/introductiontonfiv9.zip
#	public/contents/6-advanced-concepts/zips/nfibarcodev9.zip
#	public/contents/7-dbx/tours.json
#	public/contents/7-dbx/zips/dynamicform.zip
#	src/components/HikeHeader/index.js
#	src/components/TourCard/index.js
#	src/utils/populate.js
…er-query

Fix continues loading in gh pages env
Comment thread src/components/HikeSearch/index.js Outdated
const URL = !isDev ? BASE_PATH_URL : '';
const searchUrl = `${URL}/hikes/search?keyword=${searchTerm}`;
const params = new URLSearchParams({
...Router.params,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this should be ...Router.query

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

fixed

const searchUrl = `${URL}/hikes/search?keyword=${searchTerm}`;
const params = new URLSearchParams({
...Router.params,
keyword: searchTerm,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor suggestion: The , at the end of "searchTerm" can be omitted.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This repo has eslint enabled with airbnb's rules, which enforces trailing commas:
https://github.com/airbnb/javascript#commas
https://eslint.org/docs/rules/comma-dangle

@honlamso honlamso requested a review from mandeepalluru May 30, 2022 10:04
Comment thread src/config/index.js
export const BASE_BRANCH = 'master';

export const HOST_URL = `https://opensource.hcltechsw.com`;
export const HOST_URL = `https://honlamso.github.io`;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think changes in this file were for testing purpose. We can revert them.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

yes, thanks for pointing out

@honlamso honlamso requested a review from mandeepalluru May 31, 2022 06:07
"_blank"
);
};
// const visitFork = () => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please remove the commented code. If it is required for re-enablement in the future please comment and add a TODO statement.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

removed

title={
pushed
? "Pushed Successfully"
? 'Pushed Successfully'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor comment. Certain strings in this file such as here have not been localised.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Components under HikeComposer are not localised currently as it is a separate tool for editing tours, which is not a page seen by users on the catalog

@mandeepalluru
Copy link
Copy Markdown
Collaborator

Just a quick check. File package-lock.json has 252 additions and 22,906 deletions. I just wanted to confirm that the changes relate to the new modules added.

Comment thread pages/composer.js Outdated
setPreviewMode("split");
const changePreview = (v) => {
setView(v);
if (visible === 'list') {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this should be

if (v === 'list')

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

fixed

"fileSize": "32.13 KB",
"fileName": "createuifromcollections-web.zip",
"fid": 17161,
"checksum": "f4a220dcd25447979bc8baec7b9063bfe348cef8b3d738d743025631c11b9c3f",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

With fixes made in Hikes, the checksums have to be updated.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I have updated the checksums for tour zips that I changed

@honlamso
Copy link
Copy Markdown
Author

honlamso commented Jun 1, 2022

I have reset the package.json & package-lock.json and re-run npm install for the new modules again to ensure package-lock.json changes are only related to the new modules

@honlamso honlamso requested a review from mandeepalluru June 1, 2022 10:00
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Sep 14, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
5 out of 6 committers have signed the CLA.

✅ testradav
✅ yanji-hcl
✅ mikeangelsilva
✅ honlamso
✅ jkjhcl
❌ honchung-tang
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

8 participants