Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Update LanguageButton.js
Ash Monsha52bfaa629ff
diff --git a/components/input/LanguageButton.js b/components/input/LanguageButton.jsindex e6da5991f..bc130c4cc 100644--- a/components/input/LanguageButton.js+++ b/components/input/LanguageButton.js@@ -6,7 +6,7 @@ import Icons from 'components/icons';import styles from './LanguageButton.module.css';export default function LanguageButton() {- const { locale, saveLocale } = useLocale();+ const { locale, saveLocale, dir } = useLocale();const items = Object.keys(languages).map(key => ({ ...languages[key], value: key }));function handleSelect(value) {@@ -20,7 +20,7 @@ export default function LanguageButton() {<Icons.Globe /></Icon></Button>- <Popup position="bottom" alignment="end">+ <Popup position="bottom" alignment={dir === 'rtl' ? 'start' : 'end'}><div className={styles.menu}>{items.map(({ value, label }) => {return (