chore: 添加设计资料和示例工程

This commit is contained in:
2026-07-26 17:35:04 +08:00
parent e85a515183
commit 8178cb0e92
415 changed files with 31714 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { createI18n } from 'vue-i18n';
import en from './en-US';
import cn from './zh-CN';
export const LOCALE_OPTIONS = [
{ label: '中文', value: 'zh-CN' },
{ label: 'English', value: 'en-US' },
];
const defaultLocale = localStorage.getItem('arco-locale') || 'zh-CN';
const i18n = createI18n({
locale: defaultLocale,
fallbackLocale: 'en-US',
legacy: false,
messages: {
'en-US': en,
'zh-CN': cn,
},
});
export default i18n;