docs(next): update locale-aliases for gt-next v11 (getGTClass removed)#341
Closed
moss-bryophyta wants to merge 1 commit into
Closed
Conversation
gt-next v11.0.0 (Odysseus) removed the public getGTClass helper and exposes resolveCanonicalLocale as a standalone config-aware function from gt-next/server. Update the Locale Aliases guide to import and call resolveCanonicalLocale directly instead of via getGTClass().
moss-bryophyta
enabled auto-merge (squash)
July 4, 2026 15:03
Contributor
Author
auto-merge was automatically disabled
July 17, 2026 18:09
Pull request was closed
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 free
to 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.
What
gt-nextv11.0.0 (the Odysseus major release) removed the publicgetGTClasshelper fromgt-next/serverand now exposesresolveCanonicalLocaleas a standalone, config-aware function.The Locale Aliases and SEO guide still imports
getGTClassand callsgtInstance.resolveCanonicalLocale(...), which will break on v11.Fix
Import
resolveCanonicalLocaledirectly fromgt-next/serverand call it as a function in all four examples (intro,<html lang>, metadata alternates, sitemap).Verified against the published
gt-next@11.0.0/gt-i18n@1.0.0type definitions (export { resolveCanonicalLocale } from 'gt-i18n'inserver.d.ts).🌿 Found during the daily docs review.