You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support translations and generic variants together
Add rudimentary support for translations & generic variants to be used on the same site.
- Refactor `withVariants` into a `variants` object that contains two arrays for the different types: `translations` and `generic`.
- Switch the logic around to check these two arrays independently of each other.
- If there are any translations (spaces with a different language than the current), the menu dropdown is shown. If there are any generic variants (spaces with the same language as the current), the variant dropdown is shown.
0 commit comments