refactor: reorganize project structure and implement self-managed i18n/theme for components

This commit is contained in:
yuding
2025-12-04 15:24:44 +08:00
parent 4dd923f19e
commit c45cdc9f7d
41 changed files with 3081 additions and 2010 deletions

24
src/locales/en-US.ts Normal file
View File

@@ -0,0 +1,24 @@
import { TranslationDictionary } from './types';
export const enUS: TranslationDictionary = {
common: {
title: 'BimEngine',
description: 'This is a BIM-ENGINE demo.',
openTestDialog: 'Open Test Dialog',
openInfoDialog: 'Open Info Dialog (Wrapped)',
},
toolbar: {
home: 'Home',
info: 'Info',
location: 'Location',
setting: 'Settings',
walk: 'Walk',
walkPerson: 'Person',
walkBird: 'Bird Eye',
walkMenu: 'Menu',
},
dialog: {
testTitle: 'Test Dialog',
testContent: '<div style="padding: 10px;">This is a <b>draggable</b> and <b>resizable</b> dialog.<br><br>Try dragging the title bar or resizing from the bottom-right corner.</div>',
},
};