Skip to content

five-on-it / apps/client/src/ui/i18n

apps/client/src/ui/i18n ​

The client's translations: an i18next instance with the bundled locales, read by the React overlay (bound to React in mount.tsx) and by the in-game UI drawn in the scene (gui/), so it imports nothing of React. Set up at once (the locales are bundled): its words are there before anything asks. Add a language by adding a JSON file under locales/ and listing it here. The keys the player plays with are in every text as k.<action> (k.interact, k.move: bindings.ts), default variables kept up to date with the player's bindings and the language (a key's name: Space, Spazio).

Variables ​

Functions ​