hlxsites / zemax

AEM Franklin Solution for https://www.zemax.com/
https://main--zemax--hlxsites.hlx.page/
Apache License 2.0
3 stars 1 forks source link

Manage static labels and translation #198

Open shehjadkhan-ansys opened 1 year ago

shehjadkhan-ansys commented 1 year ago

Currently we have lot static labels and handled in zemax-config.js, consider moving to file and pull details using fetch

Discuss technical approach to make it more manageable

kmurugulla commented 1 year ago

@shehjadkhan-ansys If these variables are changing per environment / section / page - then applying some techniques documented here - https://www.hlx.live/developer/spreadsheets would help manage them as regular content.

For instance - same variable could exist in multiple sheets , and which sheet to be fetched can be determined in the corresponding javaScript file and use ?sheet query param. Since the .json of the sheet will be delivered from CDN , the fetch operation should not be a performance hit.