更新文档

This commit is contained in:
Super Manito
2025-06-22 12:42:05 +08:00
parent b169186c73
commit b902e410b7
9 changed files with 18 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
// get search box config
function getOramaSearchBoxConfig() {
const isDefaultLang = window.location.pathname.includes('/zh-hant') ? false : true
const isDefaultLang = window.location.pathname.includes('/zh-Hant') ? false : true
return {
themeConfig: {
// colors: {
@@ -62,7 +62,7 @@ function getOramaSearchBoxConfig() {
// localization search box component
function localizationOramaSearchBox(searchBox) {
if (!searchBox) return
const isDefaultLang = window.location.pathname.includes('/zh-hant') ? false : true
const isDefaultLang = window.location.pathname.includes('/zh-Hant') ? false : true
const askAiText = isDefaultLang ? '询问 AI' : '詢問 AI'
const searchText = isDefaultLang ? '搜索' : '搜尋'
const observer = new MutationObserver((mutations, obs) => {