owncloud / web

:dragon_face: Next generation frontend for ownCloud Infinite Scale
https://owncloud.dev/clients/web/
GNU Affero General Public License v3.0
434 stars 159 forks source link

perf: prevent setting all languages for all apps on initial load #11040

Closed JammingBen closed 3 months ago

JammingBen commented 3 months ago

Description

Changes the way how app languages get set in gettext so only the current language is being considered initially. Other languages will be set dynamically when changing the current language.

Also refactors the language setup process a bit to make it simpler.

announceGettext sets up gettext in our Vue app, without any translations yet though. announceTranslations gets called later during the bootstrap process and provides all translations to gettext: the ones for core, additional ones and the ones for the apps for the current language. That way we have all that stuff in one place.

Related Issue

Types of changes

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud