Skip to content

[TEST] Add language switcher support for fa and zh-cn repositories#490

Open
mmcky wants to merge 1 commit intomainfrom
add-language-switcher-fa-zh-cn
Open

[TEST] Add language switcher support for fa and zh-cn repositories#490
mmcky wants to merge 1 commit intomainfrom
add-language-switcher-fa-zh-cn

Conversation

@mmcky
Copy link
Contributor

@mmcky mmcky commented Mar 23, 2026

Changes

  • Bump quantecon-book-theme from 0.19.0 to 0.20.0
  • Add language switcher configuration to html_theme_options in _config.yml:
    • English (en) — https://python-programming.quantecon.org
    • فارسی (fa) — https://quantecon.github.io/lecture-python-programming.fa
    • 中文 (zh-cn) — https://quantecon.github.io/lecture-python-programming.zh-cn
  • Set current_language: en

This enables the new language switcher globe icon in the bottom toolbar and injects SEO hreflang tags for all configured languages.

Ref: https://github.com/QuantEcon/quantecon-book-theme/releases/tag/v0.20.0

- Bump quantecon-book-theme from 0.19.0 to 0.20.0
- Add languages config (en, fa, zh-cn) to html_theme_options
- Set current_language to en
@mmcky mmcky added the testing label Mar 23, 2026
@github-actions
Copy link

@github-actions github-actions bot temporarily deployed to pull request March 23, 2026 04:25 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant