@fluenti/nuxt 0.6.0 → 0.6.1
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.
|
@@ -3,7 +3,7 @@ export type { FluentNuxtOptions, Strategy, FluentNuxtRuntimeConfig, DetectBrowse
|
|
|
3
3
|
export { generateSitemapUrls, createSitemapHook } from './sitemap';
|
|
4
4
|
export type { SitemapUrl } from './sitemap';
|
|
5
5
|
export { resolveLocaleProperties, resolveDomainConfigs } from './types';
|
|
6
|
-
export { resolveLocaleCodes } from '
|
|
6
|
+
export { resolveLocaleCodes } from '@fluenti/core/compiler';
|
|
7
7
|
export { localePath, extractLocaleFromPath, switchLocalePath } from './runtime/path-utils';
|
|
8
8
|
export { extendPages } from './runtime/page-extend';
|
|
9
9
|
export type { PageRoute, RouteNameTemplate, ExtendPagesOptions } from './runtime/page-extend';
|
|
@@ -56,16 +56,16 @@ export declare function useLocaleRoute(): (to: RouteLocationRaw, locale?: string
|
|
|
56
56
|
export declare function useI18nScoped(namespace: string): {
|
|
57
57
|
t(idOrDescriptor: unknown, values?: Record<string, unknown>): string;
|
|
58
58
|
te(key: string, locale?: string): boolean;
|
|
59
|
-
tm(key: string, locale?: string): import('
|
|
59
|
+
tm(key: string, locale?: string): import('@fluenti/core').CompiledMessage | undefined;
|
|
60
60
|
/** The namespace this context is scoped to */
|
|
61
61
|
namespace: string;
|
|
62
|
-
locale: Readonly<import('vue').Ref<import('
|
|
63
|
-
setLocale(locale: import('
|
|
64
|
-
loadMessages(locale: import('
|
|
65
|
-
getLocales(): import('
|
|
66
|
-
d(value: Date | number, style?: string): import('
|
|
67
|
-
n(value: number, style?: string): import('
|
|
68
|
-
format(message: string, values?: Record<string, unknown>): import('
|
|
62
|
+
locale: Readonly<import('vue').Ref<import('@fluenti/core').Locale>>;
|
|
63
|
+
setLocale(locale: import('@fluenti/core').Locale): Promise<void>;
|
|
64
|
+
loadMessages(locale: import('@fluenti/core').Locale, messages: import('@fluenti/core').Messages): void;
|
|
65
|
+
getLocales(): import('@fluenti/core').Locale[];
|
|
66
|
+
d(value: Date | number, style?: string): import('@fluenti/core').LocalizedString;
|
|
67
|
+
n(value: number, style?: string): import('@fluenti/core').LocalizedString;
|
|
68
|
+
format(message: string, values?: Record<string, unknown>): import('@fluenti/core').LocalizedString;
|
|
69
69
|
isLoading: Readonly<import('vue').Ref<boolean>>;
|
|
70
70
|
loadedLocales: Readonly<import('vue').Ref<ReadonlySet<string>>>;
|
|
71
71
|
preloadLocale(locale: string): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FluentiBuildConfig, resolveLocaleCodes } from '
|
|
2
|
-
import { LocaleDefinition, LocaleObject } from '
|
|
3
|
-
export type { LocaleObject, LocaleDefinition } from '
|
|
1
|
+
import { FluentiBuildConfig, resolveLocaleCodes } from '@fluenti/core/compiler';
|
|
2
|
+
import { LocaleDefinition, LocaleObject } from '@fluenti/core';
|
|
3
|
+
export type { LocaleObject, LocaleDefinition } from '@fluenti/core';
|
|
4
4
|
export { resolveLocaleCodes };
|
|
5
5
|
/** Routing strategy for locale-prefixed URLs */
|
|
6
6
|
export type Strategy = 'prefix' | 'prefix_except_default' | 'prefix_and_default' | 'no_prefix' | 'domains';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluenti/nuxt",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Nuxt module for Fluenti — locale-prefixed routes, SEO helpers, auto locale detection",
|
|
6
6
|
"homepage": "https://fluenti.dev",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@nuxt/kit": "^4.4.2",
|
|
72
72
|
"@nuxt/schema": "^4.4.2",
|
|
73
|
-
"@fluenti/
|
|
74
|
-
"@fluenti/
|
|
73
|
+
"@fluenti/core": "0.6.1",
|
|
74
|
+
"@fluenti/vue": "0.6.1"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"typescript": "^5.9",
|