UNPKG

445 BJavaScriptView Raw
1
2
3import { localeId } from '../'
4// const localeId = LocaleId
5// const localeId = ''
6import locales from './locales'
7
8
9
10
11/**
12 * 检查目标语言包ID的语言包内容是否已初始化
13 *
14 * @param {*string} theLocaleId 目标语言包ID
15 *
16 * @returns {boolean}
17 */
18export const checkLocalesReady = (theLocaleId = localeId) => {
19 return (typeof locales[theLocaleId] !== 'undefined')
20}
21
22// export default translate