adobe / asset-share-commons

A modern, open-source asset share reference implementation built on Adobe Experience Manager (AEM)
https://opensource.adobe.com/asset-share-commons/
Apache License 2.0
88 stars 107 forks source link

moment.js not translating in other language #1176

Closed zhgeric closed 2 months ago

zhgeric commented 2 months ago

Is your feature request related to a problem? Please describe. When I'm using date time type in metadata components the text isn't translated properly because moment locales isn't imported

Describe the solution you'd like Import the moment-with-locales.min.js script that is in ui.apps/src/main/content/jcr_root/apps/asset-share-commons/clientlibs/vendor/moment/

Describe alternatives you've considered add moment-with-locales.min.js to the js.txt at ui.apps/src/main/content/jcr_root/apps/asset-share-commons/clientlibs/vendor/moment/js.txt

image

Additional context When creating page another language datetime related metadata stay in english "an hour ago", "months ago" etc..

image