Skip to content

Fix localized contents #2546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

artemkorsakov
Copy link
Contributor

As you can see all localized pages that extend the template layout: multipage-overview have empty content.
For example:
https://docs.scala-lang.org/ja/overviews/parallel-collections/concrete-parallel-collections.html
https://docs.scala-lang.org/es/overviews/parallel-collections/concrete-parallel-collections.html
https://docs.scala-lang.org/ru/overviews/collections-2.13/introduction.html
...

It's because pg.id and pg.url already have localized values. And if we add page.language, we'll get the wrong value - /ru/ru/scala3/book/introduction

Fixed!

Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic! thank you!

@bishabosha bishabosha merged commit 1f7cff1 into scala:main Sep 21, 2022
@artemkorsakov artemkorsakov deleted the NI-Fix_localized_contents branch September 21, 2022 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants