You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/12/13 15:44:02 UTC
[GitHub] [superset] brandfocus commented on issue #3972: [feature] Global customise-able d3 locale
brandfocus commented on issue #3972:
URL: https://github.com/apache/superset/issues/3972#issuecomment-992606953
For anyone coming across this the easiest way is to build a new image for Superset:
Dockerfile
```
FROM apache/superset
COPY ./custom/D3Formatting.ts /app/superset-frontend/packages/superset-ui-chart-controls/src/utils/D3Formatting.ts
USER root
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get install -y nodejs && \
npm install -g npm@7
ENV NODE_OPTIONS=--max_old_space_size=24576
ENV CYPRESS_INSTALL_BINARY=0
RUN cd /tmp && bash frontend-mem-nag.sh && \
cd /app/superset-frontend && \
npm ci --unsafe-perm=true --allow-root && \
sed -i 's/\([[:space:]]*\)currency: \["$"\(.*\)/\1currency: \["£"\2/g' /app/superset-frontend/node_modules/d3-format/src/defaultLocale.js && \
npm run build --unsafe-perm=true --allow-root && \
rm -rf node_modules
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org