Skip to content

Dvp#21

Merged
pourjanali merged 9 commits into
Betafrom
dvp
Nov 16, 2025
Merged

Dvp#21
pourjanali merged 9 commits into
Betafrom
dvp

Conversation

@pourjanali

Copy link
Copy Markdown
Owner

add 3 language translations

Created index_az.html with Azerbaijani and Persian language support for Tabriz metro schedule. Includes language switcher, responsive design, structured data, and enhanced UI components.
Implemented a language switcher for Persian and Azerbaijani Turkish in index.html, including UI controls and a LanguageManager class for dynamic content switching. Updated all relevant text elements to support both languages using data-lang attributes. Removed index_az.html and renamed it to index_old.html as a backup of the previous Azerbaijani version.
Introduced a theme toggle button allowing users to switch between light and dark modes. Added corresponding CSS for light mode, updated scrollbar styles, and implemented JavaScript to persist user preference using localStorage and system settings.
Eliminated the language switcher and theme toggle functionality from index.html, including related scripts, styles, and UI elements. Simplified the interface to use only Persian language and dark mode. Also removed index_old.html as part of codebase cleanup.
Introduced a language switcher dropdown to the UI, allowing users to select between Persian, English, and Turkish. The selected language is saved in localStorage and restored on page load, with a reload triggered upon change.
Introduced a localization script that translates all static UI text and meta tags for Persian, English, and Turkish. Language selection now updates static content in-place without reloading the page. Added translation keys and IDs to relevant elements throughout the HTML for dynamic updates. This prepares the app for multi-language support and improves accessibility for non-Persian users.
Introduces Azerbaijani (az) language support to the localization system, including translations for all static UI elements and updates the language switcher to allow selection of Azerbaijani. Also refactors the localization script for improved maintainability and language handling.
Enhanced the metro application with dynamic multilingual support and improved RTL/LTR layout handling. Translations for FA, EN, TR, and AZ are now available for both static and dynamic content, including schedule cards and error messages. The UI adapts direction and alignment based on the selected language, and language switching updates all relevant texts and layout in real time. Refactored code to centralize translation logic and ensure consistent user experience across languages.
@pourjanali pourjanali self-assigned this Nov 16, 2025
@pourjanali pourjanali added the enhancement New feature or request label Nov 16, 2025
@pourjanali

Copy link
Copy Markdown
Owner Author

#10

@pourjanali pourjanali closed this Nov 16, 2025
@pourjanali pourjanali reopened this Nov 16, 2025
@pourjanali pourjanali changed the base branch from main to Beta November 16, 2025 14:43
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 16, 2025

Copy link
Copy Markdown

Deploying timemetro with  Cloudflare Pages  Cloudflare Pages

Latest commit: a61231e
Status: ✅  Deploy successful!
Preview URL: https://41c780ad.timemetro-584.pages.dev
Branch Preview URL: https://dvp.timemetro-584.pages.dev

View logs

@pourjanali pourjanali closed this Nov 16, 2025
@pourjanali pourjanali reopened this Nov 16, 2025
@pourjanali pourjanali merged commit e25e227 into Beta Nov 16, 2025
4 checks passed
@pourjanali pourjanali deleted the dvp branch November 16, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant