revert translation.ts: remove unneeded code

pull/4660/head
Yuxuan Zhang 6 months ago
parent 324d79c97c
commit 8d4ae1ce03
No known key found for this signature in database
GPG Key ID: 6910B04F3351EF7D

@ -15,7 +15,6 @@ export function createSearchTranslate(
const isObject = themeObject && typeof themeObject === 'object'
const locales =
(isObject && themeObject.locales?.[localeIndex.value]?.translations) ||
(isObject && themeObject?.translations) ||
null
const translations = (isObject && themeObject.translations) || null

Loading…
Cancel
Save