@pie-players/pie-players-shared 0.3.5 → 0.3.7
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/package.json +1 -1
- package/src/i18n/README.md +3 -3
package/package.json
CHANGED
package/src/i18n/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Use `useI18nStandalone()` when building standalone components (tools, players) t
|
|
|
10
10
|
|
|
11
11
|
```svelte
|
|
12
12
|
<script lang="ts">
|
|
13
|
-
import { useI18nStandalone } from '@pie-
|
|
13
|
+
import { useI18nStandalone } from '@pie-players/pie-players-shared/i18n';
|
|
14
14
|
|
|
15
15
|
// Simple setup - no service injection needed
|
|
16
16
|
const i18n = useI18nStandalone({
|
|
@@ -41,7 +41,7 @@ Use `useI18n()` when working within the full assessment toolkit where centralize
|
|
|
41
41
|
|
|
42
42
|
```svelte
|
|
43
43
|
<script lang="ts">
|
|
44
|
-
import { useI18n } from '@pie-
|
|
44
|
+
import { useI18n } from '@pie-players/pie-players-shared/i18n';
|
|
45
45
|
|
|
46
46
|
// Receive service from parent/context
|
|
47
47
|
let { player } = $props();
|
|
@@ -65,7 +65,7 @@ Use `useI18n()` when working within the full assessment toolkit where centralize
|
|
|
65
65
|
For non-Svelte contexts or advanced use cases:
|
|
66
66
|
|
|
67
67
|
```typescript
|
|
68
|
-
import { SimpleI18n, BUNDLED_TRANSLATIONS, loadTranslations } from '@pie-
|
|
68
|
+
import { SimpleI18n, BUNDLED_TRANSLATIONS, loadTranslations } from '@pie-players/pie-players-shared/i18n';
|
|
69
69
|
|
|
70
70
|
const i18n = new SimpleI18n({
|
|
71
71
|
locale: 'en',
|