添加i18n文件

This commit is contained in:
zhcnyuyang 2025-06-30 19:51:26 +08:00
parent 437f9ae806
commit 26541df74b
4 changed files with 23 additions and 0 deletions

22
src/BasrUrlPanel.ts Normal file
View File

@ -0,0 +1,22 @@
import { deepMap, type DeepMapStore } from 'nanostores';
import 'bulma/bulma.sass';
export abstract class BasrUrlPanel{
private fatherDiv:HTMLDivElement;
private basrUrl: string;
public initialize(): void{
}
constructor(divId: string, baseUrl: string) {
// 尝试获取 DOM 元素并赋值给成员变量
const elem = document.getElementById(divId);
this.fatherDiv = elem as HTMLDivElement;
this.fatherDiv.style.position= 'relative';
this.basrUrl = baseUrl;
this.initialize();
}
public getFatherDiv(): HTMLDivElement {
return this.fatherDiv;
}
}

View File

@ -5,6 +5,7 @@ import { deepMap, type DeepMapStore } from 'nanostores';
import { persistentMap } from '@nanostores/persistent'; import { persistentMap } from '@nanostores/persistent';
import 'bulma/bulma.sass'; import 'bulma/bulma.sass';
import './styles/mystyles.scss' import './styles/mystyles.scss'
import {BasrUrlPanel} from './BasrUrlPanel'
export type singleArg={ export type singleArg={
arg: string; arg: string;

0
src/locales/en.json Normal file
View File

0
src/locales/zh.json Normal file
View File