locale for web app (#334)
* locale for web app * more translations * Rename profiles service to avoid locale conflict * More translation work * Lint fix --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
019fde1e67
commit
42dadec020
54 files changed
+538
-151
No files matched your search
@@ -9,7 +9,7 @@ namespace Http
|
||||
super()
|
||||
|
||||
task = server.task
|
||||
m.profilesNode = task.profiles
|
||||
m.profilesNode = task.profilesService
|
||||
m.invidiousNode = task.invidious
|
||||
m.invidiousService = new Invidious.InvidiousService(m.invidiousNode)
|
||||
end function
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Http
|
||||
function new(server as object)
|
||||
super()
|
||||
|
||||
m.profilesNode = server.task.profiles
|
||||
m.profilesNode = server.task.profilesService
|
||||
m.profilesContent = m.profilesNode.content.getChild(0)
|
||||
end function
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Http
|
||||
m.applicationInfoNode = task.applicationInfo
|
||||
m.invidiousNode = task.invidious
|
||||
m.preferencesNode = task.preferences
|
||||
m.profilesNode = task.profiles
|
||||
m.profilesNode = task.profilesService
|
||||
end function
|
||||
|
||||
@get("/api/state")
|
||||
|
||||
@@ -54,6 +54,7 @@ function SetupRoutes(server as object)
|
||||
etags = new Http.EtagUtils()
|
||||
server.UseRouter(new Http.HttpStaticFilesRouter("/", "libpkg:/www", etags, { staticFiles: true }))
|
||||
server.UseRouter(new Http.HttpStaticFilesRouter("/config", "libpkg:/config", etags, { staticFiles: true }))
|
||||
server.UseRouter(new Http.HttpStaticFilesRouter("/locale", "libpkg:/locale", etags, { staticFiles: true }))
|
||||
server.UseRouter(new Http.HttpStaticFilesRouter("/logs", "cachefs:/logs", etags, { fsCheck: true }))
|
||||
#if DEBUG
|
||||
server.UseRouter(new Http.RegistryRouter())
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<field id="appController" type="node" />
|
||||
<field id="preferences" type="node" />
|
||||
<field id="invidious" type="node" />
|
||||
<field id="profiles" type="node" />
|
||||
<field id="profilesService" type="node" />
|
||||
<field id="applicationInfo" type="node" />
|
||||
<field id="videoQueue" type="node" />
|
||||
<field id="bookmarksService" type="node" />
|
||||
|
||||
Reference in new issue
Block a user