Help wanted: validate a React multilingual intranet switcher SPFx sample
A new read-only React sample is ready for the PnP SharePoint Framework webparts repository:
- Pull request: https://github.com/pnp/sp-dev-fx-webparts/pull/6484
- Sample:
samples/react-multilingual-intranet-switcher/
The web part presents locale-specific intranet navigation and content links from bounded local JSON configuration. It chooses an initial locale using exact browser-locale matching, language fallback, and then the configured default. Users always have an explicit accessible language selector.
The sample deliberately does not translate content, infer translations, call translation APIs, read SharePoint data, or mutate tenant state. It accepts only same-origin HTTP(S) links and rejects malformed, credential-bearing, unsafe, and external URLs.
Local verification completed:
- 6 deterministic Mocha tests passed.
- SPFx lint, TypeScript, Sass, and webpack validation passed.
- Production bundle and
.sppkgpackaging passed. - Diff, metadata, config, and secret scans passed.
- Generated outputs were removed before commit.
Could someone with a SharePoint Online tenant please test this with two or more configured locales, including managed-path URLs, unsupported browser locales, malformed configuration, unsafe links, keyboard navigation, responsive layout, and users without additional API permissions? Real tenant screenshots would be especially useful; none are fabricated locally.
Thank you for helping validate and improve this community sample.
Top comments (0)