Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
e4946283
Commit
e4946283
authored
1 year ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Plain Diff
Merge branch '857-include-correct-vuetify-translations' into 'master'
Resolve "Include correct Vuetify translations" Closes
#857
See merge request
!1244
parents
1a687893
578e1c58
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1244
Resolve "Include correct Vuetify translations"
Pipeline
#129194
canceled
1 year ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.rst
+1
-0
1 addition, 0 deletions
CHANGELOG.rst
aleksis/core/frontend/index.js
+2
-0
2 additions, 0 deletions
aleksis/core/frontend/index.js
aleksis/core/frontend/plugins/aleksis.js
+10
-0
10 additions, 0 deletions
aleksis/core/frontend/plugins/aleksis.js
with
13 additions
and
0 deletions
CHANGELOG.rst
+
1
−
0
View file @
e4946283
...
...
@@ -12,6 +12,7 @@ Unreleased
Fixed
~~~~~
* Default translations from vuetify were not loaded.
* In some cases, some items in the sidenav menu were not shown due to its height being higher than the visible page area.
* The search bar in the sidenav menu is shown even though the user has no permission to see it.
* Add permission check to accept invitation menu point in order to hide it when this feature is disabled.
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/frontend/index.js
+
2
−
0
View file @
e4946283
...
...
@@ -46,6 +46,7 @@ const vuetify = new Vuetify({
current
:
Vue
.
$cookies
.
get
(
"
django_language
"
)
?
Vue
.
$cookies
.
get
(
"
django_language
"
)
:
"
en
"
,
t
:
(
key
,
...
params
)
=>
i18n
.
t
(
key
,
params
),
},
...
vuetifyOpts
,
});
...
...
@@ -90,5 +91,6 @@ const app = new Vue({
});
// Late setup for some plugins handed off to out ALeksisVue plugin
app
.
$loadVuetifyMessages
();
app
.
$loadAppMessages
();
app
.
$setupNavigationGuards
();
This diff is collapsed.
Click to expand it.
aleksis/core/frontend/plugins/aleksis.js
+
10
−
0
View file @
e4946283
...
...
@@ -5,6 +5,7 @@
// aleksisAppImporter is a virtual module defined in Vite config
import
{
appMessages
}
from
"
aleksisAppImporter
"
;
import
aleksisMixin
from
"
../mixins/aleksis.js
"
;
import
*
as
langs
from
"
@/vuetify/src/locale
"
;
console
.
debug
(
"
Defining AleksisVue plugin
"
);
const
AleksisVue
=
{};
...
...
@@ -115,6 +116,15 @@ AleksisVue.install = function (Vue) {
}
};
/**
* Load vuetifys built-in translations
*/
Vue
.
prototype
.
$loadVuetifyMessages
=
function
()
{
for
(
const
[
locale
,
messages
]
of
Object
.
entries
(
langs
))
{
this
.
$i18n
.
mergeLocaleMessage
(
locale
,
{
$vuetify
:
messages
});
}
};
/**
* Invalidate state and force reload from server.
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment