Help wanted: validate a React multilingual intranet switcher SPFx sample
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.…
The PnP SharePoint Framework webparts repository has a new read-only React sample that needs validation. The sample is located at samples/react-multilingual-intranet-switcher/ and can be reviewed at Pull request: https://github.com/pnp/sp-dev-fx-webparts/pull/6484.
The web part showcases locale-specific intranet navigation and content links sourced from a local JSON configuration. It selects the initial locale by matching the browser's locale exactly, handling language fallback, and applying a configured default. Users are always provided with an explicit accessible language selector.
Notably, the sample does not translate content, infer translations, call translation APIs, read SharePoint data, or modify tenant state. It only accepts same-origin HTTP(S) links and rejects malformed, credential-bearing, unsafe, and external URLs. The local verification process involved running 6 deterministic Mocha tests, which all passed. Additionally, the sample successfully passed SPFx lint, TypeScript, Sass, webpack validation, production bundle and .sppkg packaging checks, diff, metadata, config, and secret scans.
To validate this community sample, the author is seeking assistance from someone with a SharePoint Online tenant. The tester should examine the web part under various conditions, including:
- Testing with two or more configured locales
- Using managed-path URLs
- Handling unsupported browser locales
- Dealing with malformed configuration
- Responding to unsafe links
- Evaluating keyboard navigation
- Assessing responsive layout
- Testing with users who lack additional API permissions
Any screenshots obtained from real tenants would be particularly valuable, as long as they are not fabricated locally. The author expresses gratitude for any help provided to validate and improve this sample for the community.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.