提交正式官网
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import type { LocaleBundle } from '~/types/locale'
|
||||
import { pickLocale } from '~/utils/pick-locale'
|
||||
|
||||
export function useLocalized<T>(bundle: LocaleBundle<T>) {
|
||||
const { locale } = useSiteLocale()
|
||||
return computed(() => pickLocale(bundle, locale.value))
|
||||
}
|
||||
Reference in New Issue
Block a user