Skip to content

Commit e2b3d4a

Browse files
committed
Build: fix workspace
1 parent badd416 commit e2b3d4a

23 files changed

+2216
-940
lines changed

.github/workflows/playwright.yml

-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ jobs:
1515
node-version: '16.x'
1616
- name: Install dependencies
1717
run: npm ci
18-
- name: Install lib dependencies
19-
run: npm --prefix packages/qwik-speak ci
20-
- name: Build lib
21-
run: npm run --prefix packages/qwik-speak build.lib
2218
- name: Install Playwright Browsers
2319
run: npx playwright install --with-deps
2420
- name: Run Playwright tests

.stackblitzrc

-1
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ stateDiagram-v2
9999
### Speak config
100100
- `defaultLocale` The default locale to use as fallback
101101
- `supportedLocales` List of locales supported by the app
102-
- `assets` An array of strings: each asset is passed to the `loadTranslation$` function to obtain data according to the language
102+
- `assets` Translation file names. Each asset is passed to the `loadTranslation$` function to obtain data according to the language
103103
- `runtimeAssets` Assets available at runtime
104104
- `keySeparator` Separator of nested keys. Default is `.`
105105
- `keyValueSeparator` Key-value separator. Default is `@@`

docs/inline.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,18 @@ export default defineConfig(() => {
6565
};
6666
});
6767
```
68-
and build the app:
68+
Available options:
69+
- `supportedLangs` Supported langs. Required
70+
- `defaultLang` Default lang. Required
71+
- `basePath` The base path. Default to `'./'`
72+
- `assetsPath` Path to translation files: `[basePath]/[assetsPath]/[lang]/*.json`. Default to `'i18n'`
73+
- `outDir` The build output directory. Default to `'dist'`
74+
- `keySeparator` Separator of nested keys. Default is `'.'`
75+
- `keyValueSeparator` Key-value separator. Default is `'@@'`
76+
77+
> Note. Currently, only `json` is supported as format
78+
79+
Now build the app:
6980
```shell
7081
npm run preview
7182
```
@@ -94,8 +105,6 @@ At the end of the build, in root folder a `qwik-speak-inline.log` file is genera
94105
- Translations with dynamic keys
95106
- Translations with dynamic params
96107

97-
> Note. Currently, only `json` files are supported as assets
98-
99108
## Qwik Speak Inline Vite plugin & runtime
100109
When there are translations with dynamic keys or params, you have to use separate files, and add them to `runtimeAssets`:
101110

0 commit comments

Comments
 (0)