Uh oh!
There was an error while loading. Please reload this page.
Enhance Locales Tag - #4665
Merged
Merged
Conversation
robdekort
commented
Nov 5, 2021
Contributor
Brilliant. This adds the ability to create a really good language picker. Love it! |
gjportegies
commented
Nov 5, 2021
Awesome! Just installed as a patch and works perfectly for me. |
jasonvarga
requested changes
Nov 5, 2021
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 7, 2021
jasonvarga
commented
Nov 8, 2021
Member
Great PR. Thanks! I've pushed tests, tweaked some things, and added support for a |
jasonvarga
approved these changes
Nov 8, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR enhances the
localestag with anallparameter. When set totruethe tag will include basic data for all entries that are not localized or published. This makes it possible to use the tag for a global language switcher that falls back to the homepage if an entry doesn't exist for a particular site. I've also added anexistsvariable, which lets you visusally indicate if a site is localized or not.This PR solves an issue that is talked about on Discord on a regular basis. It's one of the most asked for features when working with multi-sites. It also closes this idea: statamic/ideas#695.
Closesstatamic/ideas#695
Closesstatamic/ideas#588