@rimelight/i18n 0.0.16 → 0.0.18
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/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as KVNamespaceBinding, n as CustomTranslations, o as NestedTranslationKeys, s as TranslationKey, t as ComponentsJSON } from "./types-dxt4IMnV.mjs";
|
|
2
|
-
import { a as getFormatterInstance, c as initializeI18n, d as useI18n, f as useI18nAsync, i as currentLocale, o as getI18nInstance, r as clearCache, s as getPluralCategory, u as useFormat } from "./runtime-
|
|
2
|
+
import { a as getFormatterInstance, c as initializeI18n, d as useI18n, f as useI18nAsync, i as currentLocale, o as getI18nInstance, r as clearCache, s as getPluralCategory, u as useFormat } from "./runtime-DpOm09ai.mjs";
|
|
3
3
|
import { i as i18n, n as RimelightI18nPlugins, t as RimelightI18nOptions } from "./plugin-CFEm0e4U.mjs";
|
|
4
4
|
import { TranslationLoader } from "@nanostores/i18n";
|
|
5
5
|
//#region src/index.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I18n, TranslationLoader, Translations, formatter } from "@nanostores/i18n";
|
|
2
2
|
//#region src/runtime.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* A reactive store containing the current locale code. Set by middleware on each request, or
|
|
@@ -15,7 +15,7 @@ interface InitializeI18nOptions {
|
|
|
15
15
|
/**
|
|
16
16
|
* Pre-loaded translations keyed by locale then component.
|
|
17
17
|
*/
|
|
18
|
-
translations: Record<string,
|
|
18
|
+
translations: Record<string, Record<string, any>>;
|
|
19
19
|
/**
|
|
20
20
|
* Optional dynamic loader called when a locale is not in cache.
|
|
21
21
|
*/
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as getFormatterInstance, c as initializeI18n, d as useI18n, f as useI18nAsync, i as currentLocale, l as t, n as InitializeI18nOptions, o as getI18nInstance, r as clearCache, s as getPluralCategory, t as ComponentMessages, u as useFormat } from "./runtime-
|
|
1
|
+
import { a as getFormatterInstance, c as initializeI18n, d as useI18n, f as useI18nAsync, i as currentLocale, l as t, n as InitializeI18nOptions, o as getI18nInstance, r as clearCache, s as getPluralCategory, t as ComponentMessages, u as useFormat } from "./runtime-DpOm09ai.mjs";
|
|
2
2
|
export { ComponentMessages, InitializeI18nOptions, clearCache, currentLocale, getFormatterInstance, getI18nInstance, getPluralCategory, initializeI18n, t, useFormat, useI18n, useI18nAsync };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rimelight/i18n",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Rimelight Entertainment's Internationalization Package",
|
|
6
6
|
"homepage": "https://rimelight.com/docs",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"nanostores": "1.5.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@rimelight/config": "0.0.
|
|
56
|
+
"@rimelight/config": "0.0.18",
|
|
57
57
|
"typescript": "6.0.3"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
|
-
"node": ">=26.
|
|
60
|
+
"node": ">=26.9.0"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "vp pack",
|