@dargmuesli/nuxt-cookie-control 5.0.1 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -2
- package/dist/runtime/locale/sv.d.ts +3 -0
- package/dist/runtime/locale/sv.mjs +17 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
✅ Translated for: ar, az, cs, da, de, en, es, fr, hr, hu, it, ja, ko, lt, nl, no, pt, ru, sk, tr and uk
|
|
7
|
+
✅ Translated for: ar, az, cs, da, de, en, es, fr, hr, hu, it, ja, ko, lt, nl, no, pt, ru, sk, sv, tr and uk
|
|
8
8
|
|
|
9
9
|
✅ Vue 3 support
|
|
10
10
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { resolve } from 'node:path';
|
|
2
|
+
import { pathToFileURL } from 'node:url';
|
|
2
3
|
import { createResolver, defineNuxtModule, addPlugin, addImports, addTemplate, extendWebpackConfig, resolvePath } from '@nuxt/kit';
|
|
3
4
|
|
|
4
5
|
const name = "@dargmuesli/nuxt-cookie-control";
|
|
5
|
-
const version = "5.0
|
|
6
|
+
const version = "5.1.0";
|
|
6
7
|
|
|
7
8
|
const en = {
|
|
8
9
|
accept: "Accept",
|
|
@@ -148,7 +149,7 @@ const loadLocales = async (moduleOptions) => {
|
|
|
148
149
|
const locales = moduleOptions.locales;
|
|
149
150
|
moduleOptions.locales = [];
|
|
150
151
|
for (const locale of locales) {
|
|
151
|
-
const text = await import(await resolvePath(resolve(runtimeDir, "locale", locale))).then((r) => r.default || r);
|
|
152
|
+
const text = await import(pathToFileURL(await resolvePath(resolve(runtimeDir, "locale", locale))).href).then((r) => r.default || r);
|
|
152
153
|
if (!text)
|
|
153
154
|
throw new Error(`Could not import text for locale ${locale}`);
|
|
154
155
|
moduleOptions.locales.push(locale);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
accept: "Godk\xE4nn",
|
|
3
|
+
acceptAll: "Godk\xE4nn alla",
|
|
4
|
+
bannerDescription: "Vi anv\xE4nder egna och tredjeparts-cookies f\xF6r att visa webbplatsen korrekt samt f\xF6r att f\xF6rst\xE5 hur webbplatsen anv\xE4nds i syfte att kunna f\xF6rb\xE4ttra de tj\xE4nster vi erbjuder. Ditt beslut kring anv\xE4ndandet av cookies kan n\xE4rsomhelst \xE4ndras via cookie-knappen p\xE5 webbplatsen.",
|
|
5
|
+
bannerTitle: "Cookies",
|
|
6
|
+
close: "St\xE4ng",
|
|
7
|
+
cookiesFunctional: "Funktionella cookies",
|
|
8
|
+
cookiesNecessary: "N\xF6dv\xE4ndiga cookies",
|
|
9
|
+
cookiesOptional: "Frivilliga cookies",
|
|
10
|
+
decline: "Avsl\xE5",
|
|
11
|
+
declineAll: "Avsl\xE5 alla",
|
|
12
|
+
here: "h\xE4r",
|
|
13
|
+
iframeBlocked: "F\xF6r att ta del av detta, var god godk\xE4nn funktionella cookies",
|
|
14
|
+
manageCookies: "Anpassa",
|
|
15
|
+
save: "Spara",
|
|
16
|
+
settingsUnsaved: "Du har inst\xE4llningar som inte \xE4r sparade"
|
|
17
|
+
};
|