Understanding Floating vs Embedded Language Switcher in MultiLipi
Penawaran MultiLipi Dua cara yang fleksibel to place the language switcher on your website — Terapung dan Tertanam — so it fits your design and user experience needs.

1. Floating Switcher
What is it?
Si floating switcher appears as a small, draggable widget positioned in one of the corners of your screen — typically:
- Kiri bawah
- Kanan bawah
- Kiri atas
- Kanan atas
Why use it?
- Kamu don’t need to edit your HTML manually.
- Works out-of-the-box on any website, including WordPress, Shopify, Webflow, etc.
- Secara otomatis muncul untuk pengguna di Semua ukuran layar .
- Bagus untuk instalasi plug-and-play cepat.
Contoh Kasus Penggunaan:
You're launching a multilingual site and want the switcher to always be visible in the bottom-left corner of the screen without changing the layout.
2. Embedded Switcher
What is it?
Si embedded switcher lets you place the switcher inside a specific part of your HTML, such as:
- Bilah navigasi ( <nav>)
- Widget sidebar
- Bagian footer
Anda melakukannya dengan memberikan Pemilih CSS (misalnya, #language-switcher, .nav-menu , dll.) di dasbor MultiLipi Anda.
Why use it?
- It berpadu dengan mulus into your website’s design.
- Perfect for custom layouts or sites where you want full control over where the language switcher appears.
- Helpful for users who expect the switcher near the navigation or in a dropdown menu.
Penting:
Jika pemilih CSS yang disediakan adalah tidak ditemukan di halaman , MultiLipi akan secara otomatis kembali ke Terapung switcher — ensuring it still appears.
Logika Fallback: Apa yang Terjadi Jika Embedded Gagal?
If the switcher tidak dapat menemukan target yang disematkan on your webpage (e.g., you removed the div or changed its class name), then MultiLipi:
- Automatically switches to Floating mode
- Memastikan pengguna dapat masih mengubah bahasa without any disruption
- Log a Peringatan Konsol di browser untuk debugging
Mana yang harus Anda gunakan?
Ringkasan
Memilih Terapung for simplicity and Tertanam for design control. MultiLipi’s smart fallback logic ensures your switcher always works — even if your layout changes.

Komentar