@rimelight/i18n 0.0.14 → 0.0.16

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/hono.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as currentLocale } from "./runtime-LitYNVlO.mjs";
2
- import { d as setKVBinding } from "./src-DDBWfigm.mjs";
2
+ import { d as setKVBinding } from "./src-BDG_duDk.mjs";
3
3
  import { env } from "cloudflare:workers";
4
4
  import { defaultLocale, locales, prefixDefaultLocale } from "virtual:rimelight-i18n-config";
5
5
  //#region src/hono.ts
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as getPluralCategory, c as useFormat, i as getI18nInstance, l as useI18n, n as currentLocale, o as initializeI18n, r as getFormatterInstance, t as clearCache, u as useI18nAsync } from "./runtime-LitYNVlO.mjs";
2
2
  import { t as i18n } from "./plugin-wd6n-2-C.mjs";
3
- import { a as getLocale, c as getRelativeLocaleUrlList, d as setKVBinding, f as t, i as getLanguageAlternates, l as locales, n as defaultLocale, o as getOgLocale, r as getHtmlLang, s as getRelativeLocaleUrl, t as createTranslationLoader, u as prefixDefaultLocale } from "./src-DDBWfigm.mjs";
3
+ import { a as getLocale, c as getRelativeLocaleUrlList, d as setKVBinding, f as t, i as getLanguageAlternates, l as locales, n as defaultLocale, o as getOgLocale, r as getHtmlLang, s as getRelativeLocaleUrl, t as createTranslationLoader, u as prefixDefaultLocale } from "./src-BDG_duDk.mjs";
4
4
  export { clearCache, createTranslationLoader, currentLocale, defaultLocale, getFormatterInstance, getHtmlLang, getI18nInstance, getLanguageAlternates, getLocale, getOgLocale, getPluralCategory, getRelativeLocaleUrl, getRelativeLocaleUrlList, i18n, i18n as rimelightI18n, initializeI18n, locales, prefixDefaultLocale, setKVBinding, t, useFormat, useI18n, useI18nAsync };
@@ -15,7 +15,8 @@ try {
15
15
  } catch {}
16
16
  if (translations && Object.keys(translations).length > 0) initializeI18n({
17
17
  defaultLocale: defaultLocale || "en",
18
- translations
18
+ translations,
19
+ get: createTranslationLoader(translations)
19
20
  });
20
21
  /**
21
22
  * Translates a single string key using dot-notation (e.g. `t("page_home.section_hero_title")`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimelight/i18n",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
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.12",
56
+ "@rimelight/config": "0.0.13",
57
57
  "typescript": "6.0.3"
58
58
  },
59
59
  "engines": {
60
- "node": ">=26.9.0"
60
+ "node": ">=26.8.2"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "vp pack",