mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
docs: translation docs
This commit is contained in:
@@ -43,7 +43,9 @@ const Navbar: React.FC<NavbarProps> = ({
|
||||
};
|
||||
|
||||
const handleLanguageChange = (event: any) => {
|
||||
i18n.changeLanguage(event.target.value);
|
||||
const newLanguage = event.target.value;
|
||||
i18n.changeLanguage(newLanguage);
|
||||
localStorage.setItem('lang', newLanguage);
|
||||
};
|
||||
|
||||
const navItems: { label: string; path: string }[] = [
|
||||
|
||||
Reference in New Issue
Block a user