mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
9408e7eb76
* feat(docs): document add changelog page - Add changelog and markdown component for changelog.md - Add changelog page - Add some locale for change log - Fix a bug that caused ToC not working * Add minimal width to changelog selector * Add width to changelog selector * fix selector width issue
10 lines
227 B
TypeScript
10 lines
227 B
TypeScript
import { computed } from 'vue'
|
|
import { useLang } from './lang'
|
|
|
|
export const useLocale = (
|
|
localeJson: Record<string, Record<string, string>>
|
|
) => {
|
|
const lang = useLang()
|
|
return computed(() => localeJson[lang.value])
|
|
}
|