Localization Sample
Ported from Microsoft's XNA 4.0 Localization Sample for Windows and Xbox 360.
Source for this sample on GitHub ↗
Play ▸
Opens in a new tab. The sample selects your browser's preferred language at startup.
About this sample
Three translated strings and a matching flag show how an XNA game selects content for the current culture. If the full region is unavailable, the sample tries the language and then the default flag. The font includes characters from all supplied translations.
Controls
| Action | Control |
|---|---|
| Choose language | Change your browser's preferred language, then reopen the sample |
| Exit | Escape or gamepad Back |