Skip to content
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

Allow finding and linking to alternate locale pages #522

Merged
merged 5 commits into from
Apr 22, 2022

Conversation

jaredcwhite
Copy link
Member

@jaredcwhite jaredcwhite commented Mar 25, 2022

In this PR, resources and generated pages now offer an all_locales method. Calling this will return all of the resources (or generated pages) with the same slug…i.e. all the locales of that resource/page. For example:

/some-page
/es/some-page
/zh-CN/some-page

etc.

This also adds automatic support for multi-locale paginated pages (aka the English "Posts" page will show only English links, Spanish "Publicación" page will show only Spanish links, etc.).

Addresses #49

@render
Copy link

render bot commented Mar 25, 2022

@render
Copy link

render bot commented Mar 25, 2022

@jaredcwhite jaredcwhite added the enhancement New feature or request label Mar 25, 2022
@jaredcwhite jaredcwhite added this to the 1.1 milestone Apr 2, 2022
@jaredcwhite jaredcwhite merged commit 57fbb3d into main Apr 22, 2022
@jaredcwhite jaredcwhite deleted the linking-between-locales branch April 22, 2022 05:17
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