Quicksave
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
"@ffmpeg/core": "^0.11.0",
|
"@ffmpeg/core": "^0.11.0",
|
||||||
"@ffmpeg/ffmpeg": "^0.11.6",
|
"@ffmpeg/ffmpeg": "^0.11.6",
|
||||||
"@fontsource/marck-script": "^5.2.6",
|
"@fontsource/marck-script": "^5.2.6",
|
||||||
"@sentry/browser": "^10.5.0",
|
"@sentry/browser": "^10.8.0",
|
||||||
"@sentry/tracing": "^7.120.4",
|
"@sentry/tracing": "^7.120.4",
|
||||||
"@simplewebauthn/browser": "^13.1.2",
|
"@simplewebauthn/browser": "^13.1.2",
|
||||||
"@sveltejs/adapter-auto": "^2.1.1",
|
"@sveltejs/adapter-auto": "^2.1.1",
|
||||||
@@ -34,8 +34,8 @@
|
|||||||
"@types/qrcode": "^1.5.5",
|
"@types/qrcode": "^1.5.5",
|
||||||
"@types/sortablejs": "^1.15.8",
|
"@types/sortablejs": "^1.15.8",
|
||||||
"@types/ua-parser-js": "^0.7.39",
|
"@types/ua-parser-js": "^0.7.39",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.40.0",
|
"@typescript-eslint/eslint-plugin": "^8.41.0",
|
||||||
"@typescript-eslint/parser": "^8.40.0",
|
"@typescript-eslint/parser": "^8.41.0",
|
||||||
"@unlazy/svelte": "^0.8.9",
|
"@unlazy/svelte": "^0.8.9",
|
||||||
"@uppy/compressor": "^1.1.4",
|
"@uppy/compressor": "^1.1.4",
|
||||||
"@uppy/core": "^3.13.1",
|
"@uppy/core": "^3.13.1",
|
||||||
@@ -52,20 +52,20 @@
|
|||||||
"ckeditor5": "^46.0.2",
|
"ckeditor5": "^46.0.2",
|
||||||
"cookie": "^0.5.0",
|
"cookie": "^0.5.0",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"cssnano": "^7.1.0",
|
"cssnano": "^7.1.1",
|
||||||
"dompurify": "^3.2.6",
|
"dompurify": "^3.2.6",
|
||||||
"eslint": "^9.33.0",
|
"eslint": "^9.34.0",
|
||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"eslint-plugin-svelte3": "^4.0.0",
|
"eslint-plugin-svelte3": "^4.0.0",
|
||||||
"felte": "^1.3.0",
|
"felte": "^1.3.0",
|
||||||
"fuse.js": "^7.1.0",
|
"fuse.js": "^7.1.0",
|
||||||
"highlight.js": "^11.11.1",
|
"highlight.js": "^11.11.1",
|
||||||
"i18next": "^25.3.6",
|
"i18next": "^25.4.2",
|
||||||
"i18next-browser-languagedetector": "^8.2.0",
|
"i18next-browser-languagedetector": "^8.2.0",
|
||||||
"js-cookie": "^3.0.5",
|
"js-cookie": "^3.0.5",
|
||||||
"jws": "^4.0.0",
|
"jws": "^4.0.0",
|
||||||
"luxon": "^3.7.1",
|
"luxon": "^3.7.1",
|
||||||
"marked": "^16.2.0",
|
"marked": "^16.2.1",
|
||||||
"mdsvex": "^0.10.6",
|
"mdsvex": "^0.10.6",
|
||||||
"minisearch": "^6.3.0",
|
"minisearch": "^6.3.0",
|
||||||
"pikaso": "^2.9.0",
|
"pikaso": "^2.9.0",
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"prettier-plugin-svelte": "^2.10.1",
|
"prettier-plugin-svelte": "^2.10.1",
|
||||||
"qrcode": "^1.5.4",
|
"qrcode": "^1.5.4",
|
||||||
"sass": "^1.90.0",
|
"sass": "^1.91.0",
|
||||||
"socket.io-client": "^4.8.1",
|
"socket.io-client": "^4.8.1",
|
||||||
"svelte": "^3.59.2",
|
"svelte": "^3.59.2",
|
||||||
"svelte-check": "^3.8.6",
|
"svelte-check": "^3.8.6",
|
||||||
|
|||||||
Generated
+6419
-8486
File diff suppressed because it is too large
Load Diff
@@ -22,15 +22,19 @@ export const getLocalization = () => {
|
|||||||
return getContext<I18nContext>(CONTEXT_KEY);
|
return getContext<I18nContext>(CONTEXT_KEY);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const initLocalizationContext = () => {
|
export const initLocalizationContext = (start_lanugage: string): { i18n: I18nService } => {
|
||||||
// Initialize our services
|
// Initialize our services
|
||||||
const i18n = new I18nService();
|
const i18n = new I18nService();
|
||||||
const tranlator = new I18NextTranslationService(i18n);
|
const tranlator = new I18NextTranslationService(i18n);
|
||||||
|
let locale: any;
|
||||||
|
if (start_lanugage) {
|
||||||
|
locale = start_lanugage;
|
||||||
|
}
|
||||||
|
tranlator.locale.set(locale);
|
||||||
// skipcq: JS-0357
|
// skipcq: JS-0357
|
||||||
setLocalization({
|
setLocalization({
|
||||||
t: tranlator.translate,
|
t: tranlator.translate,
|
||||||
currentLanguage: tranlator.locale
|
currentLanguage: locale
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -49,8 +49,11 @@ SPDX-License-Identifier: MPL-2.0
|
|||||||
// // Whenever the user explicitly chooses to respect the OS preference
|
// // Whenever the user explicitly chooses to respect the OS preference
|
||||||
// localStorage.removeItem('theme');
|
// localStorage.removeItem('theme');
|
||||||
}
|
}
|
||||||
|
let start_language = 'en';
|
||||||
initLocalizationContext();
|
if (browser) {
|
||||||
|
start_language = localStorage.getItem('language') ?? 'en';
|
||||||
|
}
|
||||||
|
initLocalizationContext(start_language);
|
||||||
|
|
||||||
if (import.meta.env.VITE_SENTRY !== undefined && import.meta.env.PROD) {
|
if (import.meta.env.VITE_SENTRY !== undefined && import.meta.env.PROD) {
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
@@ -67,8 +70,18 @@ SPDX-License-Identifier: MPL-2.0
|
|||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
{#if plausible_data_url}
|
{#if plausible_data_url}
|
||||||
<script defer data-domain={plausible_data_url} src="https://plausible.nexus.mawoka.eu/js/script.file-downloads.outbound-links.pageview-props.tagged-events.js"></script>
|
<script
|
||||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
defer
|
||||||
|
data-domain={plausible_data_url}
|
||||||
|
src="https://plausible.nexus.mawoka.eu/js/script.file-downloads.outbound-links.pageview-props.tagged-events.js"
|
||||||
|
></script>
|
||||||
|
<script>
|
||||||
|
window.plausible =
|
||||||
|
window.plausible ||
|
||||||
|
function () {
|
||||||
|
(window.plausible.q = window.plausible.q || []).push(arguments);
|
||||||
|
};
|
||||||
|
</script>
|
||||||
{/if}
|
{/if}
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user