File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
src/routes/docs/getting-started Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 77 "dev" : " vite dev" ,
88 "prebuild" : " pnpm run --dir ../packages/svelte-fluent package" ,
99 "build" : " vite build" ,
10+ "build:preview" : " SVELTEKIT_BASE='' vite build" ,
1011 "preview" : " vite preview" ,
1112 "prepare" : " svelte-kit sync" ,
1213 "check" : " svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ the [Fluent](https://projectfluent.org/) localization system by Mozilla.
2121Install ` svelte-fluent ` and its peer dependency ` jsdom ` with your package manager of choice.
2222
2323``` sh
24- npm install --save-dev @nubolab-ffwd/svelte-fluent
24+ npm install --save-dev @nubolab-ffwd/svelte-fluent@next
2525npm install --save jsdom
2626```
2727
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { mdsxConfig } from './mdsx.config.js';
55
66const isProdBuild = process . env . NODE_ENV === 'production' ;
77
8- const base = isProdBuild ? '/svelte-fluent' : '' ;
8+ const base = process . env . SVELTEKIT_BASE ?? ( isProdBuild ? '/svelte-fluent' : '' ) ;
99
1010/** @type {import('@sveltejs/kit').Config } */
1111const config = {
Original file line number Diff line number Diff line change 11# Svelte Fluent [ ![ Documentation] ( https://img.shields.io/badge/-Documentation-blue )] ( https://nubolab-ffwd.github.io/svelte-fluent/ ) [ ![ svelte-fluent on npm] ( https://img.shields.io/npm/v/@nubolab-ffwd/svelte-fluent )] ( https://www.npmjs.com/package/@nubolab-ffwd/svelte-fluent ) ![ Tests] ( https://github.com/nubolab-ffwd/svelte-fluent/workflows/Tests/badge.svg ) [ ![ Svelte v5] ( https://img.shields.io/badge/svelte-v5-blueviolet?logo=svelte )] ( https://svelte.dev )
22
3+ > [ !IMPORTANT]
4+ > This branch contains a ** preview version** of ` svelte-fluent ` v2.
5+ > If you're looking for the stable version, switch to the ` main ` branch.
6+ >
7+ > Check the [ Version 2] ( https://svelte-fluent-v2-preview.netlify.app/docs/version-2/ )
8+ > page of the preview documentation site to get an overview of the changes.
9+
310` svelte-fluent ` is a powerful localization library for
411[ Svelte] ( https://svelte.dev/ ) and [ SvelteKit] ( https://kit.svelte.dev/ )
512that enables you to integrate translations using Mozilla's natural-sounding Fluent syntax easily.
613
714## Installation
815
916```
10- npm install --save-dev @nubolab-ffwd/svelte-fluent
17+ npm install --save-dev @nubolab-ffwd/svelte-fluent@next
1118npm install --save jsdom
1219```
1320
1421## Documentation
1522
16- Documentation can be found at https://nubolab-ffwd.github.io/ svelte-fluent/
23+ Documentation can be found at https://svelte-fluent-v2-preview.netlify.app /
1724
1825## Example
1926
You can’t perform that action at this time.
0 commit comments