feat: add i18n supports (#214)

添加界面的 i18n 支持。

/kind feature

Fixes https://github.com/halo-dev/theme-earth/issues/198
Fixes https://github.com/halo-dev/theme-earth/issues/75

```release-note
添加界面的 i18n 支持。
```
This commit is contained in:
Ryan Wang
2024-11-18 11:08:03 +08:00
committed by GitHub
parent 235c2c20ef
commit 03dc038eb7
33 changed files with 320 additions and 89 deletions

1
env.d.ts vendored
View File

@@ -7,5 +7,6 @@ declare global {
interface Window {
Alpine: Alpine;
SearchWidget: any;
i18nResources: Record<string, string>;
}
}