Repository navigation
docs(sdk7): expand player language docs (getPlayerLanguage / onPlayerLanguageChanged) - #260
Open
EibrielInv wants to merge 2 commits into
Open
EibrielInv wants to merge 2 commits into
EibrielInv wants to merge 2 commits into
Conversation
…LanguageChanged) Fallback cases, first-report event, translation helper with UI and TextShape examples, Spanish version, link from detect-platform, AI context example. Refs decentraland/godot-explorer#3029
EibrielInv
marked this pull request as ready for review
November 6, 2026 17:55
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
Completes the creator docs for
getPlayerLanguage()/onPlayerLanguageChangedfrom@dcl/sdk/platform(shipped in@dcl/sdk7.30.0, decentraland/js-sdk-toolchain#1622). Refs decentraland/godot-explorer#3029.mainalready had a short "Get player language" section. This expands it, building on #227 (which now conflicts with main).Changes
creator/sdk7/interactivity/runtime-data.md: rewrites Get player language (same heading, so thereleases.mdanchor still works):_→-, case kept.'en'before the client reports, on clients that don't report, and for empty/invalid values. Never empty.'en'report.t()helper (full tag → base language → English), React ECS example (re-renders every tick) and a TextShape example updated inonPlayerLanguageChanged.creator-esp/sdk7/interactivity/runtime-data.md: same section in Spanish, identical code.creator/build-for-mobile/develop/detect-platform.md:getPlayerLanguage()added to the Available functions list (and its import line), plus a Related link.ai-sdk-context/sdk7-examples.mdc: Player Language example.releases.mdalready covers it.How it was checked
packages/@dcl/sdk/src/platform/index.ts(unchanged 7.30.0 → 7.33.0) and the Godot explorer (Runtime.jssendsconfigurations.locale= resolved UI locale;localeChangedonly on a real Settings change).@dcl/sdk@7.33.0.npm test,check:links,check:anchors,check:navigationpass.Supersedes #227 and #236 (the latter would duplicate the section in
user-data.md).