HoloFair SDK V4
  • 🛠️Welcome to HoloFair SDK
  • Development
    • ⚙️Initial Setup
      • Start Here
      • Setup Addressables
      • Updating HoloFair SDK in an existing project
      • Scenes & Layers
      • Portals
      • WorldSettings
      • Build & Upload Addressables
        • CloudFront
        • BunnyCDN
      • Pubish & Test your Metaverse
    • ⭐Features
      • Text
      • Respawn
      • Link
      • Image
      • Video
      • TalkZone
      • Emote
      • Timer
      • Add Force
      • Animated Objects
      • Special/VIP content
      • Localization
      • Timeline
      • Focus Point
      • REST API Integration
        • Serialized Variables
        • Smart String
      • Interaction Events
        • Use Cases for Interaction Events
      • Editing Values
      • Control Locker
    • ‼️Important
      • Format of 3D Assets
      • 🆔GUIDs
  • Guides
    • Custom User Authentication
Powered by GitBook
On this page
  1. Development
  2. Features

Localization

Different content for different languages

PreviousSpecial/VIP contentNextTimeline

Last updated 2 years ago

HoloFair currently supports 2 languages: English and Arabic. The langauge can be selected through HoloFair's settings by the user. To display different content for each language, you will need to use LocalizationView.

Create an Empty GameObject and name it "Localization Views". Create a child Object for each language you'd like to support.

On each langauge, add a LocalizationView and a GuidComponent. Set the target according to the language.

OnLocaleValid (invoked when the user switches to this language), enable content for this language. Anything from Link Views, Video Views, Image Views, Text Views, or even pre-made Assets and GameObjects. And OnLocaleInvalid, disable them.

⭐
Users will be prompted to select a language when they first join HoloFair