-
google-labs-jules[bot] authored
- Restructured the project into a Node.js/Express application. - Implemented EJS for server-side templating (views/index.ejs). - Externalized all text content into JSON files (data/en.json, data/fa.json) for internationalization (i18n). - Server (server.js) now loads language data based on query parameters (e.g., /?lang=en) and renders the EJS template with the appropriate content. - Client-side JavaScript (public/js/script.js) updated for: - Language toggle functionality to switch between English and Persian. - PDF/Word download logic now uses localized text from JSON data for buttons and filenames. - Improved RTL support in PDF and Word document generation. - CSS (public/css/style.css) updated with RTL-specific rules for layout and text direction. - Added a Dockerfile for containerizing the application. - Updated package.json with a start script and relevant dependencies. - Updated README.md with new project structure, setup instructions for local and Docker environments, and details on content customization via JSON.
google-labs-jules[bot] authored- Restructured the project into a Node.js/Express application. - Implemented EJS for server-side templating (views/index.ejs). - Externalized all text content into JSON files (data/en.json, data/fa.json) for internationalization (i18n). - Server (server.js) now loads language data based on query parameters (e.g., /?lang=en) and renders the EJS template with the appropriate content. - Client-side JavaScript (public/js/script.js) updated for: - Language toggle functionality to switch between English and Persian. - PDF/Word download logic now uses localized text from JSON data for buttons and filenames. - Improved RTL support in PDF and Word document generation. - CSS (public/css/style.css) updated with RTL-specific rules for layout and text direction. - Added a Dockerfile for containerizing the application. - Updated package.json with a start script and relevant dependencies. - Updated README.md with new project structure, setup instructions for local and Docker environments, and details on content customization via JSON.
Loading