AI: address review on PR #475
このコミットが含まれているのは:
@@ -12,9 +12,7 @@ import TopNavUser from '@/components/TopNavUser'
|
||||
import TranslatedText from '@/components/TranslatedText'
|
||||
import { toast } from '@/components/ui/use-toast'
|
||||
import { WikiIdBus } from '@/lib/eventBus/WikiIdBus'
|
||||
import { isLocaleCode,
|
||||
isUILocaleCode,
|
||||
MONGOLIAN_LOCALE,
|
||||
import { isUILocaleCode,
|
||||
switchLocalePath,
|
||||
uiLocaleFromPath,
|
||||
unlocalisedPath } from '@/lib/locales'
|
||||
@@ -141,8 +139,7 @@ const TopNav: FC<Props> = ({ user, locales, resolveLocaleSwitch }) => {
|
||||
const locale = useLocale ()
|
||||
const uiLocale = useUILocale ()
|
||||
const verticalPreview = useVerticalPreview ()
|
||||
const uiLocales = [...locales.filter (entry => isLocaleCode (entry.code)),
|
||||
...(locales.some (entry => entry.code === 'ja') ? [MONGOLIAN_LOCALE] : [])]
|
||||
const uiLocales = locales.filter (entry => isUILocaleCode (entry.code))
|
||||
const localeName = uiLocales.find (entry => entry.code === uiLocale)?.name
|
||||
const navigate = useLocaleNavigate ()
|
||||
const location = useLocation ()
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする