fluent-impl-locale-switching

Official

Seamless locale switching for Fluent React apps.

AuthorOpenAEC-Foundation
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Use when implementing runtime locale or language switching in Fluent React applications. Prevents full page reloads and broken fallback chains during dynamic language changes. Covers React state re-localization, negotiateLanguages integration, localStorage persistence, and server-side detection.

Core Features & Use Cases

  • Complete client-side locale switcher with memoized ReactLocalization to avoid unnecessary re-renders.
  • Server-side locale detection and hydration-safe negotiation to keep server and client in sync.
  • Integrate with negotiateLanguages and acceptedLanguages to build robust fallback chains with a defaultLocale.
  • Support for async bundle loading with race-condition protection and loading states.
  • Persistence of user locale via localStorage (and cookies for SSR) to survive reloads.
  • Patterns for browser, server, and hybrid environments to ensure consistent UX.

Quick Start

Set up a complete locale switcher that negotiates user preferences, persists choices, and reinitializes ReactLocalization on locale changes.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fluent-impl-locale-switching
Download link: https://github.com/OpenAEC-Foundation/Fluent-i18n-Claude-Skill-Package/archive/main.zip#fluent-impl-locale-switching

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.