HPHX-15373 Localization for Hikes Catalog#138
HPHX-15373 Localization for Hikes Catalog#138honlamso wants to merge 73 commits intoHCL-TECH-SOFTWARE:masterfrom
Conversation
…x-tutorials into localization-enabelment
…nabelment enable catalog server localization
update translated tours jsons
set to phx-dev
# 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
Merge latest phx-dev to l10n
…utorials into fix-empty-router-query
…er-query Fix continues loading in gh pages env
| const URL = !isDev ? BASE_PATH_URL : ''; | ||
| const searchUrl = `${URL}/hikes/search?keyword=${searchTerm}`; | ||
| const params = new URLSearchParams({ | ||
| ...Router.params, |
There was a problem hiding this comment.
I think this should be ...Router.query
| const searchUrl = `${URL}/hikes/search?keyword=${searchTerm}`; | ||
| const params = new URLSearchParams({ | ||
| ...Router.params, | ||
| keyword: searchTerm, |
There was a problem hiding this comment.
Minor suggestion: The , at the end of "searchTerm" can be omitted.
There was a problem hiding this comment.
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
| export const BASE_BRANCH = 'master'; | ||
|
|
||
| export const HOST_URL = `https://opensource.hcltechsw.com`; | ||
| export const HOST_URL = `https://honlamso.github.io`; |
There was a problem hiding this comment.
I think changes in this file were for testing purpose. We can revert them.
| "_blank" | ||
| ); | ||
| }; | ||
| // const visitFork = () => { |
There was a problem hiding this comment.
Please remove the commented code. If it is required for re-enablement in the future please comment and add a TODO statement.
| title={ | ||
| pushed | ||
| ? "Pushed Successfully" | ||
| ? 'Pushed Successfully' |
There was a problem hiding this comment.
Minor comment. Certain strings in this file such as here have not been localised.
There was a problem hiding this comment.
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
|
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. |
| setPreviewMode("split"); | ||
| const changePreview = (v) => { | ||
| setView(v); | ||
| if (visible === 'list') { |
There was a problem hiding this comment.
I think this should be
if (v === 'list')
| "fileSize": "32.13 KB", | ||
| "fileName": "createuifromcollections-web.zip", | ||
| "fid": 17161, | ||
| "checksum": "f4a220dcd25447979bc8baec7b9063bfe348cef8b3d738d743025631c11b9c3f", |
There was a problem hiding this comment.
With fixes made in Hikes, the checksums have to be updated.
There was a problem hiding this comment.
I have updated the checksums for tour zips that I changed
|
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 |
|
|
Trigger build and deploy
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