feat: reload cluster node settings from settings file #169
parent
29f1b7db89
commit
e0366f949f
@ -0,0 +1,19 @@
|
||||
import gettext from '@/gettext'
|
||||
|
||||
export default async function loadTranslations() {
|
||||
const route = useRoute()
|
||||
|
||||
if (gettext.current !== 'en') {
|
||||
await fetch(`${import.meta.env.VITE_API_ROOT}/translation/${gettext.current}`).then(async r => {
|
||||
gettext.translations[gettext.current] = await r.json()
|
||||
})
|
||||
|
||||
if (route?.meta?.name)
|
||||
document.title = `${route.meta.name?.()} | Nginx UI`
|
||||
}
|
||||
|
||||
watch(route, () => {
|
||||
if (route?.meta?.name)
|
||||
document.title = `${route.meta.name?.()} | Nginx UI`
|
||||
})
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
package kernal
|
||||
package cluster
|
||||
|
||||
import (
|
||||
"github.com/0xJacky/Nginx-UI/settings"
|
||||
Loading…
Reference in New Issue