Add Hebrew translation and RTL support via Docker injection

Injects custom CSS and JS into the Paperclip UI during Docker build:
- RTL layout overrides for Tailwind, Radix UI, and MDXEditor
- Hebrew translation script with MutationObserver for dynamic content
- Patch script to modify index.html with dir="rtl" and lang="he"

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Chaim
2026-04-04 20:41:06 +00:00
parent de82ce18f4
commit 5160741248
4 changed files with 1666 additions and 1 deletions

View File

@@ -4,6 +4,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf
RUN npm install -g paperclipai
# Inject Hebrew RTL + translation into the UI
COPY assets/rtl-override.css /tmp/rtl-override.css
COPY assets/translate-he.js /tmp/translate-he.js
COPY patch-html.sh /tmp/patch-html.sh
RUN bash /tmp/patch-html.sh && rm -f /tmp/patch-html.sh /tmp/rtl-override.css /tmp/translate-he.js
RUN mkdir -p /data/instances/default/data/storage \
/data/instances/default/data/backups \
/data/instances/default/secrets \