mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
10 lines
263 B
TypeScript
10 lines
263 B
TypeScript
|
import { computed } from 'vue'
|
||
|
import navbarLocale from '../../i18n/component/navbar.json'
|
||
|
import { useLang } from './lang'
|
||
|
|
||
|
export function useNavbarLocale() {
|
||
|
const lang = useLang()
|
||
|
|
||
|
return computed<Record<string, string>>(() => navbarLocale[lang.value])
|
||
|
}
|